Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 68924 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 3.1. |
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, |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
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=: |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
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.) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
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=: |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 499 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
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' |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='3.1' |
| 579 | PACKAGE_STRING='python 3.1' |
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 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
| 661 | PYTHONFRAMEWORK |
| 662 | PYTHONFRAMEWORKIDENTIFIER |
| 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 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 | UNIVERSAL_ARCH_FLAGS |
| 706 | OTHER_LIBTOOL_OPT |
| 707 | LIBTOOL_CRUFT |
| 708 | SO |
| 709 | LDSHARED |
| 710 | BLDSHARED |
| 711 | CCSHARED |
| 712 | LINKFORSHARED |
| 713 | CFLAGSFORSHARED |
| 714 | SHLIBS |
| 715 | USE_SIGNAL_MODULE |
| 716 | SIGNAL_OBJS |
| 717 | USE_THREAD_MODULE |
| 718 | LDLAST |
| 719 | THREADOBJ |
| 720 | DLINCLDIR |
| 721 | DYNLOADFILE |
| 722 | MACHDEP_OBJS |
| 723 | TRUE |
| 724 | LIBOBJS |
| 725 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 726 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 727 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 728 | HAVE_GETHOSTBYNAME_R |
| 729 | HAVE_GETHOSTBYNAME |
| 730 | LIBM |
| 731 | LIBC |
| 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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 848 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 850 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 851 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 852 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 854 | eval enable_$ac_feature=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 867 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 869 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 870 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 871 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1064 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1065 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1073 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1099 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 && |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1108 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1115 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1117 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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'` |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1126 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | fi |
| 1129 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1130 | # Be sure to have absolute directory names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1141 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1156 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 .` || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1172 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1173 | { (exit 1); exit 1; }; } |
| 1174 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1175 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1183 | ac_confdir=`$as_dirname -- "$0" || |
| 1184 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1185 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1186 | X"$0" : 'X\(//\)$' \| \ |
| 1187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 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 .." |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 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=`( |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 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 |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1247 | \`configure' configures python 3.1 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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: |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1281 | --bindir=DIR user executables [EPREFIX/bin] |
| 1282 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1283 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 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] |
| 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 |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1308 | short | recursive ) echo "Configuration of python 3.1:";; |
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] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1315 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1316 | Build against 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-ipv6 Enable ipv6 (with ipv4) support |
| 1322 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1323 | --enable-big-digits[=BITS] |
| 1324 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | |
| 1326 | Optional Packages: |
| 1327 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1328 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1329 | --with-universal-archs=ARCH |
| 1330 | select architectures for universal build ("32-bit", |
| 1331 | "64-bit" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1332 | --with-framework-name=FRAMEWORK |
| 1333 | specify an alternate name of the framework built |
| 1334 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1335 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1336 | --with-cxx-main=<compiler> |
| 1337 | compile main() and link python executable with C++ |
| 1338 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1339 | --with-suffix=.exe set executable suffix |
| 1340 | --with-pydebug build with Py_DEBUG defined |
| 1341 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1342 | --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] | 1343 | --with-signal-module disable/enable signal module |
| 1344 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1345 | --with(out)-threads[=DIRECTORY] |
| 1346 | disable/enable thread support |
| 1347 | --with(out)-thread[=DIRECTORY] |
| 1348 | deprecated; use --with(out)-threads |
| 1349 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1350 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1351 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1352 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1353 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1354 | --with-fpectl enable SIGFPE catching |
| 1355 | --with-libm=STRING math library |
| 1356 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1357 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1358 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1359 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1360 | |
| 1361 | Some influential environment variables: |
| 1362 | CC C compiler command |
| 1363 | CFLAGS C compiler flags |
| 1364 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1365 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1366 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1367 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1368 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | CPP C preprocessor |
| 1370 | |
| 1371 | Use these variables to override the choices made by `configure' or to help |
| 1372 | it to find libraries and programs with nonstandard names/locations. |
| 1373 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1374 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1376 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1377 | fi |
| 1378 | |
| 1379 | if test "$ac_init_help" = "recursive"; then |
| 1380 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1382 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | ac_builddir=. |
| 1384 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1385 | case "$ac_dir" in |
| 1386 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1387 | *) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1388 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1389 | # A ".." for each directory in $ac_dir_suffix. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1390 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1391 | case $ac_top_builddir_sub in |
| 1392 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1393 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1394 | esac ;; |
| 1395 | esac |
| 1396 | ac_abs_top_builddir=$ac_pwd |
| 1397 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1398 | # for backward compatibility: |
| 1399 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | |
| 1401 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1402 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1404 | ac_top_srcdir=$ac_top_builddir_sub |
| 1405 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1406 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1407 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1408 | ac_top_srcdir=$srcdir |
| 1409 | ac_abs_top_srcdir=$srcdir ;; |
| 1410 | *) # Relative name. |
| 1411 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1412 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1413 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1415 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1416 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1417 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1418 | # Check for guested configure. |
| 1419 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1420 | echo && |
| 1421 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1422 | elif test -f "$ac_srcdir/configure"; then |
| 1423 | echo && |
| 1424 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1426 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1427 | fi || ac_status=$? |
| 1428 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | done |
| 1430 | fi |
| 1431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1432 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 | if $ac_init_version; then |
| 1434 | cat <<\_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1435 | python configure 3.1 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1436 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1438 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1439 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | This configure script is free software; the Free Software Foundation |
| 1441 | gives unlimited permission to copy, distribute and modify it. |
| 1442 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1443 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1445 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | This file contains any messages produced by compilers while |
| 1447 | running configure, to aid debugging if configure makes a mistake. |
| 1448 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1449 | It was created by python $as_me 3.1, which was |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1450 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1451 | |
| 1452 | $ $0 $@ |
| 1453 | |
| 1454 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1455 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | { |
| 1457 | cat <<_ASUNAME |
| 1458 | ## --------- ## |
| 1459 | ## Platform. ## |
| 1460 | ## --------- ## |
| 1461 | |
| 1462 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1463 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1464 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1465 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1466 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1467 | |
| 1468 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1469 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1470 | |
| 1471 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1472 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1473 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1474 | /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] | 1475 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1476 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1477 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1478 | |
| 1479 | _ASUNAME |
| 1480 | |
| 1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1482 | for as_dir in $PATH |
| 1483 | do |
| 1484 | IFS=$as_save_IFS |
| 1485 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1486 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1488 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1489 | |
| 1490 | } >&5 |
| 1491 | |
| 1492 | cat >&5 <<_ACEOF |
| 1493 | |
| 1494 | |
| 1495 | ## ----------- ## |
| 1496 | ## Core tests. ## |
| 1497 | ## ----------- ## |
| 1498 | |
| 1499 | _ACEOF |
| 1500 | |
| 1501 | |
| 1502 | # Keep a trace of the command line. |
| 1503 | # 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] | 1504 | # 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] | 1505 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1506 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1507 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1508 | ac_configure_args0= |
| 1509 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1510 | ac_must_keep_next=false |
| 1511 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | for ac_arg |
| 1514 | do |
| 1515 | case $ac_arg in |
| 1516 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1517 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1518 | | -silent | --silent | --silen | --sile | --sil) |
| 1519 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1520 | *\'*) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1521 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | esac |
| 1523 | case $ac_pass in |
| 1524 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1525 | 2) |
| 1526 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1527 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1528 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1529 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1530 | case $ac_arg in |
| 1531 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1532 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1533 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1534 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1535 | case "$ac_configure_args0 " in |
| 1536 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1537 | esac |
| 1538 | ;; |
| 1539 | -* ) ac_must_keep_next=true ;; |
| 1540 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1541 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1542 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1543 | ;; |
| 1544 | esac |
| 1545 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1547 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1548 | $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] | 1549 | |
| 1550 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1551 | # config.log. We remove comments because anyway the quotes in there |
| 1552 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1553 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1554 | # 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] | 1555 | trap 'exit_status=$? |
| 1556 | # Save into config.log some information that might help in debugging. |
| 1557 | { |
| 1558 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | cat <<\_ASBOX |
| 1561 | ## ---------------- ## |
| 1562 | ## Cache variables. ## |
| 1563 | ## ---------------- ## |
| 1564 | _ASBOX |
| 1565 | echo |
| 1566 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1567 | ( |
| 1568 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1569 | eval ac_val=\$$ac_var |
| 1570 | case $ac_val in #( |
| 1571 | *${as_nl}*) |
| 1572 | case $ac_var in #( |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1573 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1574 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1575 | esac |
| 1576 | case $ac_var in #( |
| 1577 | _ | IFS | as_nl) ;; #( |
| 1578 | *) $as_unset $ac_var ;; |
| 1579 | esac ;; |
| 1580 | esac |
| 1581 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1583 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1584 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1586 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1587 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1588 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1589 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1591 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1592 | esac | |
| 1593 | sort |
| 1594 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1596 | |
| 1597 | cat <<\_ASBOX |
| 1598 | ## ----------------- ## |
| 1599 | ## Output variables. ## |
| 1600 | ## ----------------- ## |
| 1601 | _ASBOX |
| 1602 | echo |
| 1603 | for ac_var in $ac_subst_vars |
| 1604 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1605 | eval ac_val=\$$ac_var |
| 1606 | case $ac_val in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1607 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1608 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1609 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1610 | done | sort |
| 1611 | echo |
| 1612 | |
| 1613 | if test -n "$ac_subst_files"; then |
| 1614 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1615 | ## ------------------- ## |
| 1616 | ## File substitutions. ## |
| 1617 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1618 | _ASBOX |
| 1619 | echo |
| 1620 | for ac_var in $ac_subst_files |
| 1621 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1622 | eval ac_val=\$$ac_var |
| 1623 | case $ac_val in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1624 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1625 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1626 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | done | sort |
| 1628 | echo |
| 1629 | fi |
| 1630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | if test -s confdefs.h; then |
| 1632 | cat <<\_ASBOX |
| 1633 | ## ----------- ## |
| 1634 | ## confdefs.h. ## |
| 1635 | ## ----------- ## |
| 1636 | _ASBOX |
| 1637 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1638 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | echo |
| 1640 | fi |
| 1641 | test "$ac_signal" != 0 && |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1642 | echo "$as_me: caught signal $ac_signal" |
| 1643 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1644 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1645 | rm -f core *.core core.conftest.* && |
| 1646 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1647 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1648 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1649 | for ac_signal in 1 2 13 15; do |
| 1650 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1651 | done |
| 1652 | ac_signal=0 |
| 1653 | |
| 1654 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1655 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | |
| 1657 | # Predefined preprocessor variables. |
| 1658 | |
| 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1661 | _ACEOF |
| 1662 | |
| 1663 | |
| 1664 | cat >>confdefs.h <<_ACEOF |
| 1665 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1666 | _ACEOF |
| 1667 | |
| 1668 | |
| 1669 | cat >>confdefs.h <<_ACEOF |
| 1670 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1671 | _ACEOF |
| 1672 | |
| 1673 | |
| 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
| 1679 | cat >>confdefs.h <<_ACEOF |
| 1680 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1681 | _ACEOF |
| 1682 | |
| 1683 | |
| 1684 | # Let the site file select an alternate cache file if it wants to. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1685 | # Prefer explicitly selected file to automatically selected ones. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1686 | if test -n "$CONFIG_SITE"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1687 | set x "$CONFIG_SITE" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1688 | elif test "x$prefix" != xNONE; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1689 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1690 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1691 | set x "$ac_default_prefix/share/config.site" \ |
| 1692 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1693 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1694 | shift |
| 1695 | for ac_site_file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1696 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1697 | if test -r "$ac_site_file"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1698 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1699 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1700 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | . "$ac_site_file" |
| 1702 | fi |
| 1703 | done |
| 1704 | |
| 1705 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | # Some versions of bash will fail to source /dev/null (special |
| 1707 | # files actually), so we avoid doing that. |
| 1708 | if test -f "$cache_file"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1709 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1710 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1712 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1713 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1714 | esac |
| 1715 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1717 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1718 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1719 | >$cache_file |
| 1720 | fi |
| 1721 | |
| 1722 | # Check that the precious variables saved in the cache have kept the same |
| 1723 | # value. |
| 1724 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1725 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1727 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1728 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1729 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | case $ac_old_set,$ac_new_set in |
| 1731 | set,) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1732 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1733 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1734 | ac_cache_corrupted=: ;; |
| 1735 | ,set) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1736 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1737 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1738 | ac_cache_corrupted=: ;; |
| 1739 | ,);; |
| 1740 | *) |
| 1741 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1742 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1743 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1744 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1745 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1746 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1747 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1748 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1749 | fi;; |
| 1750 | esac |
| 1751 | # Pass precious variables to config.status. |
| 1752 | if test "$ac_new_set" = set; then |
| 1753 | case $ac_new_val in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1754 | *\'*) 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] | 1755 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1756 | esac |
| 1757 | case " $ac_configure_args " in |
| 1758 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1759 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1760 | esac |
| 1761 | fi |
| 1762 | done |
| 1763 | if $ac_cache_corrupted; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1764 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1765 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1766 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1767 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1768 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1769 | fi |
| 1770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1795 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1800 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1801 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1802 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1803 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1804 | |
| 1805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1806 | |
| 1807 | |
| 1808 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1809 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1810 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1811 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1812 | # with other autoconf-based packages that include Python.h |
| 1813 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1814 | rm confdefs.h |
| 1815 | mv confdefs.h.new confdefs.h |
| 1816 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1817 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1818 | VERSION=3.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1819 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1820 | |
| 1821 | SOVERSION=1.0 |
| 1822 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1823 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1824 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1825 | |
| 1826 | cat >>confdefs.h <<\_ACEOF |
| 1827 | #define _GNU_SOURCE 1 |
| 1828 | _ACEOF |
| 1829 | |
| 1830 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1831 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1832 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1833 | # them. |
| 1834 | |
| 1835 | cat >>confdefs.h <<\_ACEOF |
| 1836 | #define _NETBSD_SOURCE 1 |
| 1837 | _ACEOF |
| 1838 | |
| 1839 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1840 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1841 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1842 | # them. |
| 1843 | |
| 1844 | cat >>confdefs.h <<\_ACEOF |
| 1845 | #define __BSD_VISIBLE 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 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1857 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1858 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1859 | # them. |
| 1860 | |
| 1861 | cat >>confdefs.h <<\_ACEOF |
| 1862 | #define _DARWIN_C_SOURCE 1 |
| 1863 | _ACEOF |
| 1864 | |
| 1865 | |
| 1866 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1867 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1868 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1869 | # Arguments passed to configure. |
| 1870 | |
| 1871 | CONFIG_ARGS="$ac_configure_args" |
| 1872 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1873 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1874 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1875 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1876 | case $enableval in |
| 1877 | yes) |
| 1878 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1879 | ;; |
| 1880 | esac |
| 1881 | case $enableval in |
| 1882 | no) |
| 1883 | UNIVERSALSDK= |
| 1884 | enable_universalsdk= |
| 1885 | ;; |
| 1886 | *) |
| 1887 | UNIVERSALSDK=$enableval |
| 1888 | ;; |
| 1889 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1890 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1891 | else |
| 1892 | |
| 1893 | UNIVERSALSDK= |
| 1894 | enable_universalsdk= |
| 1895 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1896 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1897 | |
| 1898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1899 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 1900 | ARCH_RUN_32BIT= |
| 1901 | |
| 1902 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1903 | UNIVERSAL_ARCHS="32-bit" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1904 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1905 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1906 | |
| 1907 | # Check whether --with-universal-archs was given. |
| 1908 | if test "${with_universal_archs+set}" = set; then |
| 1909 | withval=$with_universal_archs; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1910 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1911 | echo "${ECHO_T}$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1912 | UNIVERSAL_ARCHS="$withval" |
| 1913 | |
| 1914 | else |
| 1915 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 1916 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1917 | echo "${ECHO_T}32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1918 | |
| 1919 | fi |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1924 | |
| 1925 | # Check whether --with-framework-name was given. |
| 1926 | if test "${with_framework_name+set}" = set; then |
| 1927 | withval=$with_framework_name; |
| 1928 | PYTHONFRAMEWORK=${withval} |
| 1929 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1930 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1931 | |
| 1932 | else |
| 1933 | |
| 1934 | PYTHONFRAMEWORK=Python |
| 1935 | PYTHONFRAMEWORKDIR=Python.framework |
| 1936 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1937 | |
| 1938 | fi |
| 1939 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1940 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1941 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1942 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1943 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1944 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1945 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1946 | esac |
| 1947 | case $enableval in |
| 1948 | no) |
| 1949 | PYTHONFRAMEWORK= |
| 1950 | PYTHONFRAMEWORKDIR=no-framework |
| 1951 | PYTHONFRAMEWORKPREFIX= |
| 1952 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1953 | FRAMEWORKINSTALLFIRST= |
| 1954 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1955 | FRAMEWORKALTINSTALLFIRST= |
| 1956 | FRAMEWORKALTINSTALLLAST= |
| 1957 | if test "x${prefix}" = "xNONE"; then |
| 1958 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1959 | else |
| 1960 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1961 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1962 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1963 | ;; |
| 1964 | *) |
| 1965 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1966 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1967 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1968 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1969 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1970 | then |
| 1971 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
| 1972 | else |
| 1973 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1974 | fi |
| 1975 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1976 | if test "x${prefix}" = "xNONE" ; then |
| 1977 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1978 | else |
| 1979 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1980 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1981 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1982 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1983 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1984 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1985 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1987 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1988 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1989 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 1990 | |
| 1991 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 1992 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1993 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1994 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1996 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1997 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1998 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1999 | PYTHONFRAMEWORKPREFIX= |
| 2000 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2001 | FRAMEWORKINSTALLFIRST= |
| 2002 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2003 | FRAMEWORKALTINSTALLFIRST= |
| 2004 | FRAMEWORKALTINSTALLLAST= |
| 2005 | if test "x${prefix}" = "xNONE" ; then |
| 2006 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2007 | else |
| 2008 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2009 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2010 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2011 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2012 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2013 | then |
| 2014 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2015 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2016 | fi |
| 2017 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2018 | fi |
| 2019 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2020 | |
| 2021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2026 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2027 | |
| 2028 | |
| 2029 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2030 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2031 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2032 | ## AC_HELP_STRING(--with-dyld, |
| 2033 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2034 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2035 | # Set name for machine-dependent library files |
| 2036 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2037 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2038 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2039 | if test -z "$MACHDEP" |
| 2040 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2041 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2042 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2043 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2044 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2045 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2046 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2047 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2048 | ac_md_system=`echo $ac_sys_system | |
| 2049 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2050 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2051 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2052 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2053 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2054 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2055 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2056 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2057 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2058 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2059 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2060 | esac |
| 2061 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2062 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2063 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2064 | # disable features if it is defined, without any means to access these |
| 2065 | # features as extensions. For these systems, we skip the definition of |
| 2066 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2067 | # some feature, make sure there is no alternative way to access this |
| 2068 | # feature. Also, when using wildcards, make sure you have verified the |
| 2069 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2070 | # wildcard, and that the wildcard does not include future systems |
| 2071 | # (which may remove their limitations). |
| 2072 | case $ac_sys_system/$ac_sys_release in |
| 2073 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2074 | # 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] | 2075 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2076 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2077 | define_xopen_source=no |
| 2078 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2079 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2080 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2081 | |
| 2082 | cat >>confdefs.h <<\_ACEOF |
| 2083 | #define _BSD_SOURCE 1 |
| 2084 | _ACEOF |
| 2085 | |
| 2086 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2087 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2088 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2089 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2090 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2091 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2092 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2093 | # of union __?sigval. Reported by Stuart Bishop. |
| 2094 | SunOS/5.6) |
| 2095 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2096 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2097 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2098 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2099 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2100 | define_xopen_source=no;; |
| 2101 | # 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] | 2102 | # 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] | 2103 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2104 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 2105 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2106 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2107 | FreeBSD/4.*) |
| 2108 | define_xopen_source=no;; |
| 2109 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2110 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2111 | # identifies itself as Darwin/7.* |
| 2112 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2113 | # disables platform specific features beyond repair. |
| 2114 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2115 | # has no effect, don't bother defining them |
| 2116 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2117 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2118 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2119 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2120 | # 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] | 2121 | AIX/4) |
| 2122 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2123 | AIX/5) |
| 2124 | if test `uname -r` -eq 1; then |
| 2125 | define_xopen_source=no |
| 2126 | fi |
| 2127 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2128 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2129 | # defining NI_NUMERICHOST. |
| 2130 | QNX/6.3.2) |
| 2131 | define_xopen_source=no |
| 2132 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2133 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2134 | esac |
| 2135 | |
| 2136 | if test $define_xopen_source = yes |
| 2137 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2138 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2139 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2140 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2141 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2142 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2143 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2144 | |
| 2145 | cat >>confdefs.h <<\_ACEOF |
| 2146 | #define _XOPEN_SOURCE 500 |
| 2147 | _ACEOF |
| 2148 | |
| 2149 | ;; |
| 2150 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2151 | |
| 2152 | cat >>confdefs.h <<\_ACEOF |
| 2153 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2154 | _ACEOF |
| 2155 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | ;; |
| 2157 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2158 | |
| 2159 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2160 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2161 | # several APIs are not declared. Since this is also needed in some |
| 2162 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2163 | # except for Solaris 10, where it must not be defined, |
| 2164 | # as it implies XPG4.2 |
| 2165 | case $ac_sys_system/$ac_sys_release in |
| 2166 | SunOS/5.10) |
| 2167 | ;; |
| 2168 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2169 | |
| 2170 | cat >>confdefs.h <<\_ACEOF |
| 2171 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2172 | _ACEOF |
| 2173 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2174 | ;; |
| 2175 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2176 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2177 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2178 | cat >>confdefs.h <<\_ACEOF |
| 2179 | #define _POSIX_C_SOURCE 200112L |
| 2180 | _ACEOF |
| 2181 | |
| 2182 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2185 | # |
| 2186 | # SGI compilers allow the specification of the both the ABI and the |
| 2187 | # ISA on the command line. Depending on the values of these switches, |
| 2188 | # different and often incompatable code will be generated. |
| 2189 | # |
| 2190 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2191 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2192 | # variable is also adjusted. |
| 2193 | # |
| 2194 | |
| 2195 | if test ! -z "$SGI_ABI" |
| 2196 | then |
| 2197 | CC="cc $SGI_ABI" |
| 2198 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2199 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2200 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2201 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2202 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2203 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2204 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2205 | # it may influence the way we can build extensions, so distutils |
| 2206 | # needs to check it |
| 2207 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2208 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2209 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2210 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2211 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2213 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2214 | ac_sys_machine=`uname -m` |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2216 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2217 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2218 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2219 | |
| 2220 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2221 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2222 | # just to get things to compile and link. Users are free to override OPT |
| 2223 | # when running configure or make. The build should not break if they do. |
| 2224 | # BASECFLAGS should generally not be messed with, however. |
| 2225 | |
| 2226 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2227 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2228 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2229 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2230 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2231 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2232 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2233 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2234 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2235 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2236 | without_gcc=yes;; |
| 2237 | yes) CC=gcc |
| 2238 | without_gcc=no;; |
| 2239 | *) CC=$withval |
| 2240 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2241 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2243 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2244 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2245 | AIX*) CC=cc_r |
| 2246 | without_gcc=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2247 | Monterey*) |
| 2248 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2249 | without_gcc=;; |
| 2250 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2251 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2252 | fi |
| 2253 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2255 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2256 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2257 | # If the user switches compilers, we can't believe the cache |
| 2258 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2259 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2260 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2261 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2262 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2263 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2264 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2265 | fi |
| 2266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2267 | ac_ext=c |
| 2268 | ac_cpp='$CPP $CPPFLAGS' |
| 2269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2272 | if test -n "$ac_tool_prefix"; then |
| 2273 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2274 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2277 | if test "${ac_cv_prog_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2279 | else |
| 2280 | if test -n "$CC"; then |
| 2281 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2284 | for as_dir in $PATH |
| 2285 | do |
| 2286 | IFS=$as_save_IFS |
| 2287 | test -z "$as_dir" && as_dir=. |
| 2288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2289 | 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] | 2290 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2292 | break 2 |
| 2293 | fi |
| 2294 | done |
| 2295 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2296 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2297 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2298 | fi |
| 2299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2300 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2301 | if test -n "$CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2302 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2303 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2304 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2306 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2307 | fi |
| 2308 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2310 | fi |
| 2311 | if test -z "$ac_cv_prog_CC"; then |
| 2312 | ac_ct_CC=$CC |
| 2313 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2314 | set dummy gcc; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2315 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2317 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2319 | else |
| 2320 | if test -n "$ac_ct_CC"; then |
| 2321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2322 | else |
| 2323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2324 | for as_dir in $PATH |
| 2325 | do |
| 2326 | IFS=$as_save_IFS |
| 2327 | test -z "$as_dir" && as_dir=. |
| 2328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2329 | 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] | 2330 | ac_cv_prog_ac_ct_CC="gcc" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | break 2 |
| 2333 | fi |
| 2334 | done |
| 2335 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2336 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | |
| 2338 | fi |
| 2339 | fi |
| 2340 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2341 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2342 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2343 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2346 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | fi |
| 2348 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2349 | if test "x$ac_ct_CC" = x; then |
| 2350 | CC="" |
| 2351 | else |
| 2352 | case $cross_compiling:$ac_tool_warned in |
| 2353 | yes:) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2354 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2355 | whose name does not start with the host triplet. If you think this |
| 2356 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2357 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2358 | whose name does not start with the host triplet. If you think this |
| 2359 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2360 | ac_tool_warned=yes ;; |
| 2361 | esac |
| 2362 | CC=$ac_ct_CC |
| 2363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | else |
| 2365 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2368 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2369 | if test -n "$ac_tool_prefix"; then |
| 2370 | # 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] | 2371 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2374 | if test "${ac_cv_prog_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2376 | else |
| 2377 | if test -n "$CC"; then |
| 2378 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2381 | for as_dir in $PATH |
| 2382 | do |
| 2383 | IFS=$as_save_IFS |
| 2384 | test -z "$as_dir" && as_dir=. |
| 2385 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2386 | 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] | 2387 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 | break 2 |
| 2390 | fi |
| 2391 | done |
| 2392 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2393 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | |
| 2395 | fi |
| 2396 | fi |
| 2397 | CC=$ac_cv_prog_CC |
| 2398 | if test -n "$CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2399 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2400 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2402 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2403 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | fi |
| 2405 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | fi |
| 2409 | if test -z "$CC"; then |
| 2410 | # Extract the first word of "cc", so it can be a program name with args. |
| 2411 | set dummy cc; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | if test "${ac_cv_prog_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | else |
| 2417 | if test -n "$CC"; then |
| 2418 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2419 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2420 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2422 | for as_dir in $PATH |
| 2423 | do |
| 2424 | IFS=$as_save_IFS |
| 2425 | test -z "$as_dir" && as_dir=. |
| 2426 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2427 | 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] | 2428 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2429 | ac_prog_rejected=yes |
| 2430 | continue |
| 2431 | fi |
| 2432 | ac_cv_prog_CC="cc" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | break 2 |
| 2435 | fi |
| 2436 | done |
| 2437 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2438 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2440 | if test $ac_prog_rejected = yes; then |
| 2441 | # We found a bogon in the path, so make sure we never use it. |
| 2442 | set dummy $ac_cv_prog_CC |
| 2443 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2445 | # We chose a different compiler from the bogus one. |
| 2446 | # However, it has the same basename, so the bogon will be chosen |
| 2447 | # first if we set CC to just the basename; use the full file name. |
| 2448 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2449 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2450 | fi |
| 2451 | fi |
| 2452 | fi |
| 2453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2455 | if test -n "$CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2456 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2457 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2458 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2459 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2460 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2461 | fi |
| 2462 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | fi |
| 2465 | if test -z "$CC"; then |
| 2466 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2467 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | do |
| 2469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | if test "${ac_cv_prog_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2475 | else |
| 2476 | if test -n "$CC"; then |
| 2477 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2480 | for as_dir in $PATH |
| 2481 | do |
| 2482 | IFS=$as_save_IFS |
| 2483 | test -z "$as_dir" && as_dir=. |
| 2484 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2485 | 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] | 2486 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | done |
| 2491 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2492 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 | |
| 2494 | fi |
| 2495 | fi |
| 2496 | CC=$ac_cv_prog_CC |
| 2497 | if test -n "$CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2499 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2502 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2503 | fi |
| 2504 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | test -n "$CC" && break |
| 2507 | done |
| 2508 | fi |
| 2509 | if test -z "$CC"; then |
| 2510 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2511 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2512 | do |
| 2513 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2514 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | else |
| 2520 | if test -n "$ac_ct_CC"; then |
| 2521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2522 | else |
| 2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2524 | for as_dir in $PATH |
| 2525 | do |
| 2526 | IFS=$as_save_IFS |
| 2527 | test -z "$as_dir" && as_dir=. |
| 2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2529 | 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] | 2530 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | break 2 |
| 2533 | fi |
| 2534 | done |
| 2535 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | fi |
| 2539 | fi |
| 2540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2541 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2542 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2543 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2546 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | test -n "$ac_ct_CC" && break |
| 2551 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2553 | if test "x$ac_ct_CC" = x; then |
| 2554 | CC="" |
| 2555 | else |
| 2556 | case $cross_compiling:$ac_tool_warned in |
| 2557 | yes:) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2558 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2559 | whose name does not start with the host triplet. If you think this |
| 2560 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2561 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2562 | whose name does not start with the host triplet. If you think this |
| 2563 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2564 | ac_tool_warned=yes ;; |
| 2565 | esac |
| 2566 | CC=$ac_ct_CC |
| 2567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | fi |
| 2569 | |
| 2570 | fi |
| 2571 | |
| 2572 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2573 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2574 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2575 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2576 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2577 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | |
| 2579 | # Provide some information about the compiler. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2580 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2581 | ac_compiler=`set X $ac_compile; echo $2` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2582 | { (ac_try="$ac_compiler --version >&5" |
| 2583 | case "(($ac_try" in |
| 2584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2585 | *) ac_try_echo=$ac_try;; |
| 2586 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2588 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2592 | { (ac_try="$ac_compiler -v >&5" |
| 2593 | case "(($ac_try" in |
| 2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2595 | *) ac_try_echo=$ac_try;; |
| 2596 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2598 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2602 | { (ac_try="$ac_compiler -V >&5" |
| 2603 | case "(($ac_try" in |
| 2604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2605 | *) ac_try_echo=$ac_try;; |
| 2606 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2608 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | (exit $ac_status); } |
| 2612 | |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2614 | /* confdefs.h. */ |
| 2615 | _ACEOF |
| 2616 | cat confdefs.h >>conftest.$ac_ext |
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
| 2618 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | int |
| 2621 | main () |
| 2622 | { |
| 2623 | |
| 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | ac_clean_files_save=$ac_clean_files |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2629 | 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] | 2630 | # Try to create an executable without -o first, disregard a.out. |
| 2631 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2632 | # of exeext. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2633 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2634 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2635 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2636 | # |
| 2637 | # List of possible output files, starting from the most likely. |
| 2638 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2639 | # only as a last resort. b.out is created by i960 compilers. |
| 2640 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2641 | # |
| 2642 | # The IRIX 6 linker writes into existing files which may not be |
| 2643 | # executable, retaining their permissions. Remove them first so a |
| 2644 | # subsequent execution test works. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2645 | ac_rmfiles= |
| 2646 | for ac_file in $ac_files |
| 2647 | do |
| 2648 | case $ac_file in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2649 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2650 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2651 | esac |
| 2652 | done |
| 2653 | rm -f $ac_rmfiles |
| 2654 | |
| 2655 | if { (ac_try="$ac_link_default" |
| 2656 | case "(($ac_try" in |
| 2657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2658 | *) ac_try_echo=$ac_try;; |
| 2659 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2661 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2662 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2665 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2666 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2667 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2668 | # so that the user can short-circuit this test for compilers unknown to |
| 2669 | # Autoconf. |
| 2670 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2671 | do |
| 2672 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | case $ac_file in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2674 | *.$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] | 2675 | ;; |
| 2676 | [ab].out ) |
| 2677 | # We found the default executable, but exeext='' is most |
| 2678 | # certainly right. |
| 2679 | break;; |
| 2680 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2681 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2682 | then :; else |
| 2683 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2684 | fi |
| 2685 | # We set ac_cv_exeext here because the later test for it is not |
| 2686 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2687 | # argument, so we may need to know it at that point already. |
| 2688 | # Even if this section looks crufty: it has the advantage of |
| 2689 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2690 | break;; |
| 2691 | * ) |
| 2692 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | esac |
| 2694 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2695 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2696 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2697 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2698 | ac_file='' |
| 2699 | fi |
| 2700 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2701 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2702 | echo "${ECHO_T}$ac_file" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2703 | if test -z "$ac_file"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2706 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2707 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2708 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2709 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2710 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2711 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2712 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2713 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2714 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2715 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2716 | # 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] | 2717 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2719 | 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] | 2720 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2721 | # If not cross compiling, check that we can run a simple program. |
| 2722 | if test "$cross_compiling" != yes; then |
| 2723 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2724 | { (case "(($ac_try" in |
| 2725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2726 | *) ac_try_echo=$ac_try;; |
| 2727 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2729 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2730 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 | (exit $ac_status); }; }; then |
| 2733 | cross_compiling=no |
| 2734 | else |
| 2735 | if test "$cross_compiling" = maybe; then |
| 2736 | cross_compiling=yes |
| 2737 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2738 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2739 | If you meant to cross compile, use \`--host'. |
| 2740 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2741 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2742 | If you meant to cross compile, use \`--host'. |
| 2743 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2744 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | fi |
| 2746 | fi |
| 2747 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2748 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2749 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2751 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2752 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2753 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2754 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2755 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2756 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2757 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2758 | echo "${ECHO_T}$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2759 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2760 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2761 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2762 | if { (ac_try="$ac_link" |
| 2763 | case "(($ac_try" in |
| 2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2765 | *) ac_try_echo=$ac_try;; |
| 2766 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2768 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2771 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2772 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2773 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2774 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2775 | # `rm'. |
| 2776 | for ac_file in conftest.exe conftest conftest.*; do |
| 2777 | test -f "$ac_file" || continue |
| 2778 | case $ac_file in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2779 | *.$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] | 2780 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2781 | break;; |
| 2782 | * ) break;; |
| 2783 | esac |
| 2784 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2785 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2786 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2787 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2788 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2789 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2790 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2791 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2792 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2793 | rm -f conftest$ac_cv_exeext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2794 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2795 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2796 | |
| 2797 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | EXEEXT=$ac_cv_exeext |
| 2799 | ac_exeext=$EXEEXT |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2800 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2801 | 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] | 2802 | if test "${ac_cv_objext+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2804 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2805 | cat >conftest.$ac_ext <<_ACEOF |
| 2806 | /* confdefs.h. */ |
| 2807 | _ACEOF |
| 2808 | cat confdefs.h >>conftest.$ac_ext |
| 2809 | cat >>conftest.$ac_ext <<_ACEOF |
| 2810 | /* end confdefs.h. */ |
| 2811 | |
| 2812 | int |
| 2813 | main () |
| 2814 | { |
| 2815 | |
| 2816 | ; |
| 2817 | return 0; |
| 2818 | } |
| 2819 | _ACEOF |
| 2820 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2821 | if { (ac_try="$ac_compile" |
| 2822 | case "(($ac_try" in |
| 2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2824 | *) ac_try_echo=$ac_try;; |
| 2825 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2827 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2828 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2831 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2832 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2833 | case $ac_file in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2834 | *.$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] | 2835 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2836 | break;; |
| 2837 | esac |
| 2838 | done |
| 2839 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2840 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2842 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2843 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2844 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2845 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2846 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2847 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2848 | fi |
| 2849 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2850 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2852 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2853 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | OBJEXT=$ac_cv_objext |
| 2855 | ac_objext=$OBJEXT |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2856 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2857 | 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] | 2858 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2860 | else |
| 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 | #ifndef __GNUC__ |
| 2872 | choke me |
| 2873 | #endif |
| 2874 | |
| 2875 | ; |
| 2876 | return 0; |
| 2877 | } |
| 2878 | _ACEOF |
| 2879 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2880 | if { (ac_try="$ac_compile" |
| 2881 | case "(($ac_try" in |
| 2882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2883 | *) ac_try_echo=$ac_try;; |
| 2884 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2886 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2889 | rm -f conftest.er1 |
| 2890 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2892 | (exit $ac_status); } && { |
| 2893 | test -z "$ac_c_werror_flag" || |
| 2894 | test ! -s conftest.err |
| 2895 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | ac_compiler_gnu=yes |
| 2897 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2900 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2901 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2902 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2903 | |
| 2904 | 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] | 2905 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2906 | |
| 2907 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2908 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2909 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2910 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2911 | ac_test_CFLAGS=${CFLAGS+set} |
| 2912 | ac_save_CFLAGS=$CFLAGS |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2913 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2914 | 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] | 2915 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2918 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2919 | ac_c_werror_flag=yes |
| 2920 | ac_cv_prog_cc_g=no |
| 2921 | CFLAGS="-g" |
| 2922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2923 | /* confdefs.h. */ |
| 2924 | _ACEOF |
| 2925 | cat confdefs.h >>conftest.$ac_ext |
| 2926 | cat >>conftest.$ac_ext <<_ACEOF |
| 2927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2929 | int |
| 2930 | main () |
| 2931 | { |
| 2932 | |
| 2933 | ; |
| 2934 | return 0; |
| 2935 | } |
| 2936 | _ACEOF |
| 2937 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2938 | if { (ac_try="$ac_compile" |
| 2939 | case "(($ac_try" in |
| 2940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2941 | *) ac_try_echo=$ac_try;; |
| 2942 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2944 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2945 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2947 | rm -f conftest.er1 |
| 2948 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2950 | (exit $ac_status); } && { |
| 2951 | test -z "$ac_c_werror_flag" || |
| 2952 | test ! -s conftest.err |
| 2953 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2954 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2955 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2959 | CFLAGS="" |
| 2960 | cat >conftest.$ac_ext <<_ACEOF |
| 2961 | /* confdefs.h. */ |
| 2962 | _ACEOF |
| 2963 | cat confdefs.h >>conftest.$ac_ext |
| 2964 | cat >>conftest.$ac_ext <<_ACEOF |
| 2965 | /* end confdefs.h. */ |
| 2966 | |
| 2967 | int |
| 2968 | main () |
| 2969 | { |
| 2970 | |
| 2971 | ; |
| 2972 | return 0; |
| 2973 | } |
| 2974 | _ACEOF |
| 2975 | rm -f conftest.$ac_objext |
| 2976 | if { (ac_try="$ac_compile" |
| 2977 | case "(($ac_try" in |
| 2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2979 | *) ac_try_echo=$ac_try;; |
| 2980 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2982 | (eval "$ac_compile") 2>conftest.er1 |
| 2983 | ac_status=$? |
| 2984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2985 | rm -f conftest.er1 |
| 2986 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2988 | (exit $ac_status); } && { |
| 2989 | test -z "$ac_c_werror_flag" || |
| 2990 | test ! -s conftest.err |
| 2991 | } && test -s conftest.$ac_objext; then |
| 2992 | : |
| 2993 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 2994 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2996 | |
| 2997 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2998 | CFLAGS="-g" |
| 2999 | cat >conftest.$ac_ext <<_ACEOF |
| 3000 | /* confdefs.h. */ |
| 3001 | _ACEOF |
| 3002 | cat confdefs.h >>conftest.$ac_ext |
| 3003 | cat >>conftest.$ac_ext <<_ACEOF |
| 3004 | /* end confdefs.h. */ |
| 3005 | |
| 3006 | int |
| 3007 | main () |
| 3008 | { |
| 3009 | |
| 3010 | ; |
| 3011 | return 0; |
| 3012 | } |
| 3013 | _ACEOF |
| 3014 | rm -f conftest.$ac_objext |
| 3015 | if { (ac_try="$ac_compile" |
| 3016 | case "(($ac_try" in |
| 3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3018 | *) ac_try_echo=$ac_try;; |
| 3019 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3021 | (eval "$ac_compile") 2>conftest.er1 |
| 3022 | ac_status=$? |
| 3023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3024 | rm -f conftest.er1 |
| 3025 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3027 | (exit $ac_status); } && { |
| 3028 | test -z "$ac_c_werror_flag" || |
| 3029 | test ! -s conftest.err |
| 3030 | } && test -s conftest.$ac_objext; then |
| 3031 | ac_cv_prog_cc_g=yes |
| 3032 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3033 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3035 | |
| 3036 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3037 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3038 | |
| 3039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3040 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3041 | |
| 3042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3043 | fi |
| 3044 | |
| 3045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3046 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3047 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3048 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3049 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3050 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3052 | elif test $ac_cv_prog_cc_g = yes; then |
| 3053 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3054 | CFLAGS="-g -O2" |
| 3055 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3056 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3057 | fi |
| 3058 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3059 | if test "$GCC" = yes; then |
| 3060 | CFLAGS="-O2" |
| 3061 | else |
| 3062 | CFLAGS= |
| 3063 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3064 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3065 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3066 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3067 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3069 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3070 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3071 | ac_save_CC=$CC |
| 3072 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3073 | /* confdefs.h. */ |
| 3074 | _ACEOF |
| 3075 | cat confdefs.h >>conftest.$ac_ext |
| 3076 | cat >>conftest.$ac_ext <<_ACEOF |
| 3077 | /* end confdefs.h. */ |
| 3078 | #include <stdarg.h> |
| 3079 | #include <stdio.h> |
| 3080 | #include <sys/types.h> |
| 3081 | #include <sys/stat.h> |
| 3082 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3083 | struct buf { int x; }; |
| 3084 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3085 | static char *e (p, i) |
| 3086 | char **p; |
| 3087 | int i; |
| 3088 | { |
| 3089 | return p[i]; |
| 3090 | } |
| 3091 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3092 | { |
| 3093 | char *s; |
| 3094 | va_list v; |
| 3095 | va_start (v,p); |
| 3096 | s = g (p, va_arg (v,int)); |
| 3097 | va_end (v); |
| 3098 | return s; |
| 3099 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3100 | |
| 3101 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3102 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3103 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3104 | 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] | 3105 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3106 | 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] | 3107 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3108 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3109 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3110 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3111 | inside strings and character constants. */ |
| 3112 | #define FOO(x) 'x' |
| 3113 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3114 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3115 | int test (int i, double x); |
| 3116 | struct s1 {int (*f) (int a);}; |
| 3117 | struct s2 {int (*f) (double a);}; |
| 3118 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3119 | int argc; |
| 3120 | char **argv; |
| 3121 | int |
| 3122 | main () |
| 3123 | { |
| 3124 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3125 | ; |
| 3126 | return 0; |
| 3127 | } |
| 3128 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3129 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3130 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3131 | do |
| 3132 | CC="$ac_save_CC $ac_arg" |
| 3133 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3134 | if { (ac_try="$ac_compile" |
| 3135 | case "(($ac_try" in |
| 3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3137 | *) ac_try_echo=$ac_try;; |
| 3138 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3140 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3143 | rm -f conftest.er1 |
| 3144 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3146 | (exit $ac_status); } && { |
| 3147 | test -z "$ac_c_werror_flag" || |
| 3148 | test ! -s conftest.err |
| 3149 | } && test -s conftest.$ac_objext; then |
| 3150 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3151 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3154 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3155 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3156 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3157 | |
| 3158 | rm -f core conftest.err conftest.$ac_objext |
| 3159 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3160 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3161 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3162 | CC=$ac_save_CC |
| 3163 | |
| 3164 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3165 | # AC_CACHE_VAL |
| 3166 | case "x$ac_cv_prog_cc_c89" in |
| 3167 | x) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3168 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3169 | echo "${ECHO_T}none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3170 | xno) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3171 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3172 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3173 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3174 | CC="$CC $ac_cv_prog_cc_c89" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3175 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3176 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3177 | esac |
| 3178 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3180 | ac_ext=c |
| 3181 | ac_cpp='$CPP $CPPFLAGS' |
| 3182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3185 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3186 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3187 | |
| 3188 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3189 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3190 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3191 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3192 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3193 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3194 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3195 | |
| 3196 | case $withval in |
| 3197 | no) with_cxx_main=no |
| 3198 | MAINCC='$(CC)';; |
| 3199 | yes) with_cxx_main=yes |
| 3200 | MAINCC='$(CXX)';; |
| 3201 | *) with_cxx_main=yes |
| 3202 | MAINCC=$withval |
| 3203 | if test -z "$CXX" |
| 3204 | then |
| 3205 | CXX=$withval |
| 3206 | fi;; |
| 3207 | esac |
| 3208 | else |
| 3209 | |
| 3210 | with_cxx_main=no |
| 3211 | MAINCC='$(CC)' |
| 3212 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3213 | fi |
| 3214 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3215 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3216 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3217 | |
| 3218 | preset_cxx="$CXX" |
| 3219 | if test -z "$CXX" |
| 3220 | then |
| 3221 | case "$CC" in |
| 3222 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3223 | set dummy g++; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3224 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3226 | if test "${ac_cv_path_CXX+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3228 | else |
| 3229 | case $CXX in |
| 3230 | [\\/]* | ?:[\\/]*) |
| 3231 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3232 | ;; |
| 3233 | *) |
| 3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3235 | for as_dir in notfound |
| 3236 | do |
| 3237 | IFS=$as_save_IFS |
| 3238 | test -z "$as_dir" && as_dir=. |
| 3239 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3240 | 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] | 3241 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3243 | break 2 |
| 3244 | fi |
| 3245 | done |
| 3246 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3247 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3248 | |
| 3249 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3250 | ;; |
| 3251 | esac |
| 3252 | fi |
| 3253 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3254 | if test -n "$CXX"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3255 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3256 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3257 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3258 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3259 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3261 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3262 | ;; |
| 3263 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3264 | set dummy c++; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3265 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3267 | if test "${ac_cv_path_CXX+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3269 | else |
| 3270 | case $CXX in |
| 3271 | [\\/]* | ?:[\\/]*) |
| 3272 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3273 | ;; |
| 3274 | *) |
| 3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3276 | for as_dir in notfound |
| 3277 | do |
| 3278 | IFS=$as_save_IFS |
| 3279 | test -z "$as_dir" && as_dir=. |
| 3280 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3281 | 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] | 3282 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3284 | break 2 |
| 3285 | fi |
| 3286 | done |
| 3287 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3288 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3289 | |
| 3290 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3291 | ;; |
| 3292 | esac |
| 3293 | fi |
| 3294 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3295 | if test -n "$CXX"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3296 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3297 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3298 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3300 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3301 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3302 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3303 | ;; |
| 3304 | esac |
| 3305 | if test "$CXX" = "notfound" |
| 3306 | then |
| 3307 | CXX="" |
| 3308 | fi |
| 3309 | fi |
| 3310 | if test -z "$CXX" |
| 3311 | then |
| 3312 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3313 | do |
| 3314 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3315 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3318 | if test "${ac_cv_prog_CXX+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3320 | else |
| 3321 | if test -n "$CXX"; then |
| 3322 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3323 | else |
| 3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3325 | for as_dir in $PATH |
| 3326 | do |
| 3327 | IFS=$as_save_IFS |
| 3328 | test -z "$as_dir" && as_dir=. |
| 3329 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3330 | 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] | 3331 | ac_cv_prog_CXX="$ac_prog" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3333 | break 2 |
| 3334 | fi |
| 3335 | done |
| 3336 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3337 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3338 | |
| 3339 | fi |
| 3340 | fi |
| 3341 | CXX=$ac_cv_prog_CXX |
| 3342 | if test -n "$CXX"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3343 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3344 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3345 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3346 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3347 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3348 | fi |
| 3349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3350 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3351 | test -n "$CXX" && break |
| 3352 | done |
| 3353 | test -n "$CXX" || CXX="notfound" |
| 3354 | |
| 3355 | if test "$CXX" = "notfound" |
| 3356 | then |
| 3357 | CXX="" |
| 3358 | fi |
| 3359 | fi |
| 3360 | if test "$preset_cxx" != "$CXX" |
| 3361 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3362 | { echo "$as_me:$LINENO: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3363 | |
| 3364 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3365 | If this is not intended, then set CXX on the configure command line. |
| 3366 | " >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3367 | echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3368 | |
| 3369 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3370 | If this is not intended, then set CXX on the configure command line. |
| 3371 | " >&2;} |
| 3372 | fi |
| 3373 | |
| 3374 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3375 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | |
| 3377 | ac_ext=c |
| 3378 | ac_cpp='$CPP $CPPFLAGS' |
| 3379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3382 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3383 | 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] | 3384 | # On Suns, sometimes $CPP names a directory. |
| 3385 | if test -n "$CPP" && test -d "$CPP"; then |
| 3386 | CPP= |
| 3387 | fi |
| 3388 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | if test "${ac_cv_prog_CPP+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3391 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | # Double quotes because CPP needs to be expanded |
| 3393 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3394 | do |
| 3395 | ac_preproc_ok=false |
| 3396 | for ac_c_preproc_warn_flag in '' yes |
| 3397 | do |
| 3398 | # Use a header file that comes with gcc, so configuring glibc |
| 3399 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3400 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3401 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3402 | # 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] | 3403 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3405 | /* confdefs.h. */ |
| 3406 | _ACEOF |
| 3407 | cat confdefs.h >>conftest.$ac_ext |
| 3408 | cat >>conftest.$ac_ext <<_ACEOF |
| 3409 | /* end confdefs.h. */ |
| 3410 | #ifdef __STDC__ |
| 3411 | # include <limits.h> |
| 3412 | #else |
| 3413 | # include <assert.h> |
| 3414 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3415 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3416 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3417 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3418 | case "(($ac_try" in |
| 3419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3420 | *) ac_try_echo=$ac_try;; |
| 3421 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3423 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3424 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3425 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3426 | rm -f conftest.er1 |
| 3427 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3429 | (exit $ac_status); } >/dev/null && { |
| 3430 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3431 | test ! -s conftest.err |
| 3432 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3433 | : |
| 3434 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | # Broken: fails on valid input. |
| 3439 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3440 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3442 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3444 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | # can be detected and how. |
| 3446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3447 | /* confdefs.h. */ |
| 3448 | _ACEOF |
| 3449 | cat confdefs.h >>conftest.$ac_ext |
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
| 3451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | #include <ac_nonexistent.h> |
| 3453 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3455 | case "(($ac_try" in |
| 3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3457 | *) ac_try_echo=$ac_try;; |
| 3458 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3462 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | rm -f conftest.er1 |
| 3464 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3466 | (exit $ac_status); } >/dev/null && { |
| 3467 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3468 | test ! -s conftest.err |
| 3469 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | # Broken: success on invalid input. |
| 3471 | continue |
| 3472 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | # Passes both tests. |
| 3477 | ac_preproc_ok=: |
| 3478 | break |
| 3479 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | rm -f conftest.err conftest.$ac_ext |
| 3482 | |
| 3483 | done |
| 3484 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3485 | rm -f conftest.err conftest.$ac_ext |
| 3486 | if $ac_preproc_ok; then |
| 3487 | break |
| 3488 | fi |
| 3489 | |
| 3490 | done |
| 3491 | ac_cv_prog_CPP=$CPP |
| 3492 | |
| 3493 | fi |
| 3494 | CPP=$ac_cv_prog_CPP |
| 3495 | else |
| 3496 | ac_cv_prog_CPP=$CPP |
| 3497 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3498 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3499 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | ac_preproc_ok=false |
| 3501 | for ac_c_preproc_warn_flag in '' yes |
| 3502 | do |
| 3503 | # Use a header file that comes with gcc, so configuring glibc |
| 3504 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3505 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3506 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3508 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3510 | /* confdefs.h. */ |
| 3511 | _ACEOF |
| 3512 | cat confdefs.h >>conftest.$ac_ext |
| 3513 | cat >>conftest.$ac_ext <<_ACEOF |
| 3514 | /* end confdefs.h. */ |
| 3515 | #ifdef __STDC__ |
| 3516 | # include <limits.h> |
| 3517 | #else |
| 3518 | # include <assert.h> |
| 3519 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3520 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3522 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3523 | case "(($ac_try" in |
| 3524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3525 | *) ac_try_echo=$ac_try;; |
| 3526 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3528 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3530 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | rm -f conftest.er1 |
| 3532 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3534 | (exit $ac_status); } >/dev/null && { |
| 3535 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3536 | test ! -s conftest.err |
| 3537 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | : |
| 3539 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | # Broken: fails on valid input. |
| 3544 | continue |
| 3545 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | rm -f conftest.err conftest.$ac_ext |
| 3548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3549 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | # can be detected and how. |
| 3551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3552 | /* confdefs.h. */ |
| 3553 | _ACEOF |
| 3554 | cat confdefs.h >>conftest.$ac_ext |
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
| 3556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | #include <ac_nonexistent.h> |
| 3558 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3559 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3560 | case "(($ac_try" in |
| 3561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3562 | *) ac_try_echo=$ac_try;; |
| 3563 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3567 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3568 | rm -f conftest.er1 |
| 3569 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3571 | (exit $ac_status); } >/dev/null && { |
| 3572 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3573 | test ! -s conftest.err |
| 3574 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | # Broken: success on invalid input. |
| 3576 | continue |
| 3577 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3581 | # Passes both tests. |
| 3582 | ac_preproc_ok=: |
| 3583 | break |
| 3584 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3586 | rm -f conftest.err conftest.$ac_ext |
| 3587 | |
| 3588 | done |
| 3589 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3590 | rm -f conftest.err conftest.$ac_ext |
| 3591 | if $ac_preproc_ok; then |
| 3592 | : |
| 3593 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3594 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3595 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3596 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3597 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3598 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | |
| 3601 | ac_ext=c |
| 3602 | ac_cpp='$CPP $CPPFLAGS' |
| 3603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3606 | |
| 3607 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3608 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3609 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3610 | if test "${ac_cv_path_GREP+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3612 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3613 | # Extract the first word of "grep ggrep" to use in msg output |
| 3614 | if test -z "$GREP"; then |
| 3615 | set dummy grep ggrep; ac_prog_name=$2 |
| 3616 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3618 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3619 | ac_path_GREP_found=false |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3620 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3622 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3623 | do |
| 3624 | IFS=$as_save_IFS |
| 3625 | test -z "$as_dir" && as_dir=. |
| 3626 | for ac_prog in grep ggrep; do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3627 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3628 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3629 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3630 | # Check for GNU ac_path_GREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3631 | # Check for GNU $ac_path_GREP |
| 3632 | case `"$ac_path_GREP" --version 2>&1` in |
| 3633 | *GNU*) |
| 3634 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3635 | *) |
| 3636 | ac_count=0 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3637 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3638 | while : |
| 3639 | do |
| 3640 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3641 | mv "conftest.tmp" "conftest.in" |
| 3642 | cp "conftest.in" "conftest.nl" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3643 | echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3644 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3645 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3646 | ac_count=`expr $ac_count + 1` |
| 3647 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3648 | # Best one so far, save it but keep looking for a better one |
| 3649 | ac_cv_path_GREP="$ac_path_GREP" |
| 3650 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3651 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3652 | # 10*(2^10) chars as input seems more than enough |
| 3653 | test $ac_count -gt 10 && break |
| 3654 | done |
| 3655 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3656 | esac |
| 3657 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3658 | |
| 3659 | $ac_path_GREP_found && break 3 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3660 | done |
| 3661 | done |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3662 | |
| 3663 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3664 | IFS=$as_save_IFS |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3665 | |
| 3666 | |
| 3667 | fi |
| 3668 | |
| 3669 | GREP="$ac_cv_path_GREP" |
| 3670 | if test -z "$GREP"; then |
| 3671 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3672 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3673 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3674 | fi |
| 3675 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3676 | else |
| 3677 | ac_cv_path_GREP=$GREP |
| 3678 | fi |
| 3679 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3680 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3681 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3682 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3683 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3684 | GREP="$ac_cv_path_GREP" |
| 3685 | |
| 3686 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3687 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3688 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3689 | if test "${ac_cv_path_EGREP+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3691 | else |
| 3692 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3693 | then ac_cv_path_EGREP="$GREP -E" |
| 3694 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3695 | # Extract the first word of "egrep" to use in msg output |
| 3696 | if test -z "$EGREP"; then |
| 3697 | set dummy egrep; ac_prog_name=$2 |
| 3698 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3700 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3701 | ac_path_EGREP_found=false |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3702 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3704 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3705 | do |
| 3706 | IFS=$as_save_IFS |
| 3707 | test -z "$as_dir" && as_dir=. |
| 3708 | for ac_prog in egrep; do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3710 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3711 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3712 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3713 | # Check for GNU $ac_path_EGREP |
| 3714 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3715 | *GNU*) |
| 3716 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3717 | *) |
| 3718 | ac_count=0 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3719 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3720 | while : |
| 3721 | do |
| 3722 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3723 | mv "conftest.tmp" "conftest.in" |
| 3724 | cp "conftest.in" "conftest.nl" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3725 | echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3726 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3727 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3728 | ac_count=`expr $ac_count + 1` |
| 3729 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3730 | # Best one so far, save it but keep looking for a better one |
| 3731 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3732 | ac_path_EGREP_max=$ac_count |
| 3733 | fi |
| 3734 | # 10*(2^10) chars as input seems more than enough |
| 3735 | test $ac_count -gt 10 && break |
| 3736 | done |
| 3737 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3738 | esac |
| 3739 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3740 | |
| 3741 | $ac_path_EGREP_found && break 3 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3742 | done |
| 3743 | done |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3744 | |
| 3745 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3746 | IFS=$as_save_IFS |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3747 | |
| 3748 | |
| 3749 | fi |
| 3750 | |
| 3751 | EGREP="$ac_cv_path_EGREP" |
| 3752 | if test -z "$EGREP"; then |
| 3753 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3754 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3755 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3756 | fi |
| 3757 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3758 | else |
| 3759 | ac_cv_path_EGREP=$EGREP |
| 3760 | fi |
| 3761 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3762 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3763 | fi |
| 3764 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3765 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3766 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3767 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3768 | |
| 3769 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3770 | |
| 3771 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3772 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3774 | /* confdefs.h. */ |
| 3775 | _ACEOF |
| 3776 | cat confdefs.h >>conftest.$ac_ext |
| 3777 | cat >>conftest.$ac_ext <<_ACEOF |
| 3778 | /* end confdefs.h. */ |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3779 | #ifdef _AIX |
| 3780 | yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3785 | $EGREP "yes" >/dev/null 2>&1; then |
| 3786 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3787 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3789 | #define _ALL_SOURCE 1 |
| 3790 | _ACEOF |
| 3791 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3792 | else |
| 3793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3794 | echo "${ECHO_T}no" >&6; } |
| 3795 | fi |
| 3796 | rm -f conftest* |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3797 | |
| 3798 | |
| 3799 | |
| 3800 | # Check for unsupported systems |
| 3801 | case $ac_sys_system/$ac_sys_release in |
| 3802 | atheos*|Linux*/1*) |
| 3803 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3804 | echo See README for details. |
| 3805 | exit 1;; |
| 3806 | esac |
| 3807 | |
| 3808 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3809 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3810 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3811 | |
| 3812 | # Check whether --with-suffix was given. |
| 3813 | if test "${with_suffix+set}" = set; then |
| 3814 | withval=$with_suffix; |
| 3815 | case $withval in |
| 3816 | no) EXEEXT=;; |
| 3817 | yes) EXEEXT=.exe;; |
| 3818 | *) EXEEXT=$withval;; |
| 3819 | esac |
| 3820 | fi |
| 3821 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3822 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3823 | echo "${ECHO_T}$EXEEXT" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3824 | |
| 3825 | # Test whether we're running on a non-case-sensitive system, in which |
| 3826 | # case we give a warning if no ext is given |
| 3827 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3828 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3829 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3830 | if test ! -d CaseSensitiveTestDir; then |
| 3831 | mkdir CaseSensitiveTestDir |
| 3832 | fi |
| 3833 | |
| 3834 | if test -d casesensitivetestdir |
| 3835 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3836 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3837 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3838 | BUILDEXEEXT=.exe |
| 3839 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3840 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3841 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3842 | BUILDEXEEXT=$EXEEXT |
| 3843 | fi |
| 3844 | rmdir CaseSensitiveTestDir |
| 3845 | |
| 3846 | case $MACHDEP in |
| 3847 | bsdos*) |
| 3848 | case $CC in |
| 3849 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3850 | esac;; |
| 3851 | esac |
| 3852 | |
| 3853 | case $ac_sys_system in |
| 3854 | hp*|HP*) |
| 3855 | case $CC in |
| 3856 | cc|*/cc) CC="$CC -Ae";; |
| 3857 | esac;; |
| 3858 | Monterey*) |
| 3859 | case $CC in |
| 3860 | cc) CC="$CC -Wl,-Bexport";; |
| 3861 | esac;; |
| 3862 | SunOS*) |
| 3863 | # Some functions have a prototype only with that define, e.g. confstr |
| 3864 | |
| 3865 | cat >>confdefs.h <<\_ACEOF |
| 3866 | #define __EXTENSIONS__ 1 |
| 3867 | _ACEOF |
| 3868 | |
| 3869 | ;; |
| 3870 | esac |
| 3871 | |
| 3872 | |
| 3873 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3874 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3875 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3876 | if test -z "$LIBRARY" |
| 3877 | then |
| 3878 | LIBRARY='libpython$(VERSION).a' |
| 3879 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3880 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3881 | echo "${ECHO_T}$LIBRARY" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3882 | |
| 3883 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3884 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3885 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3886 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3887 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3888 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3889 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3890 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3891 | # |
| 3892 | # RUNSHARED is used to run shared python without installed libraries |
| 3893 | # |
| 3894 | # INSTSONAME is the name of the shared library that will be use to install |
| 3895 | # on the system - some systems like version suffix, others don't |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | LDLIBRARY="$LIBRARY" |
| 3903 | BLDLIBRARY='$(LDLIBRARY)' |
| 3904 | INSTSONAME='$(LDLIBRARY)' |
| 3905 | DLLLIBRARY='' |
| 3906 | LDLIBRARYDIR='' |
| 3907 | RUNSHARED='' |
| 3908 | |
| 3909 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3910 | # If CXX is set, and if it is needed to link a main function that was |
| 3911 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3912 | # python might then depend on the C++ runtime |
| 3913 | # This is altered for AIX in order to build the export list before |
| 3914 | # linking. |
| 3915 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3916 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3917 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3918 | if test -z "$LINKCC" |
| 3919 | then |
| 3920 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3921 | case $ac_sys_system in |
| 3922 | AIX*) |
| 3923 | exp_extra="\"\"" |
| 3924 | if test $ac_sys_release -ge 5 -o \ |
| 3925 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3926 | exp_extra="." |
| 3927 | fi |
| 3928 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 3929 | Monterey64*) |
| 3930 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 3931 | QNX*) |
| 3932 | # qcc must be used because the other compilers do not |
| 3933 | # support -N. |
| 3934 | LINKCC=qcc;; |
| 3935 | esac |
| 3936 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3937 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3938 | echo "${ECHO_T}$LINKCC" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3939 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3940 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3941 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3942 | # Check whether --enable-shared was given. |
| 3943 | if test "${enable_shared+set}" = set; then |
| 3944 | enableval=$enable_shared; |
| 3945 | fi |
| 3946 | |
| 3947 | |
| 3948 | if test -z "$enable_shared" |
| 3949 | then |
| 3950 | case $ac_sys_system in |
| 3951 | CYGWIN* | atheos*) |
| 3952 | enable_shared="yes";; |
| 3953 | *) |
| 3954 | enable_shared="no";; |
| 3955 | esac |
| 3956 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3957 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3958 | echo "${ECHO_T}$enable_shared" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3959 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3960 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3961 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3962 | # Check whether --enable-profiling was given. |
| 3963 | if test "${enable_profiling+set}" = set; then |
| 3964 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 3965 | CC="$CC -pg" |
| 3966 | if test "$cross_compiling" = yes; then |
| 3967 | ac_enable_profiling="no" |
| 3968 | else |
| 3969 | cat >conftest.$ac_ext <<_ACEOF |
| 3970 | /* confdefs.h. */ |
| 3971 | _ACEOF |
| 3972 | cat confdefs.h >>conftest.$ac_ext |
| 3973 | cat >>conftest.$ac_ext <<_ACEOF |
| 3974 | /* end confdefs.h. */ |
| 3975 | int main() { return 0; } |
| 3976 | _ACEOF |
| 3977 | rm -f conftest$ac_exeext |
| 3978 | if { (ac_try="$ac_link" |
| 3979 | case "(($ac_try" in |
| 3980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3981 | *) ac_try_echo=$ac_try;; |
| 3982 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3984 | (eval "$ac_link") 2>&5 |
| 3985 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3988 | { (case "(($ac_try" in |
| 3989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3990 | *) ac_try_echo=$ac_try;; |
| 3991 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3993 | (eval "$ac_try") 2>&5 |
| 3994 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3996 | (exit $ac_status); }; }; then |
| 3997 | ac_enable_profiling="yes" |
| 3998 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 3999 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4000 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4002 | |
| 4003 | ( exit $ac_status ) |
| 4004 | ac_enable_profiling="no" |
| 4005 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4007 | fi |
| 4008 | |
| 4009 | |
| 4010 | CC="$ac_save_cc" |
| 4011 | fi |
| 4012 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4013 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4014 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4015 | |
| 4016 | case "$ac_enable_profiling" in |
| 4017 | "yes") |
| 4018 | BASECFLAGS="-pg $BASECFLAGS" |
| 4019 | LDFLAGS="-pg $LDFLAGS" |
| 4020 | ;; |
| 4021 | esac |
| 4022 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4023 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4024 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4025 | |
| 4026 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4027 | # library that we build, but we do not want to link against it (we |
| 4028 | # will find it with a -framework option). For this reason there is an |
| 4029 | # extra variable BLDLIBRARY against which Python and the extension |
| 4030 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4031 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4032 | if test "$enable_framework" |
| 4033 | then |
| 4034 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4035 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4036 | BLDLIBRARY='' |
| 4037 | else |
| 4038 | BLDLIBRARY='$(LDLIBRARY)' |
| 4039 | fi |
| 4040 | |
| 4041 | # Other platforms follow |
| 4042 | if test $enable_shared = "yes"; then |
| 4043 | |
| 4044 | cat >>confdefs.h <<\_ACEOF |
| 4045 | #define Py_ENABLE_SHARED 1 |
| 4046 | _ACEOF |
| 4047 | |
| 4048 | case $ac_sys_system in |
| 4049 | CYGWIN*) |
| 4050 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4051 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4052 | ;; |
| 4053 | SunOS*) |
| 4054 | LDLIBRARY='libpython$(VERSION).so' |
| 4055 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4056 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4057 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4058 | ;; |
| 4059 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4060 | LDLIBRARY='libpython$(VERSION).so' |
| 4061 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4062 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4063 | case $ac_sys_system in |
| 4064 | FreeBSD*) |
| 4065 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4066 | ;; |
| 4067 | esac |
| 4068 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4069 | ;; |
| 4070 | hp*|HP*) |
| 4071 | case `uname -m` in |
| 4072 | ia64) |
| 4073 | LDLIBRARY='libpython$(VERSION).so' |
| 4074 | ;; |
| 4075 | *) |
| 4076 | LDLIBRARY='libpython$(VERSION).sl' |
| 4077 | ;; |
| 4078 | esac |
| 4079 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4080 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4081 | ;; |
| 4082 | OSF*) |
| 4083 | LDLIBRARY='libpython$(VERSION).so' |
| 4084 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4085 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4086 | ;; |
| 4087 | atheos*) |
| 4088 | LDLIBRARY='libpython$(VERSION).so' |
| 4089 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4090 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4091 | ;; |
| 4092 | Darwin*) |
| 4093 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4094 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4095 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4096 | ;; |
| 4097 | |
| 4098 | esac |
| 4099 | else # shared is disabled |
| 4100 | case $ac_sys_system in |
| 4101 | CYGWIN*) |
| 4102 | BLDLIBRARY='$(LIBRARY)' |
| 4103 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4104 | ;; |
| 4105 | esac |
| 4106 | fi |
| 4107 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4108 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4109 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4110 | |
| 4111 | if test -n "$ac_tool_prefix"; then |
| 4112 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4113 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4116 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4118 | else |
| 4119 | if test -n "$RANLIB"; then |
| 4120 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4121 | else |
| 4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4123 | for as_dir in $PATH |
| 4124 | do |
| 4125 | IFS=$as_save_IFS |
| 4126 | test -z "$as_dir" && as_dir=. |
| 4127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4129 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4131 | break 2 |
| 4132 | fi |
| 4133 | done |
| 4134 | done |
| 4135 | IFS=$as_save_IFS |
| 4136 | |
| 4137 | fi |
| 4138 | fi |
| 4139 | RANLIB=$ac_cv_prog_RANLIB |
| 4140 | if test -n "$RANLIB"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4141 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4142 | echo "${ECHO_T}$RANLIB" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4143 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4144 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4145 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4146 | fi |
| 4147 | |
| 4148 | |
| 4149 | fi |
| 4150 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4151 | ac_ct_RANLIB=$RANLIB |
| 4152 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4153 | set dummy ranlib; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4154 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4156 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4158 | else |
| 4159 | if test -n "$ac_ct_RANLIB"; then |
| 4160 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4161 | else |
| 4162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4163 | for as_dir in $PATH |
| 4164 | do |
| 4165 | IFS=$as_save_IFS |
| 4166 | test -z "$as_dir" && as_dir=. |
| 4167 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4169 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4171 | break 2 |
| 4172 | fi |
| 4173 | done |
| 4174 | done |
| 4175 | IFS=$as_save_IFS |
| 4176 | |
| 4177 | fi |
| 4178 | fi |
| 4179 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4180 | if test -n "$ac_ct_RANLIB"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4181 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4182 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4183 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4184 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4185 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4186 | fi |
| 4187 | |
| 4188 | if test "x$ac_ct_RANLIB" = x; then |
| 4189 | RANLIB=":" |
| 4190 | else |
| 4191 | case $cross_compiling:$ac_tool_warned in |
| 4192 | yes:) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4193 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4194 | whose name does not start with the host triplet. If you think this |
| 4195 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4196 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4197 | whose name does not start with the host triplet. If you think this |
| 4198 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4199 | ac_tool_warned=yes ;; |
| 4200 | esac |
| 4201 | RANLIB=$ac_ct_RANLIB |
| 4202 | fi |
| 4203 | else |
| 4204 | RANLIB="$ac_cv_prog_RANLIB" |
| 4205 | fi |
| 4206 | |
| 4207 | |
| 4208 | for ac_prog in ar aal |
| 4209 | do |
| 4210 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4211 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4214 | if test "${ac_cv_prog_AR+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4216 | else |
| 4217 | if test -n "$AR"; then |
| 4218 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4219 | else |
| 4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4221 | for as_dir in $PATH |
| 4222 | do |
| 4223 | IFS=$as_save_IFS |
| 4224 | test -z "$as_dir" && as_dir=. |
| 4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4227 | ac_cv_prog_AR="$ac_prog" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4229 | break 2 |
| 4230 | fi |
| 4231 | done |
| 4232 | done |
| 4233 | IFS=$as_save_IFS |
| 4234 | |
| 4235 | fi |
| 4236 | fi |
| 4237 | AR=$ac_cv_prog_AR |
| 4238 | if test -n "$AR"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4239 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4240 | echo "${ECHO_T}$AR" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4241 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4242 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4243 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4244 | fi |
| 4245 | |
| 4246 | |
| 4247 | test -n "$AR" && break |
| 4248 | done |
| 4249 | test -n "$AR" || AR="ar" |
| 4250 | |
| 4251 | |
| 4252 | |
| 4253 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4254 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4257 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4259 | else |
| 4260 | if test -n "$SVNVERSION"; then |
| 4261 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4262 | else |
| 4263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4264 | for as_dir in $PATH |
| 4265 | do |
| 4266 | IFS=$as_save_IFS |
| 4267 | test -z "$as_dir" && as_dir=. |
| 4268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4270 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4272 | break 2 |
| 4273 | fi |
| 4274 | done |
| 4275 | done |
| 4276 | IFS=$as_save_IFS |
| 4277 | |
| 4278 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4279 | fi |
| 4280 | fi |
| 4281 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4282 | if test -n "$SVNVERSION"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4283 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4284 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4285 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4286 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4287 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4288 | fi |
| 4289 | |
| 4290 | |
| 4291 | if test $SVNVERSION = found |
| 4292 | then |
| 4293 | SVNVERSION="svnversion \$(srcdir)" |
| 4294 | else |
| 4295 | SVNVERSION="echo exported" |
| 4296 | fi |
| 4297 | |
| 4298 | case $MACHDEP in |
| 4299 | bsdos*|hp*|HP*) |
| 4300 | # install -d does not work on BSDI or HP-UX |
| 4301 | if test -z "$INSTALL" |
| 4302 | then |
| 4303 | INSTALL="${srcdir}/install-sh -c" |
| 4304 | fi |
| 4305 | esac |
| 4306 | ac_aux_dir= |
| 4307 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4308 | if test -f "$ac_dir/install-sh"; then |
| 4309 | ac_aux_dir=$ac_dir |
| 4310 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4311 | break |
| 4312 | elif test -f "$ac_dir/install.sh"; then |
| 4313 | ac_aux_dir=$ac_dir |
| 4314 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4315 | break |
| 4316 | elif test -f "$ac_dir/shtool"; then |
| 4317 | ac_aux_dir=$ac_dir |
| 4318 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4319 | break |
| 4320 | fi |
| 4321 | done |
| 4322 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4323 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4324 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4325 | { (exit 1); exit 1; }; } |
| 4326 | fi |
| 4327 | |
| 4328 | # These three variables are undocumented and unsupported, |
| 4329 | # and are intended to be withdrawn in a future Autoconf release. |
| 4330 | # They can cause serious problems if a builder's source tree is in a directory |
| 4331 | # whose full name contains unusual characters. |
| 4332 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4333 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4334 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4335 | |
| 4336 | |
| 4337 | # Find a good install program. We prefer a C program (faster), |
| 4338 | # so one script is as good as another. But avoid the broken or |
| 4339 | # incompatible versions: |
| 4340 | # SysV /etc/install, /usr/sbin/install |
| 4341 | # SunOS /usr/etc/install |
| 4342 | # IRIX /sbin/install |
| 4343 | # AIX /bin/install |
| 4344 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4345 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4346 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4347 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4348 | # OS/2's system install, which has a completely different semantic |
| 4349 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4350 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4351 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4352 | if test -z "$INSTALL"; then |
| 4353 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4355 | else |
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4357 | for as_dir in $PATH |
| 4358 | do |
| 4359 | IFS=$as_save_IFS |
| 4360 | test -z "$as_dir" && as_dir=. |
| 4361 | # Account for people who put trailing slashes in PATH elements. |
| 4362 | case $as_dir/ in |
| 4363 | ./ | .// | /cC/* | \ |
| 4364 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4365 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4366 | /usr/ucb/* ) ;; |
| 4367 | *) |
| 4368 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4369 | # Don't use installbsd from OSF since it installs stuff as root |
| 4370 | # by default. |
| 4371 | for ac_prog in ginstall scoinst install; do |
| 4372 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4373 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4374 | if test $ac_prog = install && |
| 4375 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4376 | # AIX install. It has an incompatible calling convention. |
| 4377 | : |
| 4378 | elif test $ac_prog = install && |
| 4379 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4380 | # program-specific install script used by HP pwplus--don't use. |
| 4381 | : |
| 4382 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4383 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4384 | break 3 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | fi |
| 4387 | done |
| 4388 | done |
| 4389 | ;; |
| 4390 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4391 | done |
| 4392 | IFS=$as_save_IFS |
| 4393 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4394 | |
| 4395 | fi |
| 4396 | if test "${ac_cv_path_install+set}" = set; then |
| 4397 | INSTALL=$ac_cv_path_install |
| 4398 | else |
| 4399 | # As a last resort, use the slow shell script. Don't cache a |
| 4400 | # value for INSTALL within a source directory, because that will |
| 4401 | # break other packages using the cache if that directory is |
| 4402 | # removed, or if the value is a relative name. |
| 4403 | INSTALL=$ac_install_sh |
| 4404 | fi |
| 4405 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4406 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4407 | echo "${ECHO_T}$INSTALL" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4408 | |
| 4409 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4410 | # It thinks the first close brace ends the variable substitution. |
| 4411 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4412 | |
| 4413 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4414 | |
| 4415 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4416 | |
| 4417 | |
| 4418 | # Not every filesystem supports hard links |
| 4419 | |
| 4420 | if test -z "$LN" ; then |
| 4421 | case $ac_sys_system in |
| 4422 | CYGWIN*) LN="ln -s";; |
| 4423 | atheos*) LN="ln -s";; |
| 4424 | *) LN=ln;; |
| 4425 | esac |
| 4426 | fi |
| 4427 | |
| 4428 | # Check for --with-pydebug |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4429 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4430 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4431 | |
| 4432 | # Check whether --with-pydebug was given. |
| 4433 | if test "${with_pydebug+set}" = set; then |
| 4434 | withval=$with_pydebug; |
| 4435 | if test "$withval" != no |
| 4436 | then |
| 4437 | |
| 4438 | cat >>confdefs.h <<\_ACEOF |
| 4439 | #define Py_DEBUG 1 |
| 4440 | _ACEOF |
| 4441 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4442 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4443 | echo "${ECHO_T}yes" >&6; }; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4444 | Py_DEBUG='true' |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4445 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4446 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4447 | fi |
| 4448 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4450 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4451 | fi |
| 4452 | |
| 4453 | |
| 4454 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4455 | # merged with this chunk of code? |
| 4456 | |
| 4457 | # Optimizer/debugger flags |
| 4458 | # ------------------------ |
| 4459 | # (The following bit of code is complicated enough - please keep things |
| 4460 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4461 | |
| 4462 | # There are two parallel sets of case statements below, one that checks to |
| 4463 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4464 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4465 | # user set OPT. |
| 4466 | |
| 4467 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4468 | # it on the command line |
| 4469 | |
| 4470 | if test -z "$OPT" |
| 4471 | then |
| 4472 | case $GCC in |
| 4473 | yes) |
| 4474 | if test "$CC" != 'g++' ; then |
| 4475 | STRICT_PROTO="-Wstrict-prototypes" |
| 4476 | fi |
| 4477 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4478 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4479 | WRAP="-fwrapv" |
| 4480 | fi |
| 4481 | case $ac_cv_prog_cc_g in |
| 4482 | yes) |
| 4483 | if test "$Py_DEBUG" = 'true' ; then |
| 4484 | # Optimization messes up debuggers, so turn it off for |
| 4485 | # debug builds. |
| 4486 | OPT="-g -Wall $STRICT_PROTO" |
| 4487 | else |
| 4488 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4489 | fi |
| 4490 | ;; |
| 4491 | *) |
| 4492 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4493 | ;; |
| 4494 | esac |
| 4495 | case $ac_sys_system in |
| 4496 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4497 | ;; |
| 4498 | esac |
| 4499 | ;; |
| 4500 | |
| 4501 | *) |
| 4502 | OPT="-O" |
| 4503 | ;; |
| 4504 | esac |
| 4505 | |
| 4506 | # The current (beta) Monterey compiler dies with optimizations |
| 4507 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 4508 | case $ac_sys_system in |
| 4509 | Monterey*) |
| 4510 | OPT="" |
| 4511 | ;; |
| 4512 | esac |
| 4513 | |
| 4514 | fi |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | # The -arch flags for universal builds on OSX |
| 4519 | UNIVERSAL_ARCH_FLAGS= |
| 4520 | |
| 4521 | |
| 4522 | # tweak BASECFLAGS based on compiler and platform |
| 4523 | case $GCC in |
| 4524 | yes) |
| 4525 | # Python violates C99 rules, by casting between incompatible |
| 4526 | # pointer types. GCC may generate bad code as a result of that, |
| 4527 | # so use -fno-strict-aliasing if supported. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4528 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4529 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4530 | ac_save_cc="$CC" |
| 4531 | CC="$CC -fno-strict-aliasing" |
| 4532 | if test "$cross_compiling" = yes; then |
| 4533 | ac_cv_no_strict_aliasing_ok=no |
| 4534 | else |
| 4535 | cat >conftest.$ac_ext <<_ACEOF |
| 4536 | /* confdefs.h. */ |
| 4537 | _ACEOF |
| 4538 | cat confdefs.h >>conftest.$ac_ext |
| 4539 | cat >>conftest.$ac_ext <<_ACEOF |
| 4540 | /* end confdefs.h. */ |
| 4541 | int main() { return 0; } |
| 4542 | _ACEOF |
| 4543 | rm -f conftest$ac_exeext |
| 4544 | if { (ac_try="$ac_link" |
| 4545 | case "(($ac_try" in |
| 4546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4547 | *) ac_try_echo=$ac_try;; |
| 4548 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4550 | (eval "$ac_link") 2>&5 |
| 4551 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4554 | { (case "(($ac_try" in |
| 4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4556 | *) ac_try_echo=$ac_try;; |
| 4557 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4559 | (eval "$ac_try") 2>&5 |
| 4560 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4562 | (exit $ac_status); }; }; then |
| 4563 | ac_cv_no_strict_aliasing_ok=yes |
| 4564 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4565 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4566 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4568 | |
| 4569 | ( exit $ac_status ) |
| 4570 | ac_cv_no_strict_aliasing_ok=no |
| 4571 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4573 | fi |
| 4574 | |
| 4575 | |
| 4576 | CC="$ac_save_cc" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4577 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4578 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4579 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4580 | then |
| 4581 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4582 | fi |
| 4583 | |
| 4584 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4585 | # support. Without this, treatment of subnormals doesn't follow |
| 4586 | # the standard. |
| 4587 | case $ac_sys_machine in |
| 4588 | alpha*) |
| 4589 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4590 | ;; |
| 4591 | esac |
| 4592 | |
| 4593 | case $ac_sys_system in |
| 4594 | SCO_SV*) |
| 4595 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4596 | ;; |
| 4597 | # is there any other compiler on Darwin besides gcc? |
| 4598 | Darwin*) |
| 4599 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4600 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4601 | |
| 4602 | |
| 4603 | if test "${enable_universalsdk}"; then |
| 4604 | UNIVERSAL_ARCH_FLAGS="" |
| 4605 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4606 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4607 | ARCH_RUN_32BIT="" |
| 4608 | |
| 4609 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4610 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4611 | |
| 4612 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4613 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4614 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4615 | |
| 4616 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4617 | { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 4618 | echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4619 | { (exit 1); exit 1; }; } |
| 4620 | |
| 4621 | fi |
| 4622 | |
| 4623 | |
| 4624 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4625 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4626 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4627 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4628 | fi |
| 4629 | fi |
| 4630 | |
| 4631 | # Calculate the right deployment target for this build. |
| 4632 | # |
| 4633 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4634 | if test ${cur_target} '>' 10.2; then |
| 4635 | cur_target=10.3 |
| 4636 | fi |
| 4637 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4638 | # Ensure that the default platform for a 4-way |
| 4639 | # universal build is OSX 10.5, that's the first |
| 4640 | # OS release where 4-way builds make sense. |
| 4641 | cur_target='10.5' |
| 4642 | fi |
| 4643 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4644 | |
| 4645 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4646 | # environment with a value that is the same as what we'll use |
| 4647 | # in the Makefile to ensure that we'll get the same compiler |
| 4648 | # environment during configure and build time. |
| 4649 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4650 | export MACOSX_DEPLOYMENT_TARGET |
| 4651 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4652 | |
| 4653 | ;; |
| 4654 | OSF*) |
| 4655 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4656 | ;; |
| 4657 | esac |
| 4658 | ;; |
| 4659 | |
| 4660 | *) |
| 4661 | case $ac_sys_system in |
| 4662 | OpenUNIX*|UnixWare*) |
| 4663 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4664 | ;; |
| 4665 | OSF*) |
| 4666 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4667 | ;; |
| 4668 | SCO_SV*) |
| 4669 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4670 | ;; |
| 4671 | esac |
| 4672 | ;; |
| 4673 | esac |
| 4674 | |
| 4675 | if test "$Py_DEBUG" = 'true'; then |
| 4676 | : |
| 4677 | else |
| 4678 | OPT="-DNDEBUG $OPT" |
| 4679 | fi |
| 4680 | |
| 4681 | if test "$ac_arch_flags" |
| 4682 | then |
| 4683 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4684 | fi |
| 4685 | |
| 4686 | # disable check for icc since it seems to pass, but generates a warning |
| 4687 | if test "$CC" = icc |
| 4688 | then |
| 4689 | ac_cv_opt_olimit_ok=no |
| 4690 | fi |
| 4691 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4692 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4693 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4694 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4696 | else |
| 4697 | ac_save_cc="$CC" |
| 4698 | CC="$CC -OPT:Olimit=0" |
| 4699 | if test "$cross_compiling" = yes; then |
| 4700 | ac_cv_opt_olimit_ok=no |
| 4701 | else |
| 4702 | cat >conftest.$ac_ext <<_ACEOF |
| 4703 | /* confdefs.h. */ |
| 4704 | _ACEOF |
| 4705 | cat confdefs.h >>conftest.$ac_ext |
| 4706 | cat >>conftest.$ac_ext <<_ACEOF |
| 4707 | /* end confdefs.h. */ |
| 4708 | int main() { return 0; } |
| 4709 | _ACEOF |
| 4710 | rm -f conftest$ac_exeext |
| 4711 | if { (ac_try="$ac_link" |
| 4712 | case "(($ac_try" in |
| 4713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4714 | *) ac_try_echo=$ac_try;; |
| 4715 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4717 | (eval "$ac_link") 2>&5 |
| 4718 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4721 | { (case "(($ac_try" in |
| 4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4723 | *) ac_try_echo=$ac_try;; |
| 4724 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4726 | (eval "$ac_try") 2>&5 |
| 4727 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4729 | (exit $ac_status); }; }; then |
| 4730 | ac_cv_opt_olimit_ok=yes |
| 4731 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4732 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4733 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4735 | |
| 4736 | ( exit $ac_status ) |
| 4737 | ac_cv_opt_olimit_ok=no |
| 4738 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4740 | fi |
| 4741 | |
| 4742 | |
| 4743 | CC="$ac_save_cc" |
| 4744 | fi |
| 4745 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4746 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4747 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4748 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4749 | case $ac_sys_system in |
| 4750 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4751 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4752 | # environment? |
| 4753 | Darwin*) |
| 4754 | ;; |
| 4755 | *) |
| 4756 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4757 | ;; |
| 4758 | esac |
| 4759 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4760 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4761 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4762 | if test "${ac_cv_olimit_ok+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4764 | else |
| 4765 | ac_save_cc="$CC" |
| 4766 | CC="$CC -Olimit 1500" |
| 4767 | if test "$cross_compiling" = yes; then |
| 4768 | ac_cv_olimit_ok=no |
| 4769 | else |
| 4770 | cat >conftest.$ac_ext <<_ACEOF |
| 4771 | /* confdefs.h. */ |
| 4772 | _ACEOF |
| 4773 | cat confdefs.h >>conftest.$ac_ext |
| 4774 | cat >>conftest.$ac_ext <<_ACEOF |
| 4775 | /* end confdefs.h. */ |
| 4776 | int main() { return 0; } |
| 4777 | _ACEOF |
| 4778 | rm -f conftest$ac_exeext |
| 4779 | if { (ac_try="$ac_link" |
| 4780 | case "(($ac_try" in |
| 4781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4782 | *) ac_try_echo=$ac_try;; |
| 4783 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4785 | (eval "$ac_link") 2>&5 |
| 4786 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4789 | { (case "(($ac_try" in |
| 4790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4791 | *) ac_try_echo=$ac_try;; |
| 4792 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4794 | (eval "$ac_try") 2>&5 |
| 4795 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4797 | (exit $ac_status); }; }; then |
| 4798 | ac_cv_olimit_ok=yes |
| 4799 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4800 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4801 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4803 | |
| 4804 | ( exit $ac_status ) |
| 4805 | ac_cv_olimit_ok=no |
| 4806 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4807 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | CC="$ac_save_cc" |
| 4812 | fi |
| 4813 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4814 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4815 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4816 | if test $ac_cv_olimit_ok = yes; then |
| 4817 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4818 | fi |
| 4819 | fi |
| 4820 | |
| 4821 | # Check whether GCC supports PyArg_ParseTuple format |
| 4822 | if test "$GCC" = "yes" |
| 4823 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4824 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4825 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4826 | save_CFLAGS=$CFLAGS |
| 4827 | CFLAGS="$CFLAGS -Werror" |
| 4828 | cat >conftest.$ac_ext <<_ACEOF |
| 4829 | /* confdefs.h. */ |
| 4830 | _ACEOF |
| 4831 | cat confdefs.h >>conftest.$ac_ext |
| 4832 | cat >>conftest.$ac_ext <<_ACEOF |
| 4833 | /* end confdefs.h. */ |
| 4834 | |
| 4835 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4836 | |
| 4837 | int |
| 4838 | main () |
| 4839 | { |
| 4840 | |
| 4841 | ; |
| 4842 | return 0; |
| 4843 | } |
| 4844 | _ACEOF |
| 4845 | rm -f conftest.$ac_objext |
| 4846 | if { (ac_try="$ac_compile" |
| 4847 | case "(($ac_try" in |
| 4848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4849 | *) ac_try_echo=$ac_try;; |
| 4850 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4852 | (eval "$ac_compile") 2>conftest.er1 |
| 4853 | ac_status=$? |
| 4854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4855 | rm -f conftest.er1 |
| 4856 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4858 | (exit $ac_status); } && { |
| 4859 | test -z "$ac_c_werror_flag" || |
| 4860 | test ! -s conftest.err |
| 4861 | } && test -s conftest.$ac_objext; then |
| 4862 | |
| 4863 | cat >>confdefs.h <<\_ACEOF |
| 4864 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4865 | _ACEOF |
| 4866 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4867 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4868 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4869 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4870 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4872 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4873 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4874 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4875 | |
| 4876 | fi |
| 4877 | |
| 4878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4879 | CFLAGS=$save_CFLAGS |
| 4880 | fi |
| 4881 | |
| 4882 | # On some compilers, pthreads are available without further options |
| 4883 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4884 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4885 | # So we have to see first whether pthreads are available without |
| 4886 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4887 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4888 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4889 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4891 | else |
| 4892 | if test "$cross_compiling" = yes; then |
| 4893 | ac_cv_pthread_is_default=no |
| 4894 | else |
| 4895 | cat >conftest.$ac_ext <<_ACEOF |
| 4896 | /* confdefs.h. */ |
| 4897 | _ACEOF |
| 4898 | cat confdefs.h >>conftest.$ac_ext |
| 4899 | cat >>conftest.$ac_ext <<_ACEOF |
| 4900 | /* end confdefs.h. */ |
| 4901 | |
| 4902 | #include <pthread.h> |
| 4903 | |
| 4904 | void* routine(void* p){return NULL;} |
| 4905 | |
| 4906 | int main(){ |
| 4907 | pthread_t p; |
| 4908 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4909 | return 1; |
| 4910 | (void)pthread_detach(p); |
| 4911 | return 0; |
| 4912 | } |
| 4913 | |
| 4914 | _ACEOF |
| 4915 | rm -f conftest$ac_exeext |
| 4916 | if { (ac_try="$ac_link" |
| 4917 | case "(($ac_try" in |
| 4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4919 | *) ac_try_echo=$ac_try;; |
| 4920 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4922 | (eval "$ac_link") 2>&5 |
| 4923 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4926 | { (case "(($ac_try" in |
| 4927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4928 | *) ac_try_echo=$ac_try;; |
| 4929 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4931 | (eval "$ac_try") 2>&5 |
| 4932 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4934 | (exit $ac_status); }; }; then |
| 4935 | |
| 4936 | ac_cv_pthread_is_default=yes |
| 4937 | ac_cv_kthread=no |
| 4938 | ac_cv_pthread=no |
| 4939 | |
| 4940 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4942 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4944 | |
| 4945 | ( exit $ac_status ) |
| 4946 | ac_cv_pthread_is_default=no |
| 4947 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4949 | fi |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | fi |
| 4954 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4955 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4956 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4957 | |
| 4958 | |
| 4959 | if test $ac_cv_pthread_is_default = yes |
| 4960 | then |
| 4961 | ac_cv_kpthread=no |
| 4962 | else |
| 4963 | # -Kpthread, if available, provides the right #defines |
| 4964 | # and linker options to make pthread_create available |
| 4965 | # Some compilers won't report that they do not support -Kpthread, |
| 4966 | # so we need to run a program to see whether it really made the |
| 4967 | # function available. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4968 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4969 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4970 | if test "${ac_cv_kpthread+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4972 | else |
| 4973 | ac_save_cc="$CC" |
| 4974 | CC="$CC -Kpthread" |
| 4975 | if test "$cross_compiling" = yes; then |
| 4976 | ac_cv_kpthread=no |
| 4977 | else |
| 4978 | cat >conftest.$ac_ext <<_ACEOF |
| 4979 | /* confdefs.h. */ |
| 4980 | _ACEOF |
| 4981 | cat confdefs.h >>conftest.$ac_ext |
| 4982 | cat >>conftest.$ac_ext <<_ACEOF |
| 4983 | /* end confdefs.h. */ |
| 4984 | |
| 4985 | #include <pthread.h> |
| 4986 | |
| 4987 | void* routine(void* p){return NULL;} |
| 4988 | |
| 4989 | int main(){ |
| 4990 | pthread_t p; |
| 4991 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4992 | return 1; |
| 4993 | (void)pthread_detach(p); |
| 4994 | return 0; |
| 4995 | } |
| 4996 | |
| 4997 | _ACEOF |
| 4998 | rm -f conftest$ac_exeext |
| 4999 | if { (ac_try="$ac_link" |
| 5000 | case "(($ac_try" in |
| 5001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5002 | *) ac_try_echo=$ac_try;; |
| 5003 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5005 | (eval "$ac_link") 2>&5 |
| 5006 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5009 | { (case "(($ac_try" in |
| 5010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5011 | *) ac_try_echo=$ac_try;; |
| 5012 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5014 | (eval "$ac_try") 2>&5 |
| 5015 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5017 | (exit $ac_status); }; }; then |
| 5018 | ac_cv_kpthread=yes |
| 5019 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5021 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5023 | |
| 5024 | ( exit $ac_status ) |
| 5025 | ac_cv_kpthread=no |
| 5026 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5028 | fi |
| 5029 | |
| 5030 | |
| 5031 | CC="$ac_save_cc" |
| 5032 | fi |
| 5033 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5034 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5035 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5036 | fi |
| 5037 | |
| 5038 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5039 | then |
| 5040 | # -Kthread, if available, provides the right #defines |
| 5041 | # and linker options to make pthread_create available |
| 5042 | # Some compilers won't report that they do not support -Kthread, |
| 5043 | # so we need to run a program to see whether it really made the |
| 5044 | # function available. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5045 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5046 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5047 | if test "${ac_cv_kthread+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5049 | else |
| 5050 | ac_save_cc="$CC" |
| 5051 | CC="$CC -Kthread" |
| 5052 | if test "$cross_compiling" = yes; then |
| 5053 | ac_cv_kthread=no |
| 5054 | else |
| 5055 | cat >conftest.$ac_ext <<_ACEOF |
| 5056 | /* confdefs.h. */ |
| 5057 | _ACEOF |
| 5058 | cat confdefs.h >>conftest.$ac_ext |
| 5059 | cat >>conftest.$ac_ext <<_ACEOF |
| 5060 | /* end confdefs.h. */ |
| 5061 | |
| 5062 | #include <pthread.h> |
| 5063 | |
| 5064 | void* routine(void* p){return NULL;} |
| 5065 | |
| 5066 | int main(){ |
| 5067 | pthread_t p; |
| 5068 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5069 | return 1; |
| 5070 | (void)pthread_detach(p); |
| 5071 | return 0; |
| 5072 | } |
| 5073 | |
| 5074 | _ACEOF |
| 5075 | rm -f conftest$ac_exeext |
| 5076 | if { (ac_try="$ac_link" |
| 5077 | case "(($ac_try" in |
| 5078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5079 | *) ac_try_echo=$ac_try;; |
| 5080 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5082 | (eval "$ac_link") 2>&5 |
| 5083 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5085 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5086 | { (case "(($ac_try" in |
| 5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5088 | *) ac_try_echo=$ac_try;; |
| 5089 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5091 | (eval "$ac_try") 2>&5 |
| 5092 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5094 | (exit $ac_status); }; }; then |
| 5095 | ac_cv_kthread=yes |
| 5096 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5097 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5098 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5100 | |
| 5101 | ( exit $ac_status ) |
| 5102 | ac_cv_kthread=no |
| 5103 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5104 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5105 | fi |
| 5106 | |
| 5107 | |
| 5108 | CC="$ac_save_cc" |
| 5109 | fi |
| 5110 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5111 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5112 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5113 | fi |
| 5114 | |
| 5115 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5116 | then |
| 5117 | # -pthread, if available, provides the right #defines |
| 5118 | # and linker options to make pthread_create available |
| 5119 | # Some compilers won't report that they do not support -pthread, |
| 5120 | # so we need to run a program to see whether it really made the |
| 5121 | # function available. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5122 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5123 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5124 | if test "${ac_cv_thread+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5126 | else |
| 5127 | ac_save_cc="$CC" |
| 5128 | CC="$CC -pthread" |
| 5129 | if test "$cross_compiling" = yes; then |
| 5130 | ac_cv_pthread=no |
| 5131 | else |
| 5132 | cat >conftest.$ac_ext <<_ACEOF |
| 5133 | /* confdefs.h. */ |
| 5134 | _ACEOF |
| 5135 | cat confdefs.h >>conftest.$ac_ext |
| 5136 | cat >>conftest.$ac_ext <<_ACEOF |
| 5137 | /* end confdefs.h. */ |
| 5138 | |
| 5139 | #include <pthread.h> |
| 5140 | |
| 5141 | void* routine(void* p){return NULL;} |
| 5142 | |
| 5143 | int main(){ |
| 5144 | pthread_t p; |
| 5145 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5146 | return 1; |
| 5147 | (void)pthread_detach(p); |
| 5148 | return 0; |
| 5149 | } |
| 5150 | |
| 5151 | _ACEOF |
| 5152 | rm -f conftest$ac_exeext |
| 5153 | if { (ac_try="$ac_link" |
| 5154 | case "(($ac_try" in |
| 5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5156 | *) ac_try_echo=$ac_try;; |
| 5157 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5159 | (eval "$ac_link") 2>&5 |
| 5160 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5163 | { (case "(($ac_try" in |
| 5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5165 | *) ac_try_echo=$ac_try;; |
| 5166 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5168 | (eval "$ac_try") 2>&5 |
| 5169 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5171 | (exit $ac_status); }; }; then |
| 5172 | ac_cv_pthread=yes |
| 5173 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5175 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5177 | |
| 5178 | ( exit $ac_status ) |
| 5179 | ac_cv_pthread=no |
| 5180 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5181 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5182 | fi |
| 5183 | |
| 5184 | |
| 5185 | CC="$ac_save_cc" |
| 5186 | fi |
| 5187 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5188 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5189 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5190 | fi |
| 5191 | |
| 5192 | # If we have set a CC compiler flag for thread support then |
| 5193 | # check if it works for CXX, too. |
| 5194 | ac_cv_cxx_thread=no |
| 5195 | if test ! -z "$CXX" |
| 5196 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5197 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5198 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5199 | ac_save_cxx="$CXX" |
| 5200 | |
| 5201 | if test "$ac_cv_kpthread" = "yes" |
| 5202 | then |
| 5203 | CXX="$CXX -Kpthread" |
| 5204 | ac_cv_cxx_thread=yes |
| 5205 | elif test "$ac_cv_kthread" = "yes" |
| 5206 | then |
| 5207 | CXX="$CXX -Kthread" |
| 5208 | ac_cv_cxx_thread=yes |
| 5209 | elif test "$ac_cv_pthread" = "yes" |
| 5210 | then |
| 5211 | CXX="$CXX -pthread" |
| 5212 | ac_cv_cxx_thread=yes |
| 5213 | fi |
| 5214 | |
| 5215 | if test $ac_cv_cxx_thread = yes |
| 5216 | then |
| 5217 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5218 | $CXX -c conftest.$ac_ext 2>&5 |
| 5219 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5220 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5221 | then |
| 5222 | ac_cv_cxx_thread=yes |
| 5223 | else |
| 5224 | ac_cv_cxx_thread=no |
| 5225 | fi |
| 5226 | rm -fr conftest* |
| 5227 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5228 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5229 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5230 | fi |
| 5231 | CXX="$ac_save_cxx" |
| 5232 | |
| 5233 | |
| 5234 | # checks for header files |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5235 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5236 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5237 | if test "${ac_cv_header_stdc+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5239 | else |
| 5240 | cat >conftest.$ac_ext <<_ACEOF |
| 5241 | /* confdefs.h. */ |
| 5242 | _ACEOF |
| 5243 | cat confdefs.h >>conftest.$ac_ext |
| 5244 | cat >>conftest.$ac_ext <<_ACEOF |
| 5245 | /* end confdefs.h. */ |
| 5246 | #include <stdlib.h> |
| 5247 | #include <stdarg.h> |
| 5248 | #include <string.h> |
| 5249 | #include <float.h> |
| 5250 | |
| 5251 | int |
| 5252 | main () |
| 5253 | { |
| 5254 | |
| 5255 | ; |
| 5256 | return 0; |
| 5257 | } |
| 5258 | _ACEOF |
| 5259 | rm -f conftest.$ac_objext |
| 5260 | if { (ac_try="$ac_compile" |
| 5261 | case "(($ac_try" in |
| 5262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5263 | *) ac_try_echo=$ac_try;; |
| 5264 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5266 | (eval "$ac_compile") 2>conftest.er1 |
| 5267 | ac_status=$? |
| 5268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5269 | rm -f conftest.er1 |
| 5270 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5272 | (exit $ac_status); } && { |
| 5273 | test -z "$ac_c_werror_flag" || |
| 5274 | test ! -s conftest.err |
| 5275 | } && test -s conftest.$ac_objext; then |
| 5276 | ac_cv_header_stdc=yes |
| 5277 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5278 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5280 | |
| 5281 | ac_cv_header_stdc=no |
| 5282 | fi |
| 5283 | |
| 5284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5285 | |
| 5286 | if test $ac_cv_header_stdc = yes; then |
| 5287 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5288 | cat >conftest.$ac_ext <<_ACEOF |
| 5289 | /* confdefs.h. */ |
| 5290 | _ACEOF |
| 5291 | cat confdefs.h >>conftest.$ac_ext |
| 5292 | cat >>conftest.$ac_ext <<_ACEOF |
| 5293 | /* end confdefs.h. */ |
| 5294 | #include <string.h> |
| 5295 | |
| 5296 | _ACEOF |
| 5297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5298 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5299 | : |
| 5300 | else |
| 5301 | ac_cv_header_stdc=no |
| 5302 | fi |
| 5303 | rm -f conftest* |
| 5304 | |
| 5305 | fi |
| 5306 | |
| 5307 | if test $ac_cv_header_stdc = yes; then |
| 5308 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5309 | cat >conftest.$ac_ext <<_ACEOF |
| 5310 | /* confdefs.h. */ |
| 5311 | _ACEOF |
| 5312 | cat confdefs.h >>conftest.$ac_ext |
| 5313 | cat >>conftest.$ac_ext <<_ACEOF |
| 5314 | /* end confdefs.h. */ |
| 5315 | #include <stdlib.h> |
| 5316 | |
| 5317 | _ACEOF |
| 5318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5319 | $EGREP "free" >/dev/null 2>&1; then |
| 5320 | : |
| 5321 | else |
| 5322 | ac_cv_header_stdc=no |
| 5323 | fi |
| 5324 | rm -f conftest* |
| 5325 | |
| 5326 | fi |
| 5327 | |
| 5328 | if test $ac_cv_header_stdc = yes; then |
| 5329 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5330 | if test "$cross_compiling" = yes; then |
| 5331 | : |
| 5332 | else |
| 5333 | cat >conftest.$ac_ext <<_ACEOF |
| 5334 | /* confdefs.h. */ |
| 5335 | _ACEOF |
| 5336 | cat confdefs.h >>conftest.$ac_ext |
| 5337 | cat >>conftest.$ac_ext <<_ACEOF |
| 5338 | /* end confdefs.h. */ |
| 5339 | #include <ctype.h> |
| 5340 | #include <stdlib.h> |
| 5341 | #if ((' ' & 0x0FF) == 0x020) |
| 5342 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5343 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5344 | #else |
| 5345 | # define ISLOWER(c) \ |
| 5346 | (('a' <= (c) && (c) <= 'i') \ |
| 5347 | || ('j' <= (c) && (c) <= 'r') \ |
| 5348 | || ('s' <= (c) && (c) <= 'z')) |
| 5349 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5350 | #endif |
| 5351 | |
| 5352 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5353 | int |
| 5354 | main () |
| 5355 | { |
| 5356 | int i; |
| 5357 | for (i = 0; i < 256; i++) |
| 5358 | if (XOR (islower (i), ISLOWER (i)) |
| 5359 | || toupper (i) != TOUPPER (i)) |
| 5360 | return 2; |
| 5361 | return 0; |
| 5362 | } |
| 5363 | _ACEOF |
| 5364 | rm -f conftest$ac_exeext |
| 5365 | if { (ac_try="$ac_link" |
| 5366 | case "(($ac_try" in |
| 5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5368 | *) ac_try_echo=$ac_try;; |
| 5369 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5371 | (eval "$ac_link") 2>&5 |
| 5372 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5374 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5375 | { (case "(($ac_try" in |
| 5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5377 | *) ac_try_echo=$ac_try;; |
| 5378 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5380 | (eval "$ac_try") 2>&5 |
| 5381 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5383 | (exit $ac_status); }; }; then |
| 5384 | : |
| 5385 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5386 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5387 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5389 | |
| 5390 | ( exit $ac_status ) |
| 5391 | ac_cv_header_stdc=no |
| 5392 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5393 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5394 | fi |
| 5395 | |
| 5396 | |
| 5397 | fi |
| 5398 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5399 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5400 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5401 | if test $ac_cv_header_stdc = yes; then |
| 5402 | |
| 5403 | cat >>confdefs.h <<\_ACEOF |
| 5404 | #define STDC_HEADERS 1 |
| 5405 | _ACEOF |
| 5406 | |
| 5407 | fi |
| 5408 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5409 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
| 5414 | |
| 5415 | |
| 5416 | |
| 5417 | |
| 5418 | |
| 5419 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5420 | inttypes.h stdint.h unistd.h |
| 5421 | do |
| 5422 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5423 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5424 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5425 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5427 | else |
| 5428 | cat >conftest.$ac_ext <<_ACEOF |
| 5429 | /* confdefs.h. */ |
| 5430 | _ACEOF |
| 5431 | cat confdefs.h >>conftest.$ac_ext |
| 5432 | cat >>conftest.$ac_ext <<_ACEOF |
| 5433 | /* end confdefs.h. */ |
| 5434 | $ac_includes_default |
| 5435 | |
| 5436 | #include <$ac_header> |
| 5437 | _ACEOF |
| 5438 | rm -f conftest.$ac_objext |
| 5439 | if { (ac_try="$ac_compile" |
| 5440 | case "(($ac_try" in |
| 5441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5442 | *) ac_try_echo=$ac_try;; |
| 5443 | esac |
| 5444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5445 | (eval "$ac_compile") 2>conftest.er1 |
| 5446 | ac_status=$? |
| 5447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5448 | rm -f conftest.er1 |
| 5449 | cat conftest.err >&5 |
| 5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5451 | (exit $ac_status); } && { |
| 5452 | test -z "$ac_c_werror_flag" || |
| 5453 | test ! -s conftest.err |
| 5454 | } && test -s conftest.$ac_objext; then |
| 5455 | eval "$as_ac_Header=yes" |
| 5456 | else |
| 5457 | echo "$as_me: failed program was:" >&5 |
| 5458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5459 | |
| 5460 | eval "$as_ac_Header=no" |
| 5461 | fi |
| 5462 | |
| 5463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5464 | fi |
| 5465 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5466 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5467 | echo "${ECHO_T}$ac_res" >&6; } |
| 5468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5469 | cat >>confdefs.h <<_ACEOF |
| 5470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5471 | _ACEOF |
| 5472 | |
| 5473 | fi |
| 5474 | |
| 5475 | done |
| 5476 | |
| 5477 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 5478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | |
| 5480 | |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | |
| 5499 | |
| 5500 | |
| 5501 | |
| 5502 | |
| 5503 | |
| 5504 | |
| 5505 | |
| 5506 | |
| 5507 | |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5514 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5515 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5516 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5517 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5518 | |
| 5519 | |
| 5520 | |
| 5521 | |
| 5522 | |
| 5523 | |
| 5524 | |
| 5525 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5526 | |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5527 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5528 | |
| 5529 | |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5530 | |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 5531 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5532 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5533 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5534 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5535 | 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] | 5536 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5537 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5538 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5539 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 5540 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5541 | 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] | 5542 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5543 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5544 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5551 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5552 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5553 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5554 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5556 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5557 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5560 | /* confdefs.h. */ |
| 5561 | _ACEOF |
| 5562 | cat confdefs.h >>conftest.$ac_ext |
| 5563 | cat >>conftest.$ac_ext <<_ACEOF |
| 5564 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5565 | $ac_includes_default |
| 5566 | #include <$ac_header> |
| 5567 | _ACEOF |
| 5568 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5569 | if { (ac_try="$ac_compile" |
| 5570 | case "(($ac_try" in |
| 5571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5572 | *) ac_try_echo=$ac_try;; |
| 5573 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5578 | rm -f conftest.er1 |
| 5579 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5581 | (exit $ac_status); } && { |
| 5582 | test -z "$ac_c_werror_flag" || |
| 5583 | test ! -s conftest.err |
| 5584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5585 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5586 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5590 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5591 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5592 | |
| 5593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5594 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5595 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5596 | |
| 5597 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5598 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5599 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5601 | /* confdefs.h. */ |
| 5602 | _ACEOF |
| 5603 | cat confdefs.h >>conftest.$ac_ext |
| 5604 | cat >>conftest.$ac_ext <<_ACEOF |
| 5605 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5606 | #include <$ac_header> |
| 5607 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5608 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5609 | case "(($ac_try" in |
| 5610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5611 | *) ac_try_echo=$ac_try;; |
| 5612 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5615 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5616 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5617 | rm -f conftest.er1 |
| 5618 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5620 | (exit $ac_status); } >/dev/null && { |
| 5621 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5622 | test ! -s conftest.err |
| 5623 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5624 | ac_header_preproc=yes |
| 5625 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5629 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5632 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5633 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5634 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5635 | |
| 5636 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5638 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5639 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5640 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5642 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5643 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5644 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5645 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5646 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5647 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5648 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5649 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5650 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5651 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5652 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5653 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5654 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5655 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5656 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5657 | 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] | 5658 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5659 | ## ------------------------------------------------ ## |
| 5660 | ## Report this to http://www.python.org/python-bugs ## |
| 5661 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5662 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5663 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5664 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5665 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5666 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5668 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5670 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5671 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5672 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5673 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5675 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5676 | |
| 5677 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | _ACEOF |
| 5682 | |
| 5683 | fi |
| 5684 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5685 | done |
| 5686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5692 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5693 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5694 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5695 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5696 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5697 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | /* confdefs.h. */ |
| 5702 | _ACEOF |
| 5703 | cat confdefs.h >>conftest.$ac_ext |
| 5704 | cat >>conftest.$ac_ext <<_ACEOF |
| 5705 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5706 | #include <sys/types.h> |
| 5707 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5709 | int |
| 5710 | main () |
| 5711 | { |
| 5712 | if ((DIR *) 0) |
| 5713 | return 0; |
| 5714 | ; |
| 5715 | return 0; |
| 5716 | } |
| 5717 | _ACEOF |
| 5718 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5719 | if { (ac_try="$ac_compile" |
| 5720 | case "(($ac_try" in |
| 5721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5722 | *) ac_try_echo=$ac_try;; |
| 5723 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5725 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5728 | rm -f conftest.er1 |
| 5729 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5731 | (exit $ac_status); } && { |
| 5732 | test -z "$ac_c_werror_flag" || |
| 5733 | test ! -s conftest.err |
| 5734 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5736 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5739 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5740 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5741 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5742 | |
| 5743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5744 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5745 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5746 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5747 | echo "${ECHO_T}$ac_res" >&6; } |
| 5748 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5749 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5750 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | _ACEOF |
| 5752 | |
| 5753 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5755 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5756 | done |
| 5757 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5758 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5760 | 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] | 5761 | if test "${ac_cv_search_opendir+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5764 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5766 | /* confdefs.h. */ |
| 5767 | _ACEOF |
| 5768 | cat confdefs.h >>conftest.$ac_ext |
| 5769 | cat >>conftest.$ac_ext <<_ACEOF |
| 5770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5771 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5772 | /* Override any GCC internal prototype to avoid an error. |
| 5773 | Use char because int might match the return type of a GCC |
| 5774 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | #ifdef __cplusplus |
| 5776 | extern "C" |
| 5777 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5779 | int |
| 5780 | main () |
| 5781 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5782 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5787 | for ac_lib in '' dir; do |
| 5788 | if test -z "$ac_lib"; then |
| 5789 | ac_res="none required" |
| 5790 | else |
| 5791 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5792 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5793 | fi |
| 5794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5795 | if { (ac_try="$ac_link" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5801 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5802 | ac_status=$? |
| 5803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5804 | rm -f conftest.er1 |
| 5805 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5807 | (exit $ac_status); } && { |
| 5808 | test -z "$ac_c_werror_flag" || |
| 5809 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5810 | } && test -s conftest$ac_exeext && |
| 5811 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5812 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5813 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5816 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5817 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5819 | |
| 5820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5821 | conftest$ac_exeext |
| 5822 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5823 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5824 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5825 | done |
| 5826 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5827 | : |
| 5828 | else |
| 5829 | ac_cv_search_opendir=no |
| 5830 | fi |
| 5831 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | LIBS=$ac_func_search_save_LIBS |
| 5833 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5834 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5835 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5836 | ac_res=$ac_cv_search_opendir |
| 5837 | if test "$ac_res" != no; then |
| 5838 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5839 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5842 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5843 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5844 | 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] | 5845 | if test "${ac_cv_search_opendir+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5847 | else |
| 5848 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5850 | /* confdefs.h. */ |
| 5851 | _ACEOF |
| 5852 | cat confdefs.h >>conftest.$ac_ext |
| 5853 | cat >>conftest.$ac_ext <<_ACEOF |
| 5854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5856 | /* Override any GCC internal prototype to avoid an error. |
| 5857 | Use char because int might match the return type of a GCC |
| 5858 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | #ifdef __cplusplus |
| 5860 | extern "C" |
| 5861 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5863 | int |
| 5864 | main () |
| 5865 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5866 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5867 | ; |
| 5868 | return 0; |
| 5869 | } |
| 5870 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5871 | for ac_lib in '' x; do |
| 5872 | if test -z "$ac_lib"; then |
| 5873 | ac_res="none required" |
| 5874 | else |
| 5875 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5876 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5877 | fi |
| 5878 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5879 | if { (ac_try="$ac_link" |
| 5880 | case "(($ac_try" in |
| 5881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5882 | *) ac_try_echo=$ac_try;; |
| 5883 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5885 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5886 | ac_status=$? |
| 5887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5888 | rm -f conftest.er1 |
| 5889 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5891 | (exit $ac_status); } && { |
| 5892 | test -z "$ac_c_werror_flag" || |
| 5893 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5894 | } && test -s conftest$ac_exeext && |
| 5895 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5896 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5897 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5900 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5901 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5902 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5903 | |
| 5904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5905 | conftest$ac_exeext |
| 5906 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5907 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5908 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5909 | done |
| 5910 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5911 | : |
| 5912 | else |
| 5913 | ac_cv_search_opendir=no |
| 5914 | fi |
| 5915 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5916 | LIBS=$ac_func_search_save_LIBS |
| 5917 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5918 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5919 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5920 | ac_res=$ac_cv_search_opendir |
| 5921 | if test "$ac_res" != no; then |
| 5922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5924 | fi |
| 5925 | |
| 5926 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5927 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5928 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5929 | 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] | 5930 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5932 | else |
| 5933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5934 | /* confdefs.h. */ |
| 5935 | _ACEOF |
| 5936 | cat confdefs.h >>conftest.$ac_ext |
| 5937 | cat >>conftest.$ac_ext <<_ACEOF |
| 5938 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5939 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5940 | int |
| 5941 | main () |
| 5942 | { |
| 5943 | return makedev(0, 0); |
| 5944 | ; |
| 5945 | return 0; |
| 5946 | } |
| 5947 | _ACEOF |
| 5948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5949 | if { (ac_try="$ac_link" |
| 5950 | case "(($ac_try" in |
| 5951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5952 | *) ac_try_echo=$ac_try;; |
| 5953 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5955 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5958 | rm -f conftest.er1 |
| 5959 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5961 | (exit $ac_status); } && { |
| 5962 | test -z "$ac_c_werror_flag" || |
| 5963 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5964 | } && test -s conftest$ac_exeext && |
| 5965 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5966 | ac_cv_header_sys_types_h_makedev=yes |
| 5967 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5970 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5971 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5972 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5973 | |
| 5974 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5975 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5976 | |
| 5977 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5978 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5979 | 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] | 5980 | |
| 5981 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5982 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5983 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5984 | 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] | 5985 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5987 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5988 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5989 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5990 | else |
| 5991 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 5992 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5993 | 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] | 5994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5995 | /* confdefs.h. */ |
| 5996 | _ACEOF |
| 5997 | cat confdefs.h >>conftest.$ac_ext |
| 5998 | cat >>conftest.$ac_ext <<_ACEOF |
| 5999 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6000 | $ac_includes_default |
| 6001 | #include <sys/mkdev.h> |
| 6002 | _ACEOF |
| 6003 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6004 | if { (ac_try="$ac_compile" |
| 6005 | case "(($ac_try" in |
| 6006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6007 | *) ac_try_echo=$ac_try;; |
| 6008 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6010 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6013 | rm -f conftest.er1 |
| 6014 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6016 | (exit $ac_status); } && { |
| 6017 | test -z "$ac_c_werror_flag" || |
| 6018 | test ! -s conftest.err |
| 6019 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6020 | ac_header_compiler=yes |
| 6021 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6025 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6027 | |
| 6028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6029 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6030 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6031 | |
| 6032 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6033 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6034 | 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] | 6035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6036 | /* confdefs.h. */ |
| 6037 | _ACEOF |
| 6038 | cat confdefs.h >>conftest.$ac_ext |
| 6039 | cat >>conftest.$ac_ext <<_ACEOF |
| 6040 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6041 | #include <sys/mkdev.h> |
| 6042 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6044 | case "(($ac_try" in |
| 6045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6046 | *) ac_try_echo=$ac_try;; |
| 6047 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6050 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6051 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6052 | rm -f conftest.er1 |
| 6053 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6055 | (exit $ac_status); } >/dev/null && { |
| 6056 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6057 | test ! -s conftest.err |
| 6058 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6059 | ac_header_preproc=yes |
| 6060 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6063 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6064 | ac_header_preproc=no |
| 6065 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6066 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6067 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6068 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6069 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6070 | |
| 6071 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6073 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6074 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6075 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6076 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6077 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6078 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6079 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6080 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6081 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6082 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6083 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6084 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6085 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6086 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6087 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6088 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6089 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6090 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6091 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6092 | 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] | 6093 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6094 | ## ------------------------------------------------ ## |
| 6095 | ## Report this to http://www.python.org/python-bugs ## |
| 6096 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6097 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6098 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6099 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6100 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6101 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6102 | 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] | 6103 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6105 | else |
| 6106 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6107 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6108 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6109 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6110 | |
| 6111 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6112 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6113 | |
| 6114 | cat >>confdefs.h <<\_ACEOF |
| 6115 | #define MAJOR_IN_MKDEV 1 |
| 6116 | _ACEOF |
| 6117 | |
| 6118 | fi |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6123 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6124 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6125 | 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] | 6126 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6128 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6129 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6130 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6131 | else |
| 6132 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6133 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6134 | 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] | 6135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6136 | /* confdefs.h. */ |
| 6137 | _ACEOF |
| 6138 | cat confdefs.h >>conftest.$ac_ext |
| 6139 | cat >>conftest.$ac_ext <<_ACEOF |
| 6140 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6141 | $ac_includes_default |
| 6142 | #include <sys/sysmacros.h> |
| 6143 | _ACEOF |
| 6144 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6145 | if { (ac_try="$ac_compile" |
| 6146 | case "(($ac_try" in |
| 6147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6148 | *) ac_try_echo=$ac_try;; |
| 6149 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6151 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6154 | rm -f conftest.er1 |
| 6155 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6157 | (exit $ac_status); } && { |
| 6158 | test -z "$ac_c_werror_flag" || |
| 6159 | test ! -s conftest.err |
| 6160 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6161 | ac_header_compiler=yes |
| 6162 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6165 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6166 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6167 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6168 | |
| 6169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6170 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6171 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6172 | |
| 6173 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6174 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6175 | 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] | 6176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6177 | /* confdefs.h. */ |
| 6178 | _ACEOF |
| 6179 | cat confdefs.h >>conftest.$ac_ext |
| 6180 | cat >>conftest.$ac_ext <<_ACEOF |
| 6181 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6182 | #include <sys/sysmacros.h> |
| 6183 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6184 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6185 | case "(($ac_try" in |
| 6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6187 | *) ac_try_echo=$ac_try;; |
| 6188 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6190 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6191 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6192 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6193 | rm -f conftest.er1 |
| 6194 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6196 | (exit $ac_status); } >/dev/null && { |
| 6197 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6198 | test ! -s conftest.err |
| 6199 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6200 | ac_header_preproc=yes |
| 6201 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6204 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6205 | ac_header_preproc=no |
| 6206 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6207 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6208 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6209 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6210 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6211 | |
| 6212 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6214 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6215 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6216 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6217 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6218 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6219 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6220 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6221 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6222 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6223 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6224 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6225 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6226 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6227 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6228 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6229 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6230 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6231 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6232 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6233 | 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] | 6234 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6235 | ## ------------------------------------------------ ## |
| 6236 | ## Report this to http://www.python.org/python-bugs ## |
| 6237 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6238 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6239 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6240 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6241 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6243 | 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] | 6244 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6246 | else |
| 6247 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6248 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6249 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6250 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6251 | |
| 6252 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6253 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6254 | |
| 6255 | cat >>confdefs.h <<\_ACEOF |
| 6256 | #define MAJOR_IN_SYSMACROS 1 |
| 6257 | _ACEOF |
| 6258 | |
| 6259 | fi |
| 6260 | |
| 6261 | |
| 6262 | fi |
| 6263 | fi |
| 6264 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6265 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6266 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6267 | |
| 6268 | for ac_header in term.h |
| 6269 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6271 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6275 | else |
| 6276 | cat >conftest.$ac_ext <<_ACEOF |
| 6277 | /* confdefs.h. */ |
| 6278 | _ACEOF |
| 6279 | cat confdefs.h >>conftest.$ac_ext |
| 6280 | cat >>conftest.$ac_ext <<_ACEOF |
| 6281 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6282 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6283 | #ifdef HAVE_CURSES_H |
| 6284 | #include <curses.h> |
| 6285 | #endif |
| 6286 | |
| 6287 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6288 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6289 | _ACEOF |
| 6290 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6291 | if { (ac_try="$ac_compile" |
| 6292 | case "(($ac_try" in |
| 6293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6294 | *) ac_try_echo=$ac_try;; |
| 6295 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6297 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6298 | ac_status=$? |
| 6299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6300 | rm -f conftest.er1 |
| 6301 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6303 | (exit $ac_status); } && { |
| 6304 | test -z "$ac_c_werror_flag" || |
| 6305 | test ! -s conftest.err |
| 6306 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6307 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6308 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6309 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6311 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6312 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6313 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6314 | |
| 6315 | 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] | 6316 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6317 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6318 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6319 | echo "${ECHO_T}$ac_res" >&6; } |
| 6320 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6321 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6322 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6323 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6324 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6325 | fi |
| 6326 | |
| 6327 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6328 | |
| 6329 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6330 | # On Linux, netlink.h requires asm/types.h |
| 6331 | |
| 6332 | for ac_header in linux/netlink.h |
| 6333 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6334 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6335 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6337 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6339 | else |
| 6340 | cat >conftest.$ac_ext <<_ACEOF |
| 6341 | /* confdefs.h. */ |
| 6342 | _ACEOF |
| 6343 | cat confdefs.h >>conftest.$ac_ext |
| 6344 | cat >>conftest.$ac_ext <<_ACEOF |
| 6345 | /* end confdefs.h. */ |
| 6346 | |
| 6347 | #ifdef HAVE_ASM_TYPES_H |
| 6348 | #include <asm/types.h> |
| 6349 | #endif |
| 6350 | #ifdef HAVE_SYS_SOCKET_H |
| 6351 | #include <sys/socket.h> |
| 6352 | #endif |
| 6353 | |
| 6354 | |
| 6355 | #include <$ac_header> |
| 6356 | _ACEOF |
| 6357 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6358 | if { (ac_try="$ac_compile" |
| 6359 | case "(($ac_try" in |
| 6360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6361 | *) ac_try_echo=$ac_try;; |
| 6362 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6364 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6365 | ac_status=$? |
| 6366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6367 | rm -f conftest.er1 |
| 6368 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6370 | (exit $ac_status); } && { |
| 6371 | test -z "$ac_c_werror_flag" || |
| 6372 | test ! -s conftest.err |
| 6373 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6374 | eval "$as_ac_Header=yes" |
| 6375 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6376 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6378 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6379 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6380 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6381 | |
| 6382 | 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] | 6383 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6386 | echo "${ECHO_T}$ac_res" >&6; } |
| 6387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6388 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6390 | _ACEOF |
| 6391 | |
| 6392 | fi |
| 6393 | |
| 6394 | done |
| 6395 | |
| 6396 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6397 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6398 | was_it_defined=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6399 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6400 | 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] | 6401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6402 | /* confdefs.h. */ |
| 6403 | _ACEOF |
| 6404 | cat confdefs.h >>conftest.$ac_ext |
| 6405 | cat >>conftest.$ac_ext <<_ACEOF |
| 6406 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6407 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6408 | |
| 6409 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6411 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6412 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | |
| 6415 | |
| 6416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6417 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6418 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6419 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6420 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6421 | fi |
| 6422 | rm -f conftest* |
| 6423 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6425 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6426 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6427 | # Check whether using makedev requires defining _OSF_SOURCE |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6428 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6429 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6431 | /* confdefs.h. */ |
| 6432 | _ACEOF |
| 6433 | cat confdefs.h >>conftest.$ac_ext |
| 6434 | cat >>conftest.$ac_ext <<_ACEOF |
| 6435 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6436 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6437 | int |
| 6438 | main () |
| 6439 | { |
| 6440 | makedev(0, 0) |
| 6441 | ; |
| 6442 | return 0; |
| 6443 | } |
| 6444 | _ACEOF |
| 6445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6446 | if { (ac_try="$ac_link" |
| 6447 | case "(($ac_try" in |
| 6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6449 | *) ac_try_echo=$ac_try;; |
| 6450 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6452 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6455 | rm -f conftest.er1 |
| 6456 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6458 | (exit $ac_status); } && { |
| 6459 | test -z "$ac_c_werror_flag" || |
| 6460 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6461 | } && test -s conftest$ac_exeext && |
| 6462 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6463 | ac_cv_has_makedev=yes |
| 6464 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6467 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6468 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6469 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6470 | |
| 6471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6472 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6473 | if test "$ac_cv_has_makedev" = "no"; then |
| 6474 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6476 | /* confdefs.h. */ |
| 6477 | _ACEOF |
| 6478 | cat confdefs.h >>conftest.$ac_ext |
| 6479 | cat >>conftest.$ac_ext <<_ACEOF |
| 6480 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6481 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6482 | #define _OSF_SOURCE 1 |
| 6483 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6484 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6485 | int |
| 6486 | main () |
| 6487 | { |
| 6488 | makedev(0, 0) |
| 6489 | ; |
| 6490 | return 0; |
| 6491 | } |
| 6492 | _ACEOF |
| 6493 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6494 | if { (ac_try="$ac_link" |
| 6495 | case "(($ac_try" in |
| 6496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6497 | *) ac_try_echo=$ac_try;; |
| 6498 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6500 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6503 | rm -f conftest.er1 |
| 6504 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6506 | (exit $ac_status); } && { |
| 6507 | test -z "$ac_c_werror_flag" || |
| 6508 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6509 | } && test -s conftest$ac_exeext && |
| 6510 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6511 | ac_cv_has_makedev=yes |
| 6512 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6515 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6516 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6517 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6518 | |
| 6519 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6520 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6521 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6522 | |
| 6523 | cat >>confdefs.h <<\_ACEOF |
| 6524 | #define _OSF_SOURCE 1 |
| 6525 | _ACEOF |
| 6526 | |
| 6527 | fi |
| 6528 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6529 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6530 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6531 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6532 | |
| 6533 | cat >>confdefs.h <<\_ACEOF |
| 6534 | #define HAVE_MAKEDEV 1 |
| 6535 | _ACEOF |
| 6536 | |
| 6537 | fi |
| 6538 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6539 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6540 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6541 | # defined, but the compiler does not support pragma redefine_extname, |
| 6542 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6543 | # structures (such as rlimit64) without declaring them. As a |
| 6544 | # work-around, disable LFS on such configurations |
| 6545 | |
| 6546 | use_lfs=yes |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6547 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6548 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6550 | /* confdefs.h. */ |
| 6551 | _ACEOF |
| 6552 | cat confdefs.h >>conftest.$ac_ext |
| 6553 | cat >>conftest.$ac_ext <<_ACEOF |
| 6554 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6555 | |
| 6556 | #define _LARGEFILE_SOURCE 1 |
| 6557 | #define _FILE_OFFSET_BITS 64 |
| 6558 | #include <sys/resource.h> |
| 6559 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6560 | int |
| 6561 | main () |
| 6562 | { |
| 6563 | struct rlimit foo; |
| 6564 | ; |
| 6565 | return 0; |
| 6566 | } |
| 6567 | _ACEOF |
| 6568 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6569 | if { (ac_try="$ac_compile" |
| 6570 | case "(($ac_try" in |
| 6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6572 | *) ac_try_echo=$ac_try;; |
| 6573 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6578 | rm -f conftest.er1 |
| 6579 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6581 | (exit $ac_status); } && { |
| 6582 | test -z "$ac_c_werror_flag" || |
| 6583 | test ! -s conftest.err |
| 6584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6585 | sol_lfs_bug=no |
| 6586 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6590 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6591 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6592 | |
| 6593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6594 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6595 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6596 | if test "$sol_lfs_bug" = "yes"; then |
| 6597 | use_lfs=no |
| 6598 | fi |
| 6599 | |
| 6600 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6601 | # Two defines needed to enable largefile support on various platforms |
| 6602 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6604 | cat >>confdefs.h <<\_ACEOF |
| 6605 | #define _LARGEFILE_SOURCE 1 |
| 6606 | _ACEOF |
| 6607 | |
| 6608 | |
| 6609 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6610 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6611 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6612 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6613 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6614 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6615 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6616 | cat >> confdefs.h <<\EOF |
| 6617 | #if defined(SCO_DS) |
| 6618 | #undef _OFF_T |
| 6619 | #endif |
| 6620 | EOF |
| 6621 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6622 | # Type availability checks |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6623 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6624 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | if test "${ac_cv_type_mode_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6627 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6628 | cat >conftest.$ac_ext <<_ACEOF |
| 6629 | /* confdefs.h. */ |
| 6630 | _ACEOF |
| 6631 | cat confdefs.h >>conftest.$ac_ext |
| 6632 | cat >>conftest.$ac_ext <<_ACEOF |
| 6633 | /* end confdefs.h. */ |
| 6634 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6635 | typedef mode_t ac__type_new_; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6636 | int |
| 6637 | main () |
| 6638 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6639 | if ((ac__type_new_ *) 0) |
| 6640 | return 0; |
| 6641 | if (sizeof (ac__type_new_)) |
| 6642 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6643 | ; |
| 6644 | return 0; |
| 6645 | } |
| 6646 | _ACEOF |
| 6647 | rm -f conftest.$ac_objext |
| 6648 | if { (ac_try="$ac_compile" |
| 6649 | case "(($ac_try" in |
| 6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6651 | *) ac_try_echo=$ac_try;; |
| 6652 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6654 | (eval "$ac_compile") 2>conftest.er1 |
| 6655 | ac_status=$? |
| 6656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6657 | rm -f conftest.er1 |
| 6658 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6660 | (exit $ac_status); } && { |
| 6661 | test -z "$ac_c_werror_flag" || |
| 6662 | test ! -s conftest.err |
| 6663 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6664 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6665 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6668 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6669 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6670 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6671 | |
| 6672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6673 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6674 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6675 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6676 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6679 | |
| 6680 | cat >>confdefs.h <<_ACEOF |
| 6681 | #define mode_t int |
| 6682 | _ACEOF |
| 6683 | |
| 6684 | fi |
| 6685 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6686 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6687 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | if test "${ac_cv_type_off_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6691 | cat >conftest.$ac_ext <<_ACEOF |
| 6692 | /* confdefs.h. */ |
| 6693 | _ACEOF |
| 6694 | cat confdefs.h >>conftest.$ac_ext |
| 6695 | cat >>conftest.$ac_ext <<_ACEOF |
| 6696 | /* end confdefs.h. */ |
| 6697 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6698 | typedef off_t ac__type_new_; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6699 | int |
| 6700 | main () |
| 6701 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6702 | if ((ac__type_new_ *) 0) |
| 6703 | return 0; |
| 6704 | if (sizeof (ac__type_new_)) |
| 6705 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6706 | ; |
| 6707 | return 0; |
| 6708 | } |
| 6709 | _ACEOF |
| 6710 | rm -f conftest.$ac_objext |
| 6711 | if { (ac_try="$ac_compile" |
| 6712 | case "(($ac_try" in |
| 6713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6714 | *) ac_try_echo=$ac_try;; |
| 6715 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6717 | (eval "$ac_compile") 2>conftest.er1 |
| 6718 | ac_status=$? |
| 6719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6720 | rm -f conftest.er1 |
| 6721 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6723 | (exit $ac_status); } && { |
| 6724 | test -z "$ac_c_werror_flag" || |
| 6725 | test ! -s conftest.err |
| 6726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6727 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6728 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6731 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6732 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6733 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6734 | |
| 6735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6736 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6737 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6738 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6739 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | |
| 6743 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6744 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | _ACEOF |
| 6746 | |
| 6747 | fi |
| 6748 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6749 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6750 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | if test "${ac_cv_type_pid_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6754 | cat >conftest.$ac_ext <<_ACEOF |
| 6755 | /* confdefs.h. */ |
| 6756 | _ACEOF |
| 6757 | cat confdefs.h >>conftest.$ac_ext |
| 6758 | cat >>conftest.$ac_ext <<_ACEOF |
| 6759 | /* end confdefs.h. */ |
| 6760 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6761 | typedef pid_t ac__type_new_; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6762 | int |
| 6763 | main () |
| 6764 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6765 | if ((ac__type_new_ *) 0) |
| 6766 | return 0; |
| 6767 | if (sizeof (ac__type_new_)) |
| 6768 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6769 | ; |
| 6770 | return 0; |
| 6771 | } |
| 6772 | _ACEOF |
| 6773 | rm -f conftest.$ac_objext |
| 6774 | if { (ac_try="$ac_compile" |
| 6775 | case "(($ac_try" in |
| 6776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6777 | *) ac_try_echo=$ac_try;; |
| 6778 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6780 | (eval "$ac_compile") 2>conftest.er1 |
| 6781 | ac_status=$? |
| 6782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6783 | rm -f conftest.er1 |
| 6784 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6786 | (exit $ac_status); } && { |
| 6787 | test -z "$ac_c_werror_flag" || |
| 6788 | test ! -s conftest.err |
| 6789 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6790 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6791 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6794 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6795 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6796 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6797 | |
| 6798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6799 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6800 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6801 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6802 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | |
| 6806 | cat >>confdefs.h <<_ACEOF |
| 6807 | #define pid_t int |
| 6808 | _ACEOF |
| 6809 | |
| 6810 | fi |
| 6811 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6812 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6813 | 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] | 6814 | if test "${ac_cv_type_signal+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6816 | else |
| 6817 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6818 | /* confdefs.h. */ |
| 6819 | _ACEOF |
| 6820 | cat confdefs.h >>conftest.$ac_ext |
| 6821 | cat >>conftest.$ac_ext <<_ACEOF |
| 6822 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6823 | #include <sys/types.h> |
| 6824 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | int |
| 6827 | main () |
| 6828 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6829 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6830 | ; |
| 6831 | return 0; |
| 6832 | } |
| 6833 | _ACEOF |
| 6834 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6835 | if { (ac_try="$ac_compile" |
| 6836 | case "(($ac_try" in |
| 6837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6838 | *) ac_try_echo=$ac_try;; |
| 6839 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6841 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6844 | rm -f conftest.er1 |
| 6845 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6847 | (exit $ac_status); } && { |
| 6848 | test -z "$ac_c_werror_flag" || |
| 6849 | test ! -s conftest.err |
| 6850 | } && test -s conftest.$ac_objext; then |
| 6851 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6852 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6856 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6857 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6858 | |
| 6859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6860 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6861 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6862 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6865 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6866 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6868 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6869 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6870 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6871 | if test "${ac_cv_type_size_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6873 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6874 | cat >conftest.$ac_ext <<_ACEOF |
| 6875 | /* confdefs.h. */ |
| 6876 | _ACEOF |
| 6877 | cat confdefs.h >>conftest.$ac_ext |
| 6878 | cat >>conftest.$ac_ext <<_ACEOF |
| 6879 | /* end confdefs.h. */ |
| 6880 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6881 | typedef size_t ac__type_new_; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6882 | int |
| 6883 | main () |
| 6884 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6885 | if ((ac__type_new_ *) 0) |
| 6886 | return 0; |
| 6887 | if (sizeof (ac__type_new_)) |
| 6888 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6889 | ; |
| 6890 | return 0; |
| 6891 | } |
| 6892 | _ACEOF |
| 6893 | rm -f conftest.$ac_objext |
| 6894 | if { (ac_try="$ac_compile" |
| 6895 | case "(($ac_try" in |
| 6896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6897 | *) ac_try_echo=$ac_try;; |
| 6898 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6900 | (eval "$ac_compile") 2>conftest.er1 |
| 6901 | ac_status=$? |
| 6902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6903 | rm -f conftest.er1 |
| 6904 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6906 | (exit $ac_status); } && { |
| 6907 | test -z "$ac_c_werror_flag" || |
| 6908 | test ! -s conftest.err |
| 6909 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6910 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6911 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6914 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6915 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6916 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6917 | |
| 6918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6919 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6921 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 6922 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | |
| 6926 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6927 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | _ACEOF |
| 6929 | |
| 6930 | fi |
| 6931 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6932 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6933 | 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] | 6934 | if test "${ac_cv_type_uid_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | else |
| 6937 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6938 | /* confdefs.h. */ |
| 6939 | _ACEOF |
| 6940 | cat confdefs.h >>conftest.$ac_ext |
| 6941 | cat >>conftest.$ac_ext <<_ACEOF |
| 6942 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6943 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | |
| 6945 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6947 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6948 | ac_cv_type_uid_t=yes |
| 6949 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6950 | ac_cv_type_uid_t=no |
| 6951 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6952 | rm -f conftest* |
| 6953 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6954 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 6955 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6956 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6957 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6959 | cat >>confdefs.h <<\_ACEOF |
| 6960 | #define uid_t int |
| 6961 | _ACEOF |
| 6962 | |
| 6963 | |
| 6964 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6965 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6967 | |
| 6968 | fi |
| 6969 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6970 | |
| 6971 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 6972 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
| 6973 | if test "${ac_cv_c_uint32_t+set}" = set; then |
| 6974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6975 | else |
| 6976 | ac_cv_c_uint32_t=no |
| 6977 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 6978 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 6979 | cat >conftest.$ac_ext <<_ACEOF |
| 6980 | /* confdefs.h. */ |
| 6981 | _ACEOF |
| 6982 | cat confdefs.h >>conftest.$ac_ext |
| 6983 | cat >>conftest.$ac_ext <<_ACEOF |
| 6984 | /* end confdefs.h. */ |
| 6985 | $ac_includes_default |
| 6986 | int |
| 6987 | main () |
| 6988 | { |
| 6989 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 6990 | test_array [0] = 0 |
| 6991 | |
| 6992 | ; |
| 6993 | return 0; |
| 6994 | } |
| 6995 | _ACEOF |
| 6996 | rm -f conftest.$ac_objext |
| 6997 | if { (ac_try="$ac_compile" |
| 6998 | case "(($ac_try" in |
| 6999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7000 | *) ac_try_echo=$ac_try;; |
| 7001 | esac |
| 7002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7003 | (eval "$ac_compile") 2>conftest.er1 |
| 7004 | ac_status=$? |
| 7005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7006 | rm -f conftest.er1 |
| 7007 | cat conftest.err >&5 |
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 | (exit $ac_status); } && { |
| 7010 | test -z "$ac_c_werror_flag" || |
| 7011 | test ! -s conftest.err |
| 7012 | } && test -s conftest.$ac_objext; then |
| 7013 | case $ac_type in |
| 7014 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7015 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7016 | esac |
| 7017 | |
| 7018 | else |
| 7019 | echo "$as_me: failed program was:" >&5 |
| 7020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7021 | |
| 7022 | |
| 7023 | fi |
| 7024 | |
| 7025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7026 | test "$ac_cv_c_uint32_t" != no && break |
| 7027 | done |
| 7028 | fi |
| 7029 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7030 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
| 7031 | case $ac_cv_c_uint32_t in #( |
| 7032 | no|yes) ;; #( |
| 7033 | *) |
| 7034 | |
| 7035 | cat >>confdefs.h <<\_ACEOF |
| 7036 | #define _UINT32_T 1 |
| 7037 | _ACEOF |
| 7038 | |
| 7039 | |
| 7040 | cat >>confdefs.h <<_ACEOF |
| 7041 | #define uint32_t $ac_cv_c_uint32_t |
| 7042 | _ACEOF |
| 7043 | ;; |
| 7044 | esac |
| 7045 | |
| 7046 | |
| 7047 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7048 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 7049 | if test "${ac_cv_c_uint64_t+set}" = set; then |
| 7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7051 | else |
| 7052 | ac_cv_c_uint64_t=no |
| 7053 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7054 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7055 | cat >conftest.$ac_ext <<_ACEOF |
| 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
| 7061 | $ac_includes_default |
| 7062 | int |
| 7063 | main () |
| 7064 | { |
| 7065 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7066 | test_array [0] = 0 |
| 7067 | |
| 7068 | ; |
| 7069 | return 0; |
| 7070 | } |
| 7071 | _ACEOF |
| 7072 | rm -f conftest.$ac_objext |
| 7073 | if { (ac_try="$ac_compile" |
| 7074 | case "(($ac_try" in |
| 7075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7076 | *) ac_try_echo=$ac_try;; |
| 7077 | esac |
| 7078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7079 | (eval "$ac_compile") 2>conftest.er1 |
| 7080 | ac_status=$? |
| 7081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7082 | rm -f conftest.er1 |
| 7083 | cat conftest.err >&5 |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 | (exit $ac_status); } && { |
| 7086 | test -z "$ac_c_werror_flag" || |
| 7087 | test ! -s conftest.err |
| 7088 | } && test -s conftest.$ac_objext; then |
| 7089 | case $ac_type in |
| 7090 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7091 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7092 | esac |
| 7093 | |
| 7094 | else |
| 7095 | echo "$as_me: failed program was:" >&5 |
| 7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7097 | |
| 7098 | |
| 7099 | fi |
| 7100 | |
| 7101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7102 | test "$ac_cv_c_uint64_t" != no && break |
| 7103 | done |
| 7104 | fi |
| 7105 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7106 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
| 7107 | case $ac_cv_c_uint64_t in #( |
| 7108 | no|yes) ;; #( |
| 7109 | *) |
| 7110 | |
| 7111 | cat >>confdefs.h <<\_ACEOF |
| 7112 | #define _UINT64_T 1 |
| 7113 | _ACEOF |
| 7114 | |
| 7115 | |
| 7116 | cat >>confdefs.h <<_ACEOF |
| 7117 | #define uint64_t $ac_cv_c_uint64_t |
| 7118 | _ACEOF |
| 7119 | ;; |
| 7120 | esac |
| 7121 | |
| 7122 | |
| 7123 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7124 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
| 7125 | if test "${ac_cv_c_int32_t+set}" = set; then |
| 7126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7127 | else |
| 7128 | ac_cv_c_int32_t=no |
| 7129 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7130 | 'long long int' 'short int' 'signed char'; do |
| 7131 | cat >conftest.$ac_ext <<_ACEOF |
| 7132 | /* confdefs.h. */ |
| 7133 | _ACEOF |
| 7134 | cat confdefs.h >>conftest.$ac_ext |
| 7135 | cat >>conftest.$ac_ext <<_ACEOF |
| 7136 | /* end confdefs.h. */ |
| 7137 | $ac_includes_default |
| 7138 | int |
| 7139 | main () |
| 7140 | { |
| 7141 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7142 | test_array [0] = 0 |
| 7143 | |
| 7144 | ; |
| 7145 | return 0; |
| 7146 | } |
| 7147 | _ACEOF |
| 7148 | rm -f conftest.$ac_objext |
| 7149 | if { (ac_try="$ac_compile" |
| 7150 | case "(($ac_try" in |
| 7151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7152 | *) ac_try_echo=$ac_try;; |
| 7153 | esac |
| 7154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7155 | (eval "$ac_compile") 2>conftest.er1 |
| 7156 | ac_status=$? |
| 7157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7158 | rm -f conftest.er1 |
| 7159 | cat conftest.err >&5 |
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7161 | (exit $ac_status); } && { |
| 7162 | test -z "$ac_c_werror_flag" || |
| 7163 | test ! -s conftest.err |
| 7164 | } && test -s conftest.$ac_objext; then |
| 7165 | cat >conftest.$ac_ext <<_ACEOF |
| 7166 | /* confdefs.h. */ |
| 7167 | _ACEOF |
| 7168 | cat confdefs.h >>conftest.$ac_ext |
| 7169 | cat >>conftest.$ac_ext <<_ACEOF |
| 7170 | /* end confdefs.h. */ |
| 7171 | $ac_includes_default |
| 7172 | int |
| 7173 | main () |
| 7174 | { |
| 7175 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
| 7176 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
| 7177 | test_array [0] = 0 |
| 7178 | |
| 7179 | ; |
| 7180 | return 0; |
| 7181 | } |
| 7182 | _ACEOF |
| 7183 | rm -f conftest.$ac_objext |
| 7184 | if { (ac_try="$ac_compile" |
| 7185 | case "(($ac_try" in |
| 7186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7187 | *) ac_try_echo=$ac_try;; |
| 7188 | esac |
| 7189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7190 | (eval "$ac_compile") 2>conftest.er1 |
| 7191 | ac_status=$? |
| 7192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7193 | rm -f conftest.er1 |
| 7194 | cat conftest.err >&5 |
| 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7196 | (exit $ac_status); } && { |
| 7197 | test -z "$ac_c_werror_flag" || |
| 7198 | test ! -s conftest.err |
| 7199 | } && test -s conftest.$ac_objext; then |
| 7200 | : |
| 7201 | else |
| 7202 | echo "$as_me: failed program was:" >&5 |
| 7203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7204 | |
| 7205 | case $ac_type in |
| 7206 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7207 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7208 | esac |
| 7209 | |
| 7210 | fi |
| 7211 | |
| 7212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7213 | else |
| 7214 | echo "$as_me: failed program was:" >&5 |
| 7215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7216 | |
| 7217 | |
| 7218 | fi |
| 7219 | |
| 7220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7221 | test "$ac_cv_c_int32_t" != no && break |
| 7222 | done |
| 7223 | fi |
| 7224 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7225 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
| 7226 | case $ac_cv_c_int32_t in #( |
| 7227 | no|yes) ;; #( |
| 7228 | *) |
| 7229 | |
| 7230 | cat >>confdefs.h <<_ACEOF |
| 7231 | #define int32_t $ac_cv_c_int32_t |
| 7232 | _ACEOF |
| 7233 | ;; |
| 7234 | esac |
| 7235 | |
| 7236 | |
| 7237 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7238 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 7239 | if test "${ac_cv_c_int64_t+set}" = set; then |
| 7240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7241 | else |
| 7242 | ac_cv_c_int64_t=no |
| 7243 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7244 | 'long long int' 'short int' 'signed char'; do |
| 7245 | cat >conftest.$ac_ext <<_ACEOF |
| 7246 | /* confdefs.h. */ |
| 7247 | _ACEOF |
| 7248 | cat confdefs.h >>conftest.$ac_ext |
| 7249 | cat >>conftest.$ac_ext <<_ACEOF |
| 7250 | /* end confdefs.h. */ |
| 7251 | $ac_includes_default |
| 7252 | int |
| 7253 | main () |
| 7254 | { |
| 7255 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7256 | test_array [0] = 0 |
| 7257 | |
| 7258 | ; |
| 7259 | return 0; |
| 7260 | } |
| 7261 | _ACEOF |
| 7262 | rm -f conftest.$ac_objext |
| 7263 | if { (ac_try="$ac_compile" |
| 7264 | case "(($ac_try" in |
| 7265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7266 | *) ac_try_echo=$ac_try;; |
| 7267 | esac |
| 7268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7269 | (eval "$ac_compile") 2>conftest.er1 |
| 7270 | ac_status=$? |
| 7271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7272 | rm -f conftest.er1 |
| 7273 | cat conftest.err >&5 |
| 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7275 | (exit $ac_status); } && { |
| 7276 | test -z "$ac_c_werror_flag" || |
| 7277 | test ! -s conftest.err |
| 7278 | } && test -s conftest.$ac_objext; then |
| 7279 | cat >conftest.$ac_ext <<_ACEOF |
| 7280 | /* confdefs.h. */ |
| 7281 | _ACEOF |
| 7282 | cat confdefs.h >>conftest.$ac_ext |
| 7283 | cat >>conftest.$ac_ext <<_ACEOF |
| 7284 | /* end confdefs.h. */ |
| 7285 | $ac_includes_default |
| 7286 | int |
| 7287 | main () |
| 7288 | { |
| 7289 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
| 7290 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
| 7291 | test_array [0] = 0 |
| 7292 | |
| 7293 | ; |
| 7294 | return 0; |
| 7295 | } |
| 7296 | _ACEOF |
| 7297 | rm -f conftest.$ac_objext |
| 7298 | if { (ac_try="$ac_compile" |
| 7299 | case "(($ac_try" in |
| 7300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7301 | *) ac_try_echo=$ac_try;; |
| 7302 | esac |
| 7303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7304 | (eval "$ac_compile") 2>conftest.er1 |
| 7305 | ac_status=$? |
| 7306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7307 | rm -f conftest.er1 |
| 7308 | cat conftest.err >&5 |
| 7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7310 | (exit $ac_status); } && { |
| 7311 | test -z "$ac_c_werror_flag" || |
| 7312 | test ! -s conftest.err |
| 7313 | } && test -s conftest.$ac_objext; then |
| 7314 | : |
| 7315 | else |
| 7316 | echo "$as_me: failed program was:" >&5 |
| 7317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7318 | |
| 7319 | case $ac_type in |
| 7320 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7321 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7322 | esac |
| 7323 | |
| 7324 | fi |
| 7325 | |
| 7326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7327 | else |
| 7328 | echo "$as_me: failed program was:" >&5 |
| 7329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7330 | |
| 7331 | |
| 7332 | fi |
| 7333 | |
| 7334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7335 | test "$ac_cv_c_int64_t" != no && break |
| 7336 | done |
| 7337 | fi |
| 7338 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7339 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
| 7340 | case $ac_cv_c_int64_t in #( |
| 7341 | no|yes) ;; #( |
| 7342 | *) |
| 7343 | |
| 7344 | cat >>confdefs.h <<_ACEOF |
| 7345 | #define int64_t $ac_cv_c_int64_t |
| 7346 | _ACEOF |
| 7347 | ;; |
| 7348 | esac |
| 7349 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7350 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7351 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7352 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7354 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7355 | cat >conftest.$ac_ext <<_ACEOF |
| 7356 | /* confdefs.h. */ |
| 7357 | _ACEOF |
| 7358 | cat confdefs.h >>conftest.$ac_ext |
| 7359 | cat >>conftest.$ac_ext <<_ACEOF |
| 7360 | /* end confdefs.h. */ |
| 7361 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7362 | typedef ssize_t ac__type_new_; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7363 | int |
| 7364 | main () |
| 7365 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7366 | if ((ac__type_new_ *) 0) |
| 7367 | return 0; |
| 7368 | if (sizeof (ac__type_new_)) |
| 7369 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7370 | ; |
| 7371 | return 0; |
| 7372 | } |
| 7373 | _ACEOF |
| 7374 | rm -f conftest.$ac_objext |
| 7375 | if { (ac_try="$ac_compile" |
| 7376 | case "(($ac_try" in |
| 7377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7378 | *) ac_try_echo=$ac_try;; |
| 7379 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7381 | (eval "$ac_compile") 2>conftest.er1 |
| 7382 | ac_status=$? |
| 7383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7384 | rm -f conftest.er1 |
| 7385 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7387 | (exit $ac_status); } && { |
| 7388 | test -z "$ac_c_werror_flag" || |
| 7389 | test ! -s conftest.err |
| 7390 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7391 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7392 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7393 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7395 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7396 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7397 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7398 | |
| 7399 | 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] | 7400 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7401 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7402 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7403 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7404 | |
| 7405 | cat >>confdefs.h <<\_ACEOF |
| 7406 | #define HAVE_SSIZE_T 1 |
| 7407 | _ACEOF |
| 7408 | |
| 7409 | fi |
| 7410 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7411 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7412 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7413 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7414 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7415 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7416 | if test "${ac_cv_type_int+set}" = set; then |
| 7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7418 | else |
| 7419 | cat >conftest.$ac_ext <<_ACEOF |
| 7420 | /* confdefs.h. */ |
| 7421 | _ACEOF |
| 7422 | cat confdefs.h >>conftest.$ac_ext |
| 7423 | cat >>conftest.$ac_ext <<_ACEOF |
| 7424 | /* end confdefs.h. */ |
| 7425 | $ac_includes_default |
| 7426 | typedef int ac__type_new_; |
| 7427 | int |
| 7428 | main () |
| 7429 | { |
| 7430 | if ((ac__type_new_ *) 0) |
| 7431 | return 0; |
| 7432 | if (sizeof (ac__type_new_)) |
| 7433 | return 0; |
| 7434 | ; |
| 7435 | return 0; |
| 7436 | } |
| 7437 | _ACEOF |
| 7438 | rm -f conftest.$ac_objext |
| 7439 | if { (ac_try="$ac_compile" |
| 7440 | case "(($ac_try" in |
| 7441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7442 | *) ac_try_echo=$ac_try;; |
| 7443 | esac |
| 7444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7445 | (eval "$ac_compile") 2>conftest.er1 |
| 7446 | ac_status=$? |
| 7447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7448 | rm -f conftest.er1 |
| 7449 | cat conftest.err >&5 |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); } && { |
| 7452 | test -z "$ac_c_werror_flag" || |
| 7453 | test ! -s conftest.err |
| 7454 | } && test -s conftest.$ac_objext; then |
| 7455 | ac_cv_type_int=yes |
| 7456 | else |
| 7457 | echo "$as_me: failed program was:" >&5 |
| 7458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7459 | |
| 7460 | ac_cv_type_int=no |
| 7461 | fi |
| 7462 | |
| 7463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7464 | fi |
| 7465 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7466 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7467 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7468 | # The cast to long int works around a bug in the HP C Compiler |
| 7469 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7470 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7471 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7473 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7474 | if test "${ac_cv_sizeof_int+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | if test "$cross_compiling" = yes; then |
| 7478 | # Depending upon the size, compute the lo and hi bounds. |
| 7479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7480 | /* confdefs.h. */ |
| 7481 | _ACEOF |
| 7482 | cat confdefs.h >>conftest.$ac_ext |
| 7483 | cat >>conftest.$ac_ext <<_ACEOF |
| 7484 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7486 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7487 | int |
| 7488 | main () |
| 7489 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7490 | 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] | 7491 | test_array [0] = 0 |
| 7492 | |
| 7493 | ; |
| 7494 | return 0; |
| 7495 | } |
| 7496 | _ACEOF |
| 7497 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7498 | if { (ac_try="$ac_compile" |
| 7499 | case "(($ac_try" in |
| 7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7501 | *) ac_try_echo=$ac_try;; |
| 7502 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7504 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7507 | rm -f conftest.er1 |
| 7508 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7510 | (exit $ac_status); } && { |
| 7511 | test -z "$ac_c_werror_flag" || |
| 7512 | test ! -s conftest.err |
| 7513 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | ac_lo=0 ac_mid=0 |
| 7515 | while :; do |
| 7516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7517 | /* confdefs.h. */ |
| 7518 | _ACEOF |
| 7519 | cat confdefs.h >>conftest.$ac_ext |
| 7520 | cat >>conftest.$ac_ext <<_ACEOF |
| 7521 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7522 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7523 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | int |
| 7525 | main () |
| 7526 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7527 | 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] | 7528 | test_array [0] = 0 |
| 7529 | |
| 7530 | ; |
| 7531 | return 0; |
| 7532 | } |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7535 | if { (ac_try="$ac_compile" |
| 7536 | case "(($ac_try" in |
| 7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7538 | *) ac_try_echo=$ac_try;; |
| 7539 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7541 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7544 | rm -f conftest.er1 |
| 7545 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7547 | (exit $ac_status); } && { |
| 7548 | test -z "$ac_c_werror_flag" || |
| 7549 | test ! -s conftest.err |
| 7550 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | ac_hi=$ac_mid; break |
| 7552 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7556 | ac_lo=`expr $ac_mid + 1` |
| 7557 | if test $ac_lo -le $ac_mid; then |
| 7558 | ac_lo= ac_hi= |
| 7559 | break |
| 7560 | fi |
| 7561 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7563 | |
| 7564 | 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] | 7565 | done |
| 7566 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7569 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7571 | /* confdefs.h. */ |
| 7572 | _ACEOF |
| 7573 | cat confdefs.h >>conftest.$ac_ext |
| 7574 | cat >>conftest.$ac_ext <<_ACEOF |
| 7575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7576 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7577 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7578 | int |
| 7579 | main () |
| 7580 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7581 | 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] | 7582 | test_array [0] = 0 |
| 7583 | |
| 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | _ACEOF |
| 7588 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7589 | if { (ac_try="$ac_compile" |
| 7590 | case "(($ac_try" in |
| 7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7592 | *) ac_try_echo=$ac_try;; |
| 7593 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7595 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 | rm -f conftest.er1 |
| 7599 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7601 | (exit $ac_status); } && { |
| 7602 | test -z "$ac_c_werror_flag" || |
| 7603 | test ! -s conftest.err |
| 7604 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | ac_hi=-1 ac_mid=-1 |
| 7606 | while :; do |
| 7607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7608 | /* confdefs.h. */ |
| 7609 | _ACEOF |
| 7610 | cat confdefs.h >>conftest.$ac_ext |
| 7611 | cat >>conftest.$ac_ext <<_ACEOF |
| 7612 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7613 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7614 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7615 | int |
| 7616 | main () |
| 7617 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7618 | 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] | 7619 | test_array [0] = 0 |
| 7620 | |
| 7621 | ; |
| 7622 | return 0; |
| 7623 | } |
| 7624 | _ACEOF |
| 7625 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7626 | if { (ac_try="$ac_compile" |
| 7627 | case "(($ac_try" in |
| 7628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7629 | *) ac_try_echo=$ac_try;; |
| 7630 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7632 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7635 | rm -f conftest.er1 |
| 7636 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7638 | (exit $ac_status); } && { |
| 7639 | test -z "$ac_c_werror_flag" || |
| 7640 | test ! -s conftest.err |
| 7641 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | ac_lo=$ac_mid; break |
| 7643 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7646 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7647 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7648 | if test $ac_mid -le $ac_hi; then |
| 7649 | ac_lo= ac_hi= |
| 7650 | break |
| 7651 | fi |
| 7652 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7654 | |
| 7655 | 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] | 7656 | done |
| 7657 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7661 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7662 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7663 | |
| 7664 | 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] | 7665 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7666 | |
| 7667 | 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] | 7668 | # Binary search between lo and hi bounds. |
| 7669 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7670 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7672 | /* confdefs.h. */ |
| 7673 | _ACEOF |
| 7674 | cat confdefs.h >>conftest.$ac_ext |
| 7675 | cat >>conftest.$ac_ext <<_ACEOF |
| 7676 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7678 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | int |
| 7680 | main () |
| 7681 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7682 | 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] | 7683 | test_array [0] = 0 |
| 7684 | |
| 7685 | ; |
| 7686 | return 0; |
| 7687 | } |
| 7688 | _ACEOF |
| 7689 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | if { (ac_try="$ac_compile" |
| 7691 | case "(($ac_try" in |
| 7692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7693 | *) ac_try_echo=$ac_try;; |
| 7694 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7696 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7699 | rm -f conftest.er1 |
| 7700 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7702 | (exit $ac_status); } && { |
| 7703 | test -z "$ac_c_werror_flag" || |
| 7704 | test ! -s conftest.err |
| 7705 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | ac_hi=$ac_mid |
| 7707 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7710 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7711 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7713 | |
| 7714 | 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] | 7715 | done |
| 7716 | case $ac_lo in |
| 7717 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7718 | '') if test "$ac_cv_type_int" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7719 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7720 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7721 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7722 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7723 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7724 | else |
| 7725 | ac_cv_sizeof_int=0 |
| 7726 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7730 | /* confdefs.h. */ |
| 7731 | _ACEOF |
| 7732 | cat confdefs.h >>conftest.$ac_ext |
| 7733 | cat >>conftest.$ac_ext <<_ACEOF |
| 7734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7735 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7736 | typedef int ac__type_sizeof_; |
| 7737 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7738 | 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] | 7739 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7741 | int |
| 7742 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7743 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | |
| 7745 | FILE *f = fopen ("conftest.val", "w"); |
| 7746 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7747 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7748 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7750 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7751 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7752 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7753 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | } |
| 7755 | else |
| 7756 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7757 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7758 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7759 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7760 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7762 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | |
| 7764 | ; |
| 7765 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7766 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | _ACEOF |
| 7768 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7769 | if { (ac_try="$ac_link" |
| 7770 | case "(($ac_try" in |
| 7771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7772 | *) ac_try_echo=$ac_try;; |
| 7773 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7775 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7779 | { (case "(($ac_try" in |
| 7780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7781 | *) ac_try_echo=$ac_try;; |
| 7782 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7784 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7785 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | (exit $ac_status); }; }; then |
| 7788 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7789 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7790 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7795 | if test "$ac_cv_type_int" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7796 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7797 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7798 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7799 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7800 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7801 | else |
| 7802 | ac_cv_sizeof_int=0 |
| 7803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7805 | 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] | 7806 | fi |
| 7807 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7808 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7809 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7810 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7811 | |
| 7812 | |
| 7813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7815 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7816 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7817 | |
| 7818 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7819 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7820 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7821 | if test "${ac_cv_type_long+set}" = set; then |
| 7822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7823 | else |
| 7824 | cat >conftest.$ac_ext <<_ACEOF |
| 7825 | /* confdefs.h. */ |
| 7826 | _ACEOF |
| 7827 | cat confdefs.h >>conftest.$ac_ext |
| 7828 | cat >>conftest.$ac_ext <<_ACEOF |
| 7829 | /* end confdefs.h. */ |
| 7830 | $ac_includes_default |
| 7831 | typedef long ac__type_new_; |
| 7832 | int |
| 7833 | main () |
| 7834 | { |
| 7835 | if ((ac__type_new_ *) 0) |
| 7836 | return 0; |
| 7837 | if (sizeof (ac__type_new_)) |
| 7838 | return 0; |
| 7839 | ; |
| 7840 | return 0; |
| 7841 | } |
| 7842 | _ACEOF |
| 7843 | rm -f conftest.$ac_objext |
| 7844 | if { (ac_try="$ac_compile" |
| 7845 | case "(($ac_try" in |
| 7846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7847 | *) ac_try_echo=$ac_try;; |
| 7848 | esac |
| 7849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7850 | (eval "$ac_compile") 2>conftest.er1 |
| 7851 | ac_status=$? |
| 7852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7853 | rm -f conftest.er1 |
| 7854 | cat conftest.err >&5 |
| 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7856 | (exit $ac_status); } && { |
| 7857 | test -z "$ac_c_werror_flag" || |
| 7858 | test ! -s conftest.err |
| 7859 | } && test -s conftest.$ac_objext; then |
| 7860 | ac_cv_type_long=yes |
| 7861 | else |
| 7862 | echo "$as_me: failed program was:" >&5 |
| 7863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7864 | |
| 7865 | ac_cv_type_long=no |
| 7866 | fi |
| 7867 | |
| 7868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7869 | fi |
| 7870 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7871 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7872 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7873 | # The cast to long int works around a bug in the HP C Compiler |
| 7874 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7875 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7876 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7877 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7878 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | if test "${ac_cv_sizeof_long+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | if test "$cross_compiling" = yes; then |
| 7883 | # Depending upon the size, compute the lo and hi bounds. |
| 7884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
| 7889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7891 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | int |
| 7893 | main () |
| 7894 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7895 | 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] | 7896 | test_array [0] = 0 |
| 7897 | |
| 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| 7902 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7903 | if { (ac_try="$ac_compile" |
| 7904 | case "(($ac_try" in |
| 7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7906 | *) ac_try_echo=$ac_try;; |
| 7907 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7909 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7912 | rm -f conftest.er1 |
| 7913 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7915 | (exit $ac_status); } && { |
| 7916 | test -z "$ac_c_werror_flag" || |
| 7917 | test ! -s conftest.err |
| 7918 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | ac_lo=0 ac_mid=0 |
| 7920 | while :; do |
| 7921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7922 | /* confdefs.h. */ |
| 7923 | _ACEOF |
| 7924 | cat confdefs.h >>conftest.$ac_ext |
| 7925 | cat >>conftest.$ac_ext <<_ACEOF |
| 7926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7928 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | int |
| 7930 | main () |
| 7931 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7932 | 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] | 7933 | test_array [0] = 0 |
| 7934 | |
| 7935 | ; |
| 7936 | return 0; |
| 7937 | } |
| 7938 | _ACEOF |
| 7939 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7940 | if { (ac_try="$ac_compile" |
| 7941 | case "(($ac_try" in |
| 7942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7943 | *) ac_try_echo=$ac_try;; |
| 7944 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7946 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7949 | rm -f conftest.er1 |
| 7950 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7952 | (exit $ac_status); } && { |
| 7953 | test -z "$ac_c_werror_flag" || |
| 7954 | test ! -s conftest.err |
| 7955 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | ac_hi=$ac_mid; break |
| 7957 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7961 | ac_lo=`expr $ac_mid + 1` |
| 7962 | if test $ac_lo -le $ac_mid; then |
| 7963 | ac_lo= ac_hi= |
| 7964 | break |
| 7965 | fi |
| 7966 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7968 | |
| 7969 | 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] | 7970 | done |
| 7971 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7975 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7976 | /* confdefs.h. */ |
| 7977 | _ACEOF |
| 7978 | cat confdefs.h >>conftest.$ac_ext |
| 7979 | cat >>conftest.$ac_ext <<_ACEOF |
| 7980 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7981 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7982 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | int |
| 7984 | main () |
| 7985 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7986 | 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] | 7987 | test_array [0] = 0 |
| 7988 | |
| 7989 | ; |
| 7990 | return 0; |
| 7991 | } |
| 7992 | _ACEOF |
| 7993 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7994 | if { (ac_try="$ac_compile" |
| 7995 | case "(($ac_try" in |
| 7996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7997 | *) ac_try_echo=$ac_try;; |
| 7998 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 7999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8000 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8003 | rm -f conftest.er1 |
| 8004 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8006 | (exit $ac_status); } && { |
| 8007 | test -z "$ac_c_werror_flag" || |
| 8008 | test ! -s conftest.err |
| 8009 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | ac_hi=-1 ac_mid=-1 |
| 8011 | while :; do |
| 8012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8013 | /* confdefs.h. */ |
| 8014 | _ACEOF |
| 8015 | cat confdefs.h >>conftest.$ac_ext |
| 8016 | cat >>conftest.$ac_ext <<_ACEOF |
| 8017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8019 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 | int |
| 8021 | main () |
| 8022 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8023 | 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] | 8024 | test_array [0] = 0 |
| 8025 | |
| 8026 | ; |
| 8027 | return 0; |
| 8028 | } |
| 8029 | _ACEOF |
| 8030 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8031 | if { (ac_try="$ac_compile" |
| 8032 | case "(($ac_try" in |
| 8033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8034 | *) ac_try_echo=$ac_try;; |
| 8035 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8037 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8040 | rm -f conftest.er1 |
| 8041 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8043 | (exit $ac_status); } && { |
| 8044 | test -z "$ac_c_werror_flag" || |
| 8045 | test ! -s conftest.err |
| 8046 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | ac_lo=$ac_mid; break |
| 8048 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8051 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8052 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8053 | if test $ac_mid -le $ac_hi; then |
| 8054 | ac_lo= ac_hi= |
| 8055 | break |
| 8056 | fi |
| 8057 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8058 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8059 | |
| 8060 | 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] | 8061 | done |
| 8062 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8065 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8066 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8068 | |
| 8069 | 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] | 8070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8071 | |
| 8072 | 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] | 8073 | # Binary search between lo and hi bounds. |
| 8074 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8075 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8077 | /* confdefs.h. */ |
| 8078 | _ACEOF |
| 8079 | cat confdefs.h >>conftest.$ac_ext |
| 8080 | cat >>conftest.$ac_ext <<_ACEOF |
| 8081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8083 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | int |
| 8085 | main () |
| 8086 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8087 | 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] | 8088 | test_array [0] = 0 |
| 8089 | |
| 8090 | ; |
| 8091 | return 0; |
| 8092 | } |
| 8093 | _ACEOF |
| 8094 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8095 | if { (ac_try="$ac_compile" |
| 8096 | case "(($ac_try" in |
| 8097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8098 | *) ac_try_echo=$ac_try;; |
| 8099 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8101 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8104 | rm -f conftest.er1 |
| 8105 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8107 | (exit $ac_status); } && { |
| 8108 | test -z "$ac_c_werror_flag" || |
| 8109 | test ! -s conftest.err |
| 8110 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | ac_hi=$ac_mid |
| 8112 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8116 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8118 | |
| 8119 | 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] | 8120 | done |
| 8121 | case $ac_lo in |
| 8122 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | '') if test "$ac_cv_type_long" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8125 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8126 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8127 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8128 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8129 | else |
| 8130 | ac_cv_sizeof_long=0 |
| 8131 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8135 | /* confdefs.h. */ |
| 8136 | _ACEOF |
| 8137 | cat confdefs.h >>conftest.$ac_ext |
| 8138 | cat >>conftest.$ac_ext <<_ACEOF |
| 8139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8141 | typedef long ac__type_sizeof_; |
| 8142 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8143 | 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] | 8144 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8145 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 | int |
| 8147 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8148 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | |
| 8150 | FILE *f = fopen ("conftest.val", "w"); |
| 8151 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8152 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8153 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8155 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8156 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8157 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8158 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | } |
| 8160 | else |
| 8161 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8162 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8163 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8164 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8165 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8167 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 | |
| 8169 | ; |
| 8170 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8171 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | _ACEOF |
| 8173 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8174 | if { (ac_try="$ac_link" |
| 8175 | case "(($ac_try" in |
| 8176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8177 | *) ac_try_echo=$ac_try;; |
| 8178 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8180 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8184 | { (case "(($ac_try" in |
| 8185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8186 | *) ac_try_echo=$ac_try;; |
| 8187 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8189 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | (exit $ac_status); }; }; then |
| 8193 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8194 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8195 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8200 | if test "$ac_cv_type_long" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8201 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8202 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8203 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8204 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8205 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8206 | else |
| 8207 | ac_cv_sizeof_long=0 |
| 8208 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8210 | 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] | 8211 | fi |
| 8212 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8213 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8214 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8215 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8216 | |
| 8217 | |
| 8218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8220 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8221 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8222 | |
| 8223 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8224 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8225 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8226 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8228 | else |
| 8229 | cat >conftest.$ac_ext <<_ACEOF |
| 8230 | /* confdefs.h. */ |
| 8231 | _ACEOF |
| 8232 | cat confdefs.h >>conftest.$ac_ext |
| 8233 | cat >>conftest.$ac_ext <<_ACEOF |
| 8234 | /* end confdefs.h. */ |
| 8235 | $ac_includes_default |
| 8236 | typedef void * ac__type_new_; |
| 8237 | int |
| 8238 | main () |
| 8239 | { |
| 8240 | if ((ac__type_new_ *) 0) |
| 8241 | return 0; |
| 8242 | if (sizeof (ac__type_new_)) |
| 8243 | return 0; |
| 8244 | ; |
| 8245 | return 0; |
| 8246 | } |
| 8247 | _ACEOF |
| 8248 | rm -f conftest.$ac_objext |
| 8249 | if { (ac_try="$ac_compile" |
| 8250 | case "(($ac_try" in |
| 8251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8252 | *) ac_try_echo=$ac_try;; |
| 8253 | esac |
| 8254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8255 | (eval "$ac_compile") 2>conftest.er1 |
| 8256 | ac_status=$? |
| 8257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8258 | rm -f conftest.er1 |
| 8259 | cat conftest.err >&5 |
| 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8261 | (exit $ac_status); } && { |
| 8262 | test -z "$ac_c_werror_flag" || |
| 8263 | test ! -s conftest.err |
| 8264 | } && test -s conftest.$ac_objext; then |
| 8265 | ac_cv_type_void_p=yes |
| 8266 | else |
| 8267 | echo "$as_me: failed program was:" >&5 |
| 8268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8269 | |
| 8270 | ac_cv_type_void_p=no |
| 8271 | fi |
| 8272 | |
| 8273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8274 | fi |
| 8275 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8276 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8277 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8278 | # The cast to long int works around a bug in the HP C Compiler |
| 8279 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8280 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8281 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8282 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8283 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | if test "$cross_compiling" = yes; then |
| 8288 | # Depending upon the size, compute the lo and hi bounds. |
| 8289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8290 | /* confdefs.h. */ |
| 8291 | _ACEOF |
| 8292 | cat confdefs.h >>conftest.$ac_ext |
| 8293 | cat >>conftest.$ac_ext <<_ACEOF |
| 8294 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8296 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | int |
| 8298 | main () |
| 8299 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8300 | 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] | 8301 | test_array [0] = 0 |
| 8302 | |
| 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8308 | if { (ac_try="$ac_compile" |
| 8309 | case "(($ac_try" in |
| 8310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8311 | *) ac_try_echo=$ac_try;; |
| 8312 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8314 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8317 | rm -f conftest.er1 |
| 8318 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8320 | (exit $ac_status); } && { |
| 8321 | test -z "$ac_c_werror_flag" || |
| 8322 | test ! -s conftest.err |
| 8323 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | ac_lo=0 ac_mid=0 |
| 8325 | while :; do |
| 8326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8327 | /* confdefs.h. */ |
| 8328 | _ACEOF |
| 8329 | cat confdefs.h >>conftest.$ac_ext |
| 8330 | cat >>conftest.$ac_ext <<_ACEOF |
| 8331 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8333 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | int |
| 8335 | main () |
| 8336 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8337 | 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] | 8338 | test_array [0] = 0 |
| 8339 | |
| 8340 | ; |
| 8341 | return 0; |
| 8342 | } |
| 8343 | _ACEOF |
| 8344 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8345 | if { (ac_try="$ac_compile" |
| 8346 | case "(($ac_try" in |
| 8347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8348 | *) ac_try_echo=$ac_try;; |
| 8349 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8351 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8354 | rm -f conftest.er1 |
| 8355 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8357 | (exit $ac_status); } && { |
| 8358 | test -z "$ac_c_werror_flag" || |
| 8359 | test ! -s conftest.err |
| 8360 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | ac_hi=$ac_mid; break |
| 8362 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8366 | ac_lo=`expr $ac_mid + 1` |
| 8367 | if test $ac_lo -le $ac_mid; then |
| 8368 | ac_lo= ac_hi= |
| 8369 | break |
| 8370 | fi |
| 8371 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8373 | |
| 8374 | 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] | 8375 | done |
| 8376 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8380 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8381 | /* confdefs.h. */ |
| 8382 | _ACEOF |
| 8383 | cat confdefs.h >>conftest.$ac_ext |
| 8384 | cat >>conftest.$ac_ext <<_ACEOF |
| 8385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8387 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8388 | int |
| 8389 | main () |
| 8390 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8391 | 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] | 8392 | test_array [0] = 0 |
| 8393 | |
| 8394 | ; |
| 8395 | return 0; |
| 8396 | } |
| 8397 | _ACEOF |
| 8398 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8399 | if { (ac_try="$ac_compile" |
| 8400 | case "(($ac_try" in |
| 8401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8402 | *) ac_try_echo=$ac_try;; |
| 8403 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8405 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8408 | rm -f conftest.er1 |
| 8409 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8411 | (exit $ac_status); } && { |
| 8412 | test -z "$ac_c_werror_flag" || |
| 8413 | test ! -s conftest.err |
| 8414 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | ac_hi=-1 ac_mid=-1 |
| 8416 | while :; do |
| 8417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8418 | /* confdefs.h. */ |
| 8419 | _ACEOF |
| 8420 | cat confdefs.h >>conftest.$ac_ext |
| 8421 | cat >>conftest.$ac_ext <<_ACEOF |
| 8422 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8424 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | int |
| 8426 | main () |
| 8427 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8428 | 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] | 8429 | test_array [0] = 0 |
| 8430 | |
| 8431 | ; |
| 8432 | return 0; |
| 8433 | } |
| 8434 | _ACEOF |
| 8435 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8436 | if { (ac_try="$ac_compile" |
| 8437 | case "(($ac_try" in |
| 8438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8439 | *) ac_try_echo=$ac_try;; |
| 8440 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8442 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8445 | rm -f conftest.er1 |
| 8446 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8448 | (exit $ac_status); } && { |
| 8449 | test -z "$ac_c_werror_flag" || |
| 8450 | test ! -s conftest.err |
| 8451 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | ac_lo=$ac_mid; break |
| 8453 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8457 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8458 | if test $ac_mid -le $ac_hi; then |
| 8459 | ac_lo= ac_hi= |
| 8460 | break |
| 8461 | fi |
| 8462 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8464 | |
| 8465 | 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] | 8466 | done |
| 8467 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8471 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8473 | |
| 8474 | 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] | 8475 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8476 | |
| 8477 | 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] | 8478 | # Binary search between lo and hi bounds. |
| 8479 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8480 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8482 | /* confdefs.h. */ |
| 8483 | _ACEOF |
| 8484 | cat confdefs.h >>conftest.$ac_ext |
| 8485 | cat >>conftest.$ac_ext <<_ACEOF |
| 8486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8488 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | int |
| 8490 | main () |
| 8491 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8492 | 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] | 8493 | test_array [0] = 0 |
| 8494 | |
| 8495 | ; |
| 8496 | return 0; |
| 8497 | } |
| 8498 | _ACEOF |
| 8499 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8500 | if { (ac_try="$ac_compile" |
| 8501 | case "(($ac_try" in |
| 8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8503 | *) ac_try_echo=$ac_try;; |
| 8504 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8506 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8509 | rm -f conftest.er1 |
| 8510 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8512 | (exit $ac_status); } && { |
| 8513 | test -z "$ac_c_werror_flag" || |
| 8514 | test ! -s conftest.err |
| 8515 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | ac_hi=$ac_mid |
| 8517 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8518 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8520 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8521 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8523 | |
| 8524 | 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] | 8525 | done |
| 8526 | case $ac_lo in |
| 8527 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 | '') if test "$ac_cv_type_void_p" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8529 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8530 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8531 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8532 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8533 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8534 | else |
| 8535 | ac_cv_sizeof_void_p=0 |
| 8536 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8540 | /* confdefs.h. */ |
| 8541 | _ACEOF |
| 8542 | cat confdefs.h >>conftest.$ac_ext |
| 8543 | cat >>conftest.$ac_ext <<_ACEOF |
| 8544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8546 | typedef void * ac__type_sizeof_; |
| 8547 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8548 | 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] | 8549 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | int |
| 8552 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8553 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | |
| 8555 | FILE *f = fopen ("conftest.val", "w"); |
| 8556 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8557 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8558 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8560 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8561 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8562 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8563 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | } |
| 8565 | else |
| 8566 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8567 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8568 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8569 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8570 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8572 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | |
| 8574 | ; |
| 8575 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8576 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8577 | _ACEOF |
| 8578 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8579 | if { (ac_try="$ac_link" |
| 8580 | case "(($ac_try" in |
| 8581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8582 | *) ac_try_echo=$ac_try;; |
| 8583 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8585 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8589 | { (case "(($ac_try" in |
| 8590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8591 | *) ac_try_echo=$ac_try;; |
| 8592 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | (exit $ac_status); }; }; then |
| 8598 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8599 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8600 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8601 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8605 | if test "$ac_cv_type_void_p" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8606 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8607 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8608 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8609 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8610 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8611 | else |
| 8612 | ac_cv_sizeof_void_p=0 |
| 8613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8615 | 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] | 8616 | fi |
| 8617 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8618 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8619 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8620 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8621 | |
| 8622 | |
| 8623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8625 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8627 | |
| 8628 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8629 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8630 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8631 | if test "${ac_cv_type_short+set}" = set; then |
| 8632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8633 | else |
| 8634 | cat >conftest.$ac_ext <<_ACEOF |
| 8635 | /* confdefs.h. */ |
| 8636 | _ACEOF |
| 8637 | cat confdefs.h >>conftest.$ac_ext |
| 8638 | cat >>conftest.$ac_ext <<_ACEOF |
| 8639 | /* end confdefs.h. */ |
| 8640 | $ac_includes_default |
| 8641 | typedef short ac__type_new_; |
| 8642 | int |
| 8643 | main () |
| 8644 | { |
| 8645 | if ((ac__type_new_ *) 0) |
| 8646 | return 0; |
| 8647 | if (sizeof (ac__type_new_)) |
| 8648 | return 0; |
| 8649 | ; |
| 8650 | return 0; |
| 8651 | } |
| 8652 | _ACEOF |
| 8653 | rm -f conftest.$ac_objext |
| 8654 | if { (ac_try="$ac_compile" |
| 8655 | case "(($ac_try" in |
| 8656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8657 | *) ac_try_echo=$ac_try;; |
| 8658 | esac |
| 8659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8660 | (eval "$ac_compile") 2>conftest.er1 |
| 8661 | ac_status=$? |
| 8662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8663 | rm -f conftest.er1 |
| 8664 | cat conftest.err >&5 |
| 8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8666 | (exit $ac_status); } && { |
| 8667 | test -z "$ac_c_werror_flag" || |
| 8668 | test ! -s conftest.err |
| 8669 | } && test -s conftest.$ac_objext; then |
| 8670 | ac_cv_type_short=yes |
| 8671 | else |
| 8672 | echo "$as_me: failed program was:" >&5 |
| 8673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8674 | |
| 8675 | ac_cv_type_short=no |
| 8676 | fi |
| 8677 | |
| 8678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8679 | fi |
| 8680 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8681 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8683 | # The cast to long int works around a bug in the HP C Compiler |
| 8684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8686 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8687 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8688 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | if test "${ac_cv_sizeof_short+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | if test "$cross_compiling" = yes; then |
| 8693 | # Depending upon the size, compute the lo and hi bounds. |
| 8694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8695 | /* confdefs.h. */ |
| 8696 | _ACEOF |
| 8697 | cat confdefs.h >>conftest.$ac_ext |
| 8698 | cat >>conftest.$ac_ext <<_ACEOF |
| 8699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8701 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | int |
| 8703 | main () |
| 8704 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8705 | 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] | 8706 | test_array [0] = 0 |
| 8707 | |
| 8708 | ; |
| 8709 | return 0; |
| 8710 | } |
| 8711 | _ACEOF |
| 8712 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8713 | if { (ac_try="$ac_compile" |
| 8714 | case "(($ac_try" in |
| 8715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8716 | *) ac_try_echo=$ac_try;; |
| 8717 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8719 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8722 | rm -f conftest.er1 |
| 8723 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8725 | (exit $ac_status); } && { |
| 8726 | test -z "$ac_c_werror_flag" || |
| 8727 | test ! -s conftest.err |
| 8728 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 | ac_lo=0 ac_mid=0 |
| 8730 | while :; do |
| 8731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8732 | /* confdefs.h. */ |
| 8733 | _ACEOF |
| 8734 | cat confdefs.h >>conftest.$ac_ext |
| 8735 | cat >>conftest.$ac_ext <<_ACEOF |
| 8736 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8738 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8739 | int |
| 8740 | main () |
| 8741 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8742 | 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] | 8743 | test_array [0] = 0 |
| 8744 | |
| 8745 | ; |
| 8746 | return 0; |
| 8747 | } |
| 8748 | _ACEOF |
| 8749 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8750 | if { (ac_try="$ac_compile" |
| 8751 | case "(($ac_try" in |
| 8752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8753 | *) ac_try_echo=$ac_try;; |
| 8754 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8759 | rm -f conftest.er1 |
| 8760 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8762 | (exit $ac_status); } && { |
| 8763 | test -z "$ac_c_werror_flag" || |
| 8764 | test ! -s conftest.err |
| 8765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | ac_hi=$ac_mid; break |
| 8767 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8771 | ac_lo=`expr $ac_mid + 1` |
| 8772 | if test $ac_lo -le $ac_mid; then |
| 8773 | ac_lo= ac_hi= |
| 8774 | break |
| 8775 | fi |
| 8776 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8778 | |
| 8779 | 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] | 8780 | done |
| 8781 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8784 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8786 | /* confdefs.h. */ |
| 8787 | _ACEOF |
| 8788 | cat confdefs.h >>conftest.$ac_ext |
| 8789 | cat >>conftest.$ac_ext <<_ACEOF |
| 8790 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8792 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | int |
| 8794 | main () |
| 8795 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8796 | 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] | 8797 | test_array [0] = 0 |
| 8798 | |
| 8799 | ; |
| 8800 | return 0; |
| 8801 | } |
| 8802 | _ACEOF |
| 8803 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8804 | if { (ac_try="$ac_compile" |
| 8805 | case "(($ac_try" in |
| 8806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8807 | *) ac_try_echo=$ac_try;; |
| 8808 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8810 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8813 | rm -f conftest.er1 |
| 8814 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8816 | (exit $ac_status); } && { |
| 8817 | test -z "$ac_c_werror_flag" || |
| 8818 | test ! -s conftest.err |
| 8819 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | ac_hi=-1 ac_mid=-1 |
| 8821 | while :; do |
| 8822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8823 | /* confdefs.h. */ |
| 8824 | _ACEOF |
| 8825 | cat confdefs.h >>conftest.$ac_ext |
| 8826 | cat >>conftest.$ac_ext <<_ACEOF |
| 8827 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8829 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | int |
| 8831 | main () |
| 8832 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8833 | 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] | 8834 | test_array [0] = 0 |
| 8835 | |
| 8836 | ; |
| 8837 | return 0; |
| 8838 | } |
| 8839 | _ACEOF |
| 8840 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8841 | if { (ac_try="$ac_compile" |
| 8842 | case "(($ac_try" in |
| 8843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8844 | *) ac_try_echo=$ac_try;; |
| 8845 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8847 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8850 | rm -f conftest.er1 |
| 8851 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8853 | (exit $ac_status); } && { |
| 8854 | test -z "$ac_c_werror_flag" || |
| 8855 | test ! -s conftest.err |
| 8856 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | ac_lo=$ac_mid; break |
| 8858 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8861 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8862 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8863 | if test $ac_mid -le $ac_hi; then |
| 8864 | ac_lo= ac_hi= |
| 8865 | break |
| 8866 | fi |
| 8867 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8869 | |
| 8870 | 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] | 8871 | done |
| 8872 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8873 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8875 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8876 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8878 | |
| 8879 | 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] | 8880 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8881 | |
| 8882 | 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] | 8883 | # Binary search between lo and hi bounds. |
| 8884 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8885 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8887 | /* confdefs.h. */ |
| 8888 | _ACEOF |
| 8889 | cat confdefs.h >>conftest.$ac_ext |
| 8890 | cat >>conftest.$ac_ext <<_ACEOF |
| 8891 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8893 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | int |
| 8895 | main () |
| 8896 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8897 | 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] | 8898 | test_array [0] = 0 |
| 8899 | |
| 8900 | ; |
| 8901 | return 0; |
| 8902 | } |
| 8903 | _ACEOF |
| 8904 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8905 | if { (ac_try="$ac_compile" |
| 8906 | case "(($ac_try" in |
| 8907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8908 | *) ac_try_echo=$ac_try;; |
| 8909 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8911 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8914 | rm -f conftest.er1 |
| 8915 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8917 | (exit $ac_status); } && { |
| 8918 | test -z "$ac_c_werror_flag" || |
| 8919 | test ! -s conftest.err |
| 8920 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | ac_hi=$ac_mid |
| 8922 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8923 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8925 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8926 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8928 | |
| 8929 | 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] | 8930 | done |
| 8931 | case $ac_lo in |
| 8932 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8933 | '') if test "$ac_cv_type_short" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8934 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8935 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8936 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8937 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8938 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8939 | else |
| 8940 | ac_cv_sizeof_short=0 |
| 8941 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8945 | /* confdefs.h. */ |
| 8946 | _ACEOF |
| 8947 | cat confdefs.h >>conftest.$ac_ext |
| 8948 | cat >>conftest.$ac_ext <<_ACEOF |
| 8949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8951 | typedef short ac__type_sizeof_; |
| 8952 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8953 | 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] | 8954 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | int |
| 8957 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8958 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | |
| 8960 | FILE *f = fopen ("conftest.val", "w"); |
| 8961 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8962 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8963 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8965 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8966 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8967 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8968 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | } |
| 8970 | else |
| 8971 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8972 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8973 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8974 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8975 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8977 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | |
| 8979 | ; |
| 8980 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8981 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | _ACEOF |
| 8983 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8984 | if { (ac_try="$ac_link" |
| 8985 | case "(($ac_try" in |
| 8986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8987 | *) ac_try_echo=$ac_try;; |
| 8988 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8990 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8994 | { (case "(($ac_try" in |
| 8995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8996 | *) ac_try_echo=$ac_try;; |
| 8997 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 8998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8999 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9000 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | (exit $ac_status); }; }; then |
| 9003 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9004 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9005 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9009 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9010 | if test "$ac_cv_type_short" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9011 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9012 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9013 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9014 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9015 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9016 | else |
| 9017 | ac_cv_sizeof_short=0 |
| 9018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9020 | 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] | 9021 | fi |
| 9022 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9023 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9024 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9025 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9026 | |
| 9027 | |
| 9028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9030 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9032 | |
| 9033 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9034 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9035 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9036 | if test "${ac_cv_type_float+set}" = set; then |
| 9037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9038 | else |
| 9039 | cat >conftest.$ac_ext <<_ACEOF |
| 9040 | /* confdefs.h. */ |
| 9041 | _ACEOF |
| 9042 | cat confdefs.h >>conftest.$ac_ext |
| 9043 | cat >>conftest.$ac_ext <<_ACEOF |
| 9044 | /* end confdefs.h. */ |
| 9045 | $ac_includes_default |
| 9046 | typedef float ac__type_new_; |
| 9047 | int |
| 9048 | main () |
| 9049 | { |
| 9050 | if ((ac__type_new_ *) 0) |
| 9051 | return 0; |
| 9052 | if (sizeof (ac__type_new_)) |
| 9053 | return 0; |
| 9054 | ; |
| 9055 | return 0; |
| 9056 | } |
| 9057 | _ACEOF |
| 9058 | rm -f conftest.$ac_objext |
| 9059 | if { (ac_try="$ac_compile" |
| 9060 | case "(($ac_try" in |
| 9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9062 | *) ac_try_echo=$ac_try;; |
| 9063 | esac |
| 9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9065 | (eval "$ac_compile") 2>conftest.er1 |
| 9066 | ac_status=$? |
| 9067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9068 | rm -f conftest.er1 |
| 9069 | cat conftest.err >&5 |
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9071 | (exit $ac_status); } && { |
| 9072 | test -z "$ac_c_werror_flag" || |
| 9073 | test ! -s conftest.err |
| 9074 | } && test -s conftest.$ac_objext; then |
| 9075 | ac_cv_type_float=yes |
| 9076 | else |
| 9077 | echo "$as_me: failed program was:" >&5 |
| 9078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9079 | |
| 9080 | ac_cv_type_float=no |
| 9081 | fi |
| 9082 | |
| 9083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9084 | fi |
| 9085 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9086 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9087 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9088 | # The cast to long int works around a bug in the HP C Compiler |
| 9089 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9090 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9091 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9092 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9093 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | if test "${ac_cv_sizeof_float+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | if test "$cross_compiling" = yes; then |
| 9098 | # Depending upon the size, compute the lo and hi bounds. |
| 9099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9100 | /* confdefs.h. */ |
| 9101 | _ACEOF |
| 9102 | cat confdefs.h >>conftest.$ac_ext |
| 9103 | cat >>conftest.$ac_ext <<_ACEOF |
| 9104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9106 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | int |
| 9108 | main () |
| 9109 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9110 | 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] | 9111 | test_array [0] = 0 |
| 9112 | |
| 9113 | ; |
| 9114 | return 0; |
| 9115 | } |
| 9116 | _ACEOF |
| 9117 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9118 | if { (ac_try="$ac_compile" |
| 9119 | case "(($ac_try" in |
| 9120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9121 | *) ac_try_echo=$ac_try;; |
| 9122 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9124 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9127 | rm -f conftest.er1 |
| 9128 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9130 | (exit $ac_status); } && { |
| 9131 | test -z "$ac_c_werror_flag" || |
| 9132 | test ! -s conftest.err |
| 9133 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | ac_lo=0 ac_mid=0 |
| 9135 | while :; do |
| 9136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9137 | /* confdefs.h. */ |
| 9138 | _ACEOF |
| 9139 | cat confdefs.h >>conftest.$ac_ext |
| 9140 | cat >>conftest.$ac_ext <<_ACEOF |
| 9141 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9143 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | int |
| 9145 | main () |
| 9146 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9147 | 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] | 9148 | test_array [0] = 0 |
| 9149 | |
| 9150 | ; |
| 9151 | return 0; |
| 9152 | } |
| 9153 | _ACEOF |
| 9154 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9155 | if { (ac_try="$ac_compile" |
| 9156 | case "(($ac_try" in |
| 9157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9158 | *) ac_try_echo=$ac_try;; |
| 9159 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9161 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9164 | rm -f conftest.er1 |
| 9165 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9167 | (exit $ac_status); } && { |
| 9168 | test -z "$ac_c_werror_flag" || |
| 9169 | test ! -s conftest.err |
| 9170 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | ac_hi=$ac_mid; break |
| 9172 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9175 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9176 | ac_lo=`expr $ac_mid + 1` |
| 9177 | if test $ac_lo -le $ac_mid; then |
| 9178 | ac_lo= ac_hi= |
| 9179 | break |
| 9180 | fi |
| 9181 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9183 | |
| 9184 | 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] | 9185 | done |
| 9186 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9187 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9189 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9191 | /* confdefs.h. */ |
| 9192 | _ACEOF |
| 9193 | cat confdefs.h >>conftest.$ac_ext |
| 9194 | cat >>conftest.$ac_ext <<_ACEOF |
| 9195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9197 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | int |
| 9199 | main () |
| 9200 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9201 | 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] | 9202 | test_array [0] = 0 |
| 9203 | |
| 9204 | ; |
| 9205 | return 0; |
| 9206 | } |
| 9207 | _ACEOF |
| 9208 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9209 | if { (ac_try="$ac_compile" |
| 9210 | case "(($ac_try" in |
| 9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9212 | *) ac_try_echo=$ac_try;; |
| 9213 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9215 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9216 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9218 | rm -f conftest.er1 |
| 9219 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9221 | (exit $ac_status); } && { |
| 9222 | test -z "$ac_c_werror_flag" || |
| 9223 | test ! -s conftest.err |
| 9224 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | ac_hi=-1 ac_mid=-1 |
| 9226 | while :; do |
| 9227 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9228 | /* confdefs.h. */ |
| 9229 | _ACEOF |
| 9230 | cat confdefs.h >>conftest.$ac_ext |
| 9231 | cat >>conftest.$ac_ext <<_ACEOF |
| 9232 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9234 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | int |
| 9236 | main () |
| 9237 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9238 | 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] | 9239 | test_array [0] = 0 |
| 9240 | |
| 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
| 9245 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9246 | if { (ac_try="$ac_compile" |
| 9247 | case "(($ac_try" in |
| 9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9249 | *) ac_try_echo=$ac_try;; |
| 9250 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9252 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9253 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9255 | rm -f conftest.er1 |
| 9256 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9258 | (exit $ac_status); } && { |
| 9259 | test -z "$ac_c_werror_flag" || |
| 9260 | test ! -s conftest.err |
| 9261 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | ac_lo=$ac_mid; break |
| 9263 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9266 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9267 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9268 | if test $ac_mid -le $ac_hi; then |
| 9269 | ac_lo= ac_hi= |
| 9270 | break |
| 9271 | fi |
| 9272 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9274 | |
| 9275 | 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] | 9276 | done |
| 9277 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9281 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9283 | |
| 9284 | 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] | 9285 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9286 | |
| 9287 | 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] | 9288 | # Binary search between lo and hi bounds. |
| 9289 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9290 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9292 | /* confdefs.h. */ |
| 9293 | _ACEOF |
| 9294 | cat confdefs.h >>conftest.$ac_ext |
| 9295 | cat >>conftest.$ac_ext <<_ACEOF |
| 9296 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9298 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | int |
| 9300 | main () |
| 9301 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9302 | 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] | 9303 | test_array [0] = 0 |
| 9304 | |
| 9305 | ; |
| 9306 | return 0; |
| 9307 | } |
| 9308 | _ACEOF |
| 9309 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9310 | if { (ac_try="$ac_compile" |
| 9311 | case "(($ac_try" in |
| 9312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9313 | *) ac_try_echo=$ac_try;; |
| 9314 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9316 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9319 | rm -f conftest.er1 |
| 9320 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9322 | (exit $ac_status); } && { |
| 9323 | test -z "$ac_c_werror_flag" || |
| 9324 | test ! -s conftest.err |
| 9325 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | ac_hi=$ac_mid |
| 9327 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9328 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9330 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9331 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9333 | |
| 9334 | 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] | 9335 | done |
| 9336 | case $ac_lo in |
| 9337 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9338 | '') if test "$ac_cv_type_float" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9339 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9340 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9341 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9342 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9343 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9344 | else |
| 9345 | ac_cv_sizeof_float=0 |
| 9346 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9356 | typedef float ac__type_sizeof_; |
| 9357 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9358 | 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] | 9359 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9360 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | int |
| 9362 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9363 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | |
| 9365 | FILE *f = fopen ("conftest.val", "w"); |
| 9366 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9367 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9368 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9370 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9371 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9372 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9373 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | } |
| 9375 | else |
| 9376 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9377 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9378 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9379 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9380 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9382 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9383 | |
| 9384 | ; |
| 9385 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9386 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | _ACEOF |
| 9388 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9389 | if { (ac_try="$ac_link" |
| 9390 | case "(($ac_try" in |
| 9391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9392 | *) ac_try_echo=$ac_try;; |
| 9393 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9395 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9396 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9399 | { (case "(($ac_try" in |
| 9400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9401 | *) ac_try_echo=$ac_try;; |
| 9402 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9404 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | (exit $ac_status); }; }; then |
| 9408 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9409 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9410 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9411 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9415 | if test "$ac_cv_type_float" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9416 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9417 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9418 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9419 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9420 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9421 | else |
| 9422 | ac_cv_sizeof_float=0 |
| 9423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9425 | 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] | 9426 | fi |
| 9427 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9428 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9429 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9430 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9431 | |
| 9432 | |
| 9433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9435 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9437 | |
| 9438 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9439 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9440 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9441 | if test "${ac_cv_type_double+set}" = set; then |
| 9442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9443 | else |
| 9444 | cat >conftest.$ac_ext <<_ACEOF |
| 9445 | /* confdefs.h. */ |
| 9446 | _ACEOF |
| 9447 | cat confdefs.h >>conftest.$ac_ext |
| 9448 | cat >>conftest.$ac_ext <<_ACEOF |
| 9449 | /* end confdefs.h. */ |
| 9450 | $ac_includes_default |
| 9451 | typedef double ac__type_new_; |
| 9452 | int |
| 9453 | main () |
| 9454 | { |
| 9455 | if ((ac__type_new_ *) 0) |
| 9456 | return 0; |
| 9457 | if (sizeof (ac__type_new_)) |
| 9458 | return 0; |
| 9459 | ; |
| 9460 | return 0; |
| 9461 | } |
| 9462 | _ACEOF |
| 9463 | rm -f conftest.$ac_objext |
| 9464 | if { (ac_try="$ac_compile" |
| 9465 | case "(($ac_try" in |
| 9466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9467 | *) ac_try_echo=$ac_try;; |
| 9468 | esac |
| 9469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9470 | (eval "$ac_compile") 2>conftest.er1 |
| 9471 | ac_status=$? |
| 9472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9473 | rm -f conftest.er1 |
| 9474 | cat conftest.err >&5 |
| 9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9476 | (exit $ac_status); } && { |
| 9477 | test -z "$ac_c_werror_flag" || |
| 9478 | test ! -s conftest.err |
| 9479 | } && test -s conftest.$ac_objext; then |
| 9480 | ac_cv_type_double=yes |
| 9481 | else |
| 9482 | echo "$as_me: failed program was:" >&5 |
| 9483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9484 | |
| 9485 | ac_cv_type_double=no |
| 9486 | fi |
| 9487 | |
| 9488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9489 | fi |
| 9490 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9491 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9493 | # The cast to long int works around a bug in the HP C Compiler |
| 9494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9496 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9497 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9498 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | if test "${ac_cv_sizeof_double+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | if test "$cross_compiling" = yes; then |
| 9503 | # Depending upon the size, compute the lo and hi bounds. |
| 9504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9505 | /* confdefs.h. */ |
| 9506 | _ACEOF |
| 9507 | cat confdefs.h >>conftest.$ac_ext |
| 9508 | cat >>conftest.$ac_ext <<_ACEOF |
| 9509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9511 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | int |
| 9513 | main () |
| 9514 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9515 | 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] | 9516 | test_array [0] = 0 |
| 9517 | |
| 9518 | ; |
| 9519 | return 0; |
| 9520 | } |
| 9521 | _ACEOF |
| 9522 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9523 | if { (ac_try="$ac_compile" |
| 9524 | case "(($ac_try" in |
| 9525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9526 | *) ac_try_echo=$ac_try;; |
| 9527 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9529 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9532 | rm -f conftest.er1 |
| 9533 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9535 | (exit $ac_status); } && { |
| 9536 | test -z "$ac_c_werror_flag" || |
| 9537 | test ! -s conftest.err |
| 9538 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | ac_lo=0 ac_mid=0 |
| 9540 | while :; do |
| 9541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9542 | /* confdefs.h. */ |
| 9543 | _ACEOF |
| 9544 | cat confdefs.h >>conftest.$ac_ext |
| 9545 | cat >>conftest.$ac_ext <<_ACEOF |
| 9546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9548 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | int |
| 9550 | main () |
| 9551 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9552 | 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] | 9553 | test_array [0] = 0 |
| 9554 | |
| 9555 | ; |
| 9556 | return 0; |
| 9557 | } |
| 9558 | _ACEOF |
| 9559 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9560 | if { (ac_try="$ac_compile" |
| 9561 | case "(($ac_try" in |
| 9562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9563 | *) ac_try_echo=$ac_try;; |
| 9564 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9566 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9569 | rm -f conftest.er1 |
| 9570 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | (exit $ac_status); } && { |
| 9573 | test -z "$ac_c_werror_flag" || |
| 9574 | test ! -s conftest.err |
| 9575 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | ac_hi=$ac_mid; break |
| 9577 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9580 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9581 | ac_lo=`expr $ac_mid + 1` |
| 9582 | if test $ac_lo -le $ac_mid; then |
| 9583 | ac_lo= ac_hi= |
| 9584 | break |
| 9585 | fi |
| 9586 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9588 | |
| 9589 | 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] | 9590 | done |
| 9591 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9594 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9596 | /* confdefs.h. */ |
| 9597 | _ACEOF |
| 9598 | cat confdefs.h >>conftest.$ac_ext |
| 9599 | cat >>conftest.$ac_ext <<_ACEOF |
| 9600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9602 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | int |
| 9604 | main () |
| 9605 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9606 | 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] | 9607 | test_array [0] = 0 |
| 9608 | |
| 9609 | ; |
| 9610 | return 0; |
| 9611 | } |
| 9612 | _ACEOF |
| 9613 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9614 | if { (ac_try="$ac_compile" |
| 9615 | case "(($ac_try" in |
| 9616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9617 | *) ac_try_echo=$ac_try;; |
| 9618 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9620 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9623 | rm -f conftest.er1 |
| 9624 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9626 | (exit $ac_status); } && { |
| 9627 | test -z "$ac_c_werror_flag" || |
| 9628 | test ! -s conftest.err |
| 9629 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | ac_hi=-1 ac_mid=-1 |
| 9631 | while :; do |
| 9632 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9633 | /* confdefs.h. */ |
| 9634 | _ACEOF |
| 9635 | cat confdefs.h >>conftest.$ac_ext |
| 9636 | cat >>conftest.$ac_ext <<_ACEOF |
| 9637 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9639 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | int |
| 9641 | main () |
| 9642 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9643 | 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] | 9644 | test_array [0] = 0 |
| 9645 | |
| 9646 | ; |
| 9647 | return 0; |
| 9648 | } |
| 9649 | _ACEOF |
| 9650 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9651 | if { (ac_try="$ac_compile" |
| 9652 | case "(($ac_try" in |
| 9653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9654 | *) ac_try_echo=$ac_try;; |
| 9655 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9657 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9660 | rm -f conftest.er1 |
| 9661 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9663 | (exit $ac_status); } && { |
| 9664 | test -z "$ac_c_werror_flag" || |
| 9665 | test ! -s conftest.err |
| 9666 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | ac_lo=$ac_mid; break |
| 9668 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9671 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9672 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9673 | if test $ac_mid -le $ac_hi; then |
| 9674 | ac_lo= ac_hi= |
| 9675 | break |
| 9676 | fi |
| 9677 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9679 | |
| 9680 | 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] | 9681 | done |
| 9682 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9685 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9686 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9688 | |
| 9689 | 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] | 9690 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9691 | |
| 9692 | 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] | 9693 | # Binary search between lo and hi bounds. |
| 9694 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9695 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9697 | /* confdefs.h. */ |
| 9698 | _ACEOF |
| 9699 | cat confdefs.h >>conftest.$ac_ext |
| 9700 | cat >>conftest.$ac_ext <<_ACEOF |
| 9701 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9703 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | int |
| 9705 | main () |
| 9706 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9707 | 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] | 9708 | test_array [0] = 0 |
| 9709 | |
| 9710 | ; |
| 9711 | return 0; |
| 9712 | } |
| 9713 | _ACEOF |
| 9714 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9715 | if { (ac_try="$ac_compile" |
| 9716 | case "(($ac_try" in |
| 9717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9718 | *) ac_try_echo=$ac_try;; |
| 9719 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9721 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9724 | rm -f conftest.er1 |
| 9725 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9727 | (exit $ac_status); } && { |
| 9728 | test -z "$ac_c_werror_flag" || |
| 9729 | test ! -s conftest.err |
| 9730 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | ac_hi=$ac_mid |
| 9732 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9735 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9736 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9738 | |
| 9739 | 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] | 9740 | done |
| 9741 | case $ac_lo in |
| 9742 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9743 | '') if test "$ac_cv_type_double" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9744 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9746 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9747 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9748 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9749 | else |
| 9750 | ac_cv_sizeof_double=0 |
| 9751 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9755 | /* confdefs.h. */ |
| 9756 | _ACEOF |
| 9757 | cat confdefs.h >>conftest.$ac_ext |
| 9758 | cat >>conftest.$ac_ext <<_ACEOF |
| 9759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9761 | typedef double ac__type_sizeof_; |
| 9762 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9763 | 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] | 9764 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9766 | int |
| 9767 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9768 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | |
| 9770 | FILE *f = fopen ("conftest.val", "w"); |
| 9771 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9772 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9773 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9775 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9776 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9777 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9778 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9779 | } |
| 9780 | else |
| 9781 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9782 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9783 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9784 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9785 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9787 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9788 | |
| 9789 | ; |
| 9790 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9791 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | _ACEOF |
| 9793 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9794 | if { (ac_try="$ac_link" |
| 9795 | case "(($ac_try" in |
| 9796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9797 | *) ac_try_echo=$ac_try;; |
| 9798 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9800 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9804 | { (case "(($ac_try" in |
| 9805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9806 | *) ac_try_echo=$ac_try;; |
| 9807 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9809 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | (exit $ac_status); }; }; then |
| 9813 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9814 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9815 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9816 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9820 | if test "$ac_cv_type_double" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9821 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9822 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9823 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9824 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9825 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9826 | else |
| 9827 | ac_cv_sizeof_double=0 |
| 9828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9830 | 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] | 9831 | fi |
| 9832 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9833 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9834 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9835 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9836 | |
| 9837 | |
| 9838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9840 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9842 | |
| 9843 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9844 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9845 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9846 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9848 | else |
| 9849 | cat >conftest.$ac_ext <<_ACEOF |
| 9850 | /* confdefs.h. */ |
| 9851 | _ACEOF |
| 9852 | cat confdefs.h >>conftest.$ac_ext |
| 9853 | cat >>conftest.$ac_ext <<_ACEOF |
| 9854 | /* end confdefs.h. */ |
| 9855 | $ac_includes_default |
| 9856 | typedef fpos_t ac__type_new_; |
| 9857 | int |
| 9858 | main () |
| 9859 | { |
| 9860 | if ((ac__type_new_ *) 0) |
| 9861 | return 0; |
| 9862 | if (sizeof (ac__type_new_)) |
| 9863 | return 0; |
| 9864 | ; |
| 9865 | return 0; |
| 9866 | } |
| 9867 | _ACEOF |
| 9868 | rm -f conftest.$ac_objext |
| 9869 | if { (ac_try="$ac_compile" |
| 9870 | case "(($ac_try" in |
| 9871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9872 | *) ac_try_echo=$ac_try;; |
| 9873 | esac |
| 9874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9875 | (eval "$ac_compile") 2>conftest.er1 |
| 9876 | ac_status=$? |
| 9877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9878 | rm -f conftest.er1 |
| 9879 | cat conftest.err >&5 |
| 9880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9881 | (exit $ac_status); } && { |
| 9882 | test -z "$ac_c_werror_flag" || |
| 9883 | test ! -s conftest.err |
| 9884 | } && test -s conftest.$ac_objext; then |
| 9885 | ac_cv_type_fpos_t=yes |
| 9886 | else |
| 9887 | echo "$as_me: failed program was:" >&5 |
| 9888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9889 | |
| 9890 | ac_cv_type_fpos_t=no |
| 9891 | fi |
| 9892 | |
| 9893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9894 | fi |
| 9895 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9896 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9897 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9898 | # The cast to long int works around a bug in the HP C Compiler |
| 9899 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9900 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9901 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9902 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9903 | 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] | 9904 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | if test "$cross_compiling" = yes; then |
| 9908 | # Depending upon the size, compute the lo and hi bounds. |
| 9909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9910 | /* confdefs.h. */ |
| 9911 | _ACEOF |
| 9912 | cat confdefs.h >>conftest.$ac_ext |
| 9913 | cat >>conftest.$ac_ext <<_ACEOF |
| 9914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9916 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | int |
| 9918 | main () |
| 9919 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9920 | 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] | 9921 | test_array [0] = 0 |
| 9922 | |
| 9923 | ; |
| 9924 | return 0; |
| 9925 | } |
| 9926 | _ACEOF |
| 9927 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | if { (ac_try="$ac_compile" |
| 9929 | case "(($ac_try" in |
| 9930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9931 | *) ac_try_echo=$ac_try;; |
| 9932 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9934 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9937 | rm -f conftest.er1 |
| 9938 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9940 | (exit $ac_status); } && { |
| 9941 | test -z "$ac_c_werror_flag" || |
| 9942 | test ! -s conftest.err |
| 9943 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9944 | ac_lo=0 ac_mid=0 |
| 9945 | while :; do |
| 9946 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | /* confdefs.h. */ |
| 9948 | _ACEOF |
| 9949 | cat confdefs.h >>conftest.$ac_ext |
| 9950 | cat >>conftest.$ac_ext <<_ACEOF |
| 9951 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9953 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | int |
| 9955 | main () |
| 9956 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9957 | 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] | 9958 | test_array [0] = 0 |
| 9959 | |
| 9960 | ; |
| 9961 | return 0; |
| 9962 | } |
| 9963 | _ACEOF |
| 9964 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9965 | if { (ac_try="$ac_compile" |
| 9966 | case "(($ac_try" in |
| 9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9968 | *) ac_try_echo=$ac_try;; |
| 9969 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9971 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9974 | rm -f conftest.er1 |
| 9975 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9977 | (exit $ac_status); } && { |
| 9978 | test -z "$ac_c_werror_flag" || |
| 9979 | test ! -s conftest.err |
| 9980 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | ac_hi=$ac_mid; break |
| 9982 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9986 | ac_lo=`expr $ac_mid + 1` |
| 9987 | if test $ac_lo -le $ac_mid; then |
| 9988 | ac_lo= ac_hi= |
| 9989 | break |
| 9990 | fi |
| 9991 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9993 | |
| 9994 | 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] | 9995 | done |
| 9996 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 9997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9999 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10000 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10001 | /* confdefs.h. */ |
| 10002 | _ACEOF |
| 10003 | cat confdefs.h >>conftest.$ac_ext |
| 10004 | cat >>conftest.$ac_ext <<_ACEOF |
| 10005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10007 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | int |
| 10009 | main () |
| 10010 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10011 | 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] | 10012 | test_array [0] = 0 |
| 10013 | |
| 10014 | ; |
| 10015 | return 0; |
| 10016 | } |
| 10017 | _ACEOF |
| 10018 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10019 | if { (ac_try="$ac_compile" |
| 10020 | case "(($ac_try" in |
| 10021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10022 | *) ac_try_echo=$ac_try;; |
| 10023 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10025 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10028 | rm -f conftest.er1 |
| 10029 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10031 | (exit $ac_status); } && { |
| 10032 | test -z "$ac_c_werror_flag" || |
| 10033 | test ! -s conftest.err |
| 10034 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | ac_hi=-1 ac_mid=-1 |
| 10036 | while :; do |
| 10037 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10038 | /* confdefs.h. */ |
| 10039 | _ACEOF |
| 10040 | cat confdefs.h >>conftest.$ac_ext |
| 10041 | cat >>conftest.$ac_ext <<_ACEOF |
| 10042 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10044 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | int |
| 10046 | main () |
| 10047 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10048 | 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] | 10049 | test_array [0] = 0 |
| 10050 | |
| 10051 | ; |
| 10052 | return 0; |
| 10053 | } |
| 10054 | _ACEOF |
| 10055 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10056 | if { (ac_try="$ac_compile" |
| 10057 | case "(($ac_try" in |
| 10058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10059 | *) ac_try_echo=$ac_try;; |
| 10060 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10062 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10065 | rm -f conftest.er1 |
| 10066 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10068 | (exit $ac_status); } && { |
| 10069 | test -z "$ac_c_werror_flag" || |
| 10070 | test ! -s conftest.err |
| 10071 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | ac_lo=$ac_mid; break |
| 10073 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10074 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10076 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10077 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10078 | if test $ac_mid -le $ac_hi; then |
| 10079 | ac_lo= ac_hi= |
| 10080 | break |
| 10081 | fi |
| 10082 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10084 | |
| 10085 | 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] | 10086 | done |
| 10087 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10091 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10093 | |
| 10094 | 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] | 10095 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10096 | |
| 10097 | 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] | 10098 | # Binary search between lo and hi bounds. |
| 10099 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10100 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10101 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10102 | /* confdefs.h. */ |
| 10103 | _ACEOF |
| 10104 | cat confdefs.h >>conftest.$ac_ext |
| 10105 | cat >>conftest.$ac_ext <<_ACEOF |
| 10106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10108 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | int |
| 10110 | main () |
| 10111 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10112 | 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] | 10113 | test_array [0] = 0 |
| 10114 | |
| 10115 | ; |
| 10116 | return 0; |
| 10117 | } |
| 10118 | _ACEOF |
| 10119 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10120 | if { (ac_try="$ac_compile" |
| 10121 | case "(($ac_try" in |
| 10122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10123 | *) ac_try_echo=$ac_try;; |
| 10124 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10126 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10129 | rm -f conftest.er1 |
| 10130 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10132 | (exit $ac_status); } && { |
| 10133 | test -z "$ac_c_werror_flag" || |
| 10134 | test ! -s conftest.err |
| 10135 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | ac_hi=$ac_mid |
| 10137 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10138 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10140 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10141 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10142 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10143 | |
| 10144 | 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] | 10145 | done |
| 10146 | case $ac_lo in |
| 10147 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10148 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10149 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10150 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10151 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10152 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10153 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10154 | else |
| 10155 | ac_cv_sizeof_fpos_t=0 |
| 10156 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10160 | /* confdefs.h. */ |
| 10161 | _ACEOF |
| 10162 | cat confdefs.h >>conftest.$ac_ext |
| 10163 | cat >>conftest.$ac_ext <<_ACEOF |
| 10164 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10166 | typedef fpos_t ac__type_sizeof_; |
| 10167 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10168 | 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] | 10169 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | int |
| 10172 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10173 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | |
| 10175 | FILE *f = fopen ("conftest.val", "w"); |
| 10176 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10177 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10178 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10180 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10181 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10182 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10183 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | } |
| 10185 | else |
| 10186 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10187 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10188 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10189 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10190 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10192 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | |
| 10194 | ; |
| 10195 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10196 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | _ACEOF |
| 10198 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10199 | if { (ac_try="$ac_link" |
| 10200 | case "(($ac_try" in |
| 10201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10202 | *) ac_try_echo=$ac_try;; |
| 10203 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10205 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10209 | { (case "(($ac_try" in |
| 10210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10211 | *) ac_try_echo=$ac_try;; |
| 10212 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10214 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | (exit $ac_status); }; }; then |
| 10218 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10219 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10220 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10225 | if test "$ac_cv_type_fpos_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10226 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10227 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10228 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10229 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10230 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10231 | else |
| 10232 | ac_cv_sizeof_fpos_t=0 |
| 10233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10235 | 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] | 10236 | fi |
| 10237 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10238 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10239 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10240 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10241 | |
| 10242 | |
| 10243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10245 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10247 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10248 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10249 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10250 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10251 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10253 | else |
| 10254 | cat >conftest.$ac_ext <<_ACEOF |
| 10255 | /* confdefs.h. */ |
| 10256 | _ACEOF |
| 10257 | cat confdefs.h >>conftest.$ac_ext |
| 10258 | cat >>conftest.$ac_ext <<_ACEOF |
| 10259 | /* end confdefs.h. */ |
| 10260 | $ac_includes_default |
| 10261 | typedef size_t ac__type_new_; |
| 10262 | int |
| 10263 | main () |
| 10264 | { |
| 10265 | if ((ac__type_new_ *) 0) |
| 10266 | return 0; |
| 10267 | if (sizeof (ac__type_new_)) |
| 10268 | return 0; |
| 10269 | ; |
| 10270 | return 0; |
| 10271 | } |
| 10272 | _ACEOF |
| 10273 | rm -f conftest.$ac_objext |
| 10274 | if { (ac_try="$ac_compile" |
| 10275 | case "(($ac_try" in |
| 10276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10277 | *) ac_try_echo=$ac_try;; |
| 10278 | esac |
| 10279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10280 | (eval "$ac_compile") 2>conftest.er1 |
| 10281 | ac_status=$? |
| 10282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10283 | rm -f conftest.er1 |
| 10284 | cat conftest.err >&5 |
| 10285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10286 | (exit $ac_status); } && { |
| 10287 | test -z "$ac_c_werror_flag" || |
| 10288 | test ! -s conftest.err |
| 10289 | } && test -s conftest.$ac_objext; then |
| 10290 | ac_cv_type_size_t=yes |
| 10291 | else |
| 10292 | echo "$as_me: failed program was:" >&5 |
| 10293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10294 | |
| 10295 | ac_cv_type_size_t=no |
| 10296 | fi |
| 10297 | |
| 10298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10299 | fi |
| 10300 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10301 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10303 | # The cast to long int works around a bug in the HP C Compiler |
| 10304 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10305 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10306 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10307 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10308 | 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] | 10309 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10311 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10312 | if test "$cross_compiling" = yes; then |
| 10313 | # Depending upon the size, compute the lo and hi bounds. |
| 10314 | cat >conftest.$ac_ext <<_ACEOF |
| 10315 | /* confdefs.h. */ |
| 10316 | _ACEOF |
| 10317 | cat confdefs.h >>conftest.$ac_ext |
| 10318 | cat >>conftest.$ac_ext <<_ACEOF |
| 10319 | /* end confdefs.h. */ |
| 10320 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10321 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10322 | int |
| 10323 | main () |
| 10324 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10325 | 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] | 10326 | test_array [0] = 0 |
| 10327 | |
| 10328 | ; |
| 10329 | return 0; |
| 10330 | } |
| 10331 | _ACEOF |
| 10332 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10333 | if { (ac_try="$ac_compile" |
| 10334 | case "(($ac_try" in |
| 10335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10336 | *) ac_try_echo=$ac_try;; |
| 10337 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10339 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10340 | ac_status=$? |
| 10341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10342 | rm -f conftest.er1 |
| 10343 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10345 | (exit $ac_status); } && { |
| 10346 | test -z "$ac_c_werror_flag" || |
| 10347 | test ! -s conftest.err |
| 10348 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10349 | ac_lo=0 ac_mid=0 |
| 10350 | while :; do |
| 10351 | cat >conftest.$ac_ext <<_ACEOF |
| 10352 | /* confdefs.h. */ |
| 10353 | _ACEOF |
| 10354 | cat confdefs.h >>conftest.$ac_ext |
| 10355 | cat >>conftest.$ac_ext <<_ACEOF |
| 10356 | /* end confdefs.h. */ |
| 10357 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10358 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10359 | int |
| 10360 | main () |
| 10361 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10362 | 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] | 10363 | test_array [0] = 0 |
| 10364 | |
| 10365 | ; |
| 10366 | return 0; |
| 10367 | } |
| 10368 | _ACEOF |
| 10369 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10370 | if { (ac_try="$ac_compile" |
| 10371 | case "(($ac_try" in |
| 10372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10373 | *) ac_try_echo=$ac_try;; |
| 10374 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10377 | ac_status=$? |
| 10378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10379 | rm -f conftest.er1 |
| 10380 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10382 | (exit $ac_status); } && { |
| 10383 | test -z "$ac_c_werror_flag" || |
| 10384 | test ! -s conftest.err |
| 10385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10386 | ac_hi=$ac_mid; break |
| 10387 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10388 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10391 | ac_lo=`expr $ac_mid + 1` |
| 10392 | if test $ac_lo -le $ac_mid; then |
| 10393 | ac_lo= ac_hi= |
| 10394 | break |
| 10395 | fi |
| 10396 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10397 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10398 | |
| 10399 | 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] | 10400 | done |
| 10401 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10402 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10405 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10406 | /* confdefs.h. */ |
| 10407 | _ACEOF |
| 10408 | cat confdefs.h >>conftest.$ac_ext |
| 10409 | cat >>conftest.$ac_ext <<_ACEOF |
| 10410 | /* end confdefs.h. */ |
| 10411 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10412 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10413 | int |
| 10414 | main () |
| 10415 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10416 | 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] | 10417 | test_array [0] = 0 |
| 10418 | |
| 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
| 10423 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10424 | if { (ac_try="$ac_compile" |
| 10425 | case "(($ac_try" in |
| 10426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10427 | *) ac_try_echo=$ac_try;; |
| 10428 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10430 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10431 | ac_status=$? |
| 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10436 | (exit $ac_status); } && { |
| 10437 | test -z "$ac_c_werror_flag" || |
| 10438 | test ! -s conftest.err |
| 10439 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10440 | ac_hi=-1 ac_mid=-1 |
| 10441 | while :; do |
| 10442 | cat >conftest.$ac_ext <<_ACEOF |
| 10443 | /* confdefs.h. */ |
| 10444 | _ACEOF |
| 10445 | cat confdefs.h >>conftest.$ac_ext |
| 10446 | cat >>conftest.$ac_ext <<_ACEOF |
| 10447 | /* end confdefs.h. */ |
| 10448 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10449 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10450 | int |
| 10451 | main () |
| 10452 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10453 | 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] | 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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10467 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10468 | ac_status=$? |
| 10469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10470 | rm -f conftest.er1 |
| 10471 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10477 | ac_lo=$ac_mid; break |
| 10478 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10479 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +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_hi=`expr '(' $ac_mid ')' - 1` |
| 10483 | if test $ac_mid -le $ac_hi; then |
| 10484 | ac_lo= ac_hi= |
| 10485 | break |
| 10486 | fi |
| 10487 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10488 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10489 | |
| 10490 | 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] | 10491 | done |
| 10492 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10493 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10495 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10496 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10497 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10498 | |
| 10499 | 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] | 10500 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10501 | |
| 10502 | 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] | 10503 | # Binary search between lo and hi bounds. |
| 10504 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10505 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10506 | cat >conftest.$ac_ext <<_ACEOF |
| 10507 | /* confdefs.h. */ |
| 10508 | _ACEOF |
| 10509 | cat confdefs.h >>conftest.$ac_ext |
| 10510 | cat >>conftest.$ac_ext <<_ACEOF |
| 10511 | /* end confdefs.h. */ |
| 10512 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10513 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10514 | int |
| 10515 | main () |
| 10516 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10517 | 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] | 10518 | test_array [0] = 0 |
| 10519 | |
| 10520 | ; |
| 10521 | return 0; |
| 10522 | } |
| 10523 | _ACEOF |
| 10524 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10525 | if { (ac_try="$ac_compile" |
| 10526 | case "(($ac_try" in |
| 10527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10528 | *) ac_try_echo=$ac_try;; |
| 10529 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10531 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10532 | ac_status=$? |
| 10533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10534 | rm -f conftest.er1 |
| 10535 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10537 | (exit $ac_status); } && { |
| 10538 | test -z "$ac_c_werror_flag" || |
| 10539 | test ! -s conftest.err |
| 10540 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10541 | ac_hi=$ac_mid |
| 10542 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10543 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10545 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10546 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10547 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10548 | |
| 10549 | 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] | 10550 | done |
| 10551 | case $ac_lo in |
| 10552 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10553 | '') if test "$ac_cv_type_size_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10554 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10555 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10556 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10557 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10558 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10559 | else |
| 10560 | ac_cv_sizeof_size_t=0 |
| 10561 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10562 | esac |
| 10563 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10564 | cat >conftest.$ac_ext <<_ACEOF |
| 10565 | /* confdefs.h. */ |
| 10566 | _ACEOF |
| 10567 | cat confdefs.h >>conftest.$ac_ext |
| 10568 | cat >>conftest.$ac_ext <<_ACEOF |
| 10569 | /* end confdefs.h. */ |
| 10570 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10571 | typedef size_t ac__type_sizeof_; |
| 10572 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10573 | 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] | 10574 | #include <stdio.h> |
| 10575 | #include <stdlib.h> |
| 10576 | int |
| 10577 | main () |
| 10578 | { |
| 10579 | |
| 10580 | FILE *f = fopen ("conftest.val", "w"); |
| 10581 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10582 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10583 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10584 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10585 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10586 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10587 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10588 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10589 | } |
| 10590 | else |
| 10591 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10592 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10593 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10594 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10595 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10596 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10597 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10598 | |
| 10599 | ; |
| 10600 | return 0; |
| 10601 | } |
| 10602 | _ACEOF |
| 10603 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10604 | if { (ac_try="$ac_link" |
| 10605 | case "(($ac_try" in |
| 10606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10607 | *) ac_try_echo=$ac_try;; |
| 10608 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10610 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10611 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10614 | { (case "(($ac_try" in |
| 10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10616 | *) ac_try_echo=$ac_try;; |
| 10617 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10619 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10620 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10622 | (exit $ac_status); }; }; then |
| 10623 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10624 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10625 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10626 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10628 | |
| 10629 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10630 | if test "$ac_cv_type_size_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10631 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10632 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10633 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10634 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10635 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10636 | else |
| 10637 | ac_cv_sizeof_size_t=0 |
| 10638 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10639 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10640 | 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] | 10641 | fi |
| 10642 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10643 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10644 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10645 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10646 | |
| 10647 | |
| 10648 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10649 | cat >>confdefs.h <<_ACEOF |
| 10650 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10651 | _ACEOF |
| 10652 | |
| 10653 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10654 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10655 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10656 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10658 | else |
| 10659 | cat >conftest.$ac_ext <<_ACEOF |
| 10660 | /* confdefs.h. */ |
| 10661 | _ACEOF |
| 10662 | cat confdefs.h >>conftest.$ac_ext |
| 10663 | cat >>conftest.$ac_ext <<_ACEOF |
| 10664 | /* end confdefs.h. */ |
| 10665 | $ac_includes_default |
| 10666 | typedef pid_t ac__type_new_; |
| 10667 | int |
| 10668 | main () |
| 10669 | { |
| 10670 | if ((ac__type_new_ *) 0) |
| 10671 | return 0; |
| 10672 | if (sizeof (ac__type_new_)) |
| 10673 | return 0; |
| 10674 | ; |
| 10675 | return 0; |
| 10676 | } |
| 10677 | _ACEOF |
| 10678 | rm -f conftest.$ac_objext |
| 10679 | if { (ac_try="$ac_compile" |
| 10680 | case "(($ac_try" in |
| 10681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10682 | *) ac_try_echo=$ac_try;; |
| 10683 | esac |
| 10684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10685 | (eval "$ac_compile") 2>conftest.er1 |
| 10686 | ac_status=$? |
| 10687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10688 | rm -f conftest.er1 |
| 10689 | cat conftest.err >&5 |
| 10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10691 | (exit $ac_status); } && { |
| 10692 | test -z "$ac_c_werror_flag" || |
| 10693 | test ! -s conftest.err |
| 10694 | } && test -s conftest.$ac_objext; then |
| 10695 | ac_cv_type_pid_t=yes |
| 10696 | else |
| 10697 | echo "$as_me: failed program was:" >&5 |
| 10698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10699 | |
| 10700 | ac_cv_type_pid_t=no |
| 10701 | fi |
| 10702 | |
| 10703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10704 | fi |
| 10705 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10706 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10707 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10708 | # The cast to long int works around a bug in the HP C Compiler |
| 10709 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10710 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10711 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10712 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10713 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10714 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10716 | else |
| 10717 | if test "$cross_compiling" = yes; then |
| 10718 | # Depending upon the size, compute the lo and hi bounds. |
| 10719 | cat >conftest.$ac_ext <<_ACEOF |
| 10720 | /* confdefs.h. */ |
| 10721 | _ACEOF |
| 10722 | cat confdefs.h >>conftest.$ac_ext |
| 10723 | cat >>conftest.$ac_ext <<_ACEOF |
| 10724 | /* end confdefs.h. */ |
| 10725 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10726 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10727 | int |
| 10728 | main () |
| 10729 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10730 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10731 | test_array [0] = 0 |
| 10732 | |
| 10733 | ; |
| 10734 | return 0; |
| 10735 | } |
| 10736 | _ACEOF |
| 10737 | rm -f conftest.$ac_objext |
| 10738 | if { (ac_try="$ac_compile" |
| 10739 | case "(($ac_try" in |
| 10740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10741 | *) ac_try_echo=$ac_try;; |
| 10742 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10744 | (eval "$ac_compile") 2>conftest.er1 |
| 10745 | ac_status=$? |
| 10746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10747 | rm -f conftest.er1 |
| 10748 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10750 | (exit $ac_status); } && { |
| 10751 | test -z "$ac_c_werror_flag" || |
| 10752 | test ! -s conftest.err |
| 10753 | } && test -s conftest.$ac_objext; then |
| 10754 | ac_lo=0 ac_mid=0 |
| 10755 | while :; do |
| 10756 | cat >conftest.$ac_ext <<_ACEOF |
| 10757 | /* confdefs.h. */ |
| 10758 | _ACEOF |
| 10759 | cat confdefs.h >>conftest.$ac_ext |
| 10760 | cat >>conftest.$ac_ext <<_ACEOF |
| 10761 | /* end confdefs.h. */ |
| 10762 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10763 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10764 | int |
| 10765 | main () |
| 10766 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10767 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10768 | test_array [0] = 0 |
| 10769 | |
| 10770 | ; |
| 10771 | return 0; |
| 10772 | } |
| 10773 | _ACEOF |
| 10774 | rm -f conftest.$ac_objext |
| 10775 | if { (ac_try="$ac_compile" |
| 10776 | case "(($ac_try" in |
| 10777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10778 | *) ac_try_echo=$ac_try;; |
| 10779 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10781 | (eval "$ac_compile") 2>conftest.er1 |
| 10782 | ac_status=$? |
| 10783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10784 | rm -f conftest.er1 |
| 10785 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10787 | (exit $ac_status); } && { |
| 10788 | test -z "$ac_c_werror_flag" || |
| 10789 | test ! -s conftest.err |
| 10790 | } && test -s conftest.$ac_objext; then |
| 10791 | ac_hi=$ac_mid; break |
| 10792 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10793 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10795 | |
| 10796 | ac_lo=`expr $ac_mid + 1` |
| 10797 | if test $ac_lo -le $ac_mid; then |
| 10798 | ac_lo= ac_hi= |
| 10799 | break |
| 10800 | fi |
| 10801 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10802 | fi |
| 10803 | |
| 10804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10805 | done |
| 10806 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10807 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10809 | |
| 10810 | cat >conftest.$ac_ext <<_ACEOF |
| 10811 | /* confdefs.h. */ |
| 10812 | _ACEOF |
| 10813 | cat confdefs.h >>conftest.$ac_ext |
| 10814 | cat >>conftest.$ac_ext <<_ACEOF |
| 10815 | /* end confdefs.h. */ |
| 10816 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10817 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10818 | int |
| 10819 | main () |
| 10820 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10821 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10822 | test_array [0] = 0 |
| 10823 | |
| 10824 | ; |
| 10825 | return 0; |
| 10826 | } |
| 10827 | _ACEOF |
| 10828 | rm -f conftest.$ac_objext |
| 10829 | if { (ac_try="$ac_compile" |
| 10830 | case "(($ac_try" in |
| 10831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10832 | *) ac_try_echo=$ac_try;; |
| 10833 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10835 | (eval "$ac_compile") 2>conftest.er1 |
| 10836 | ac_status=$? |
| 10837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10838 | rm -f conftest.er1 |
| 10839 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10841 | (exit $ac_status); } && { |
| 10842 | test -z "$ac_c_werror_flag" || |
| 10843 | test ! -s conftest.err |
| 10844 | } && test -s conftest.$ac_objext; then |
| 10845 | ac_hi=-1 ac_mid=-1 |
| 10846 | while :; do |
| 10847 | cat >conftest.$ac_ext <<_ACEOF |
| 10848 | /* confdefs.h. */ |
| 10849 | _ACEOF |
| 10850 | cat confdefs.h >>conftest.$ac_ext |
| 10851 | cat >>conftest.$ac_ext <<_ACEOF |
| 10852 | /* end confdefs.h. */ |
| 10853 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10854 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10855 | int |
| 10856 | main () |
| 10857 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10858 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10859 | test_array [0] = 0 |
| 10860 | |
| 10861 | ; |
| 10862 | return 0; |
| 10863 | } |
| 10864 | _ACEOF |
| 10865 | rm -f conftest.$ac_objext |
| 10866 | if { (ac_try="$ac_compile" |
| 10867 | case "(($ac_try" in |
| 10868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10869 | *) ac_try_echo=$ac_try;; |
| 10870 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10872 | (eval "$ac_compile") 2>conftest.er1 |
| 10873 | ac_status=$? |
| 10874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10875 | rm -f conftest.er1 |
| 10876 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10878 | (exit $ac_status); } && { |
| 10879 | test -z "$ac_c_werror_flag" || |
| 10880 | test ! -s conftest.err |
| 10881 | } && test -s conftest.$ac_objext; then |
| 10882 | ac_lo=$ac_mid; break |
| 10883 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10884 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10886 | |
| 10887 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10888 | if test $ac_mid -le $ac_hi; then |
| 10889 | ac_lo= ac_hi= |
| 10890 | break |
| 10891 | fi |
| 10892 | ac_mid=`expr 2 '*' $ac_mid` |
| 10893 | fi |
| 10894 | |
| 10895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10896 | done |
| 10897 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10898 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10900 | |
| 10901 | ac_lo= ac_hi= |
| 10902 | fi |
| 10903 | |
| 10904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10905 | fi |
| 10906 | |
| 10907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10908 | # Binary search between lo and hi bounds. |
| 10909 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10910 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10911 | cat >conftest.$ac_ext <<_ACEOF |
| 10912 | /* confdefs.h. */ |
| 10913 | _ACEOF |
| 10914 | cat confdefs.h >>conftest.$ac_ext |
| 10915 | cat >>conftest.$ac_ext <<_ACEOF |
| 10916 | /* end confdefs.h. */ |
| 10917 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10918 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10919 | int |
| 10920 | main () |
| 10921 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10922 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10923 | test_array [0] = 0 |
| 10924 | |
| 10925 | ; |
| 10926 | return 0; |
| 10927 | } |
| 10928 | _ACEOF |
| 10929 | rm -f conftest.$ac_objext |
| 10930 | if { (ac_try="$ac_compile" |
| 10931 | case "(($ac_try" in |
| 10932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10933 | *) ac_try_echo=$ac_try;; |
| 10934 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10936 | (eval "$ac_compile") 2>conftest.er1 |
| 10937 | ac_status=$? |
| 10938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10939 | rm -f conftest.er1 |
| 10940 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10942 | (exit $ac_status); } && { |
| 10943 | test -z "$ac_c_werror_flag" || |
| 10944 | test ! -s conftest.err |
| 10945 | } && test -s conftest.$ac_objext; then |
| 10946 | ac_hi=$ac_mid |
| 10947 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10948 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10950 | |
| 10951 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10952 | fi |
| 10953 | |
| 10954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10955 | done |
| 10956 | case $ac_lo in |
| 10957 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 10958 | '') if test "$ac_cv_type_pid_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10959 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10960 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10961 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10962 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10963 | { (exit 77); exit 77; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10964 | else |
| 10965 | ac_cv_sizeof_pid_t=0 |
| 10966 | fi ;; |
| 10967 | esac |
| 10968 | else |
| 10969 | cat >conftest.$ac_ext <<_ACEOF |
| 10970 | /* confdefs.h. */ |
| 10971 | _ACEOF |
| 10972 | cat confdefs.h >>conftest.$ac_ext |
| 10973 | cat >>conftest.$ac_ext <<_ACEOF |
| 10974 | /* end confdefs.h. */ |
| 10975 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10976 | typedef pid_t ac__type_sizeof_; |
| 10977 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10978 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10979 | #include <stdio.h> |
| 10980 | #include <stdlib.h> |
| 10981 | int |
| 10982 | main () |
| 10983 | { |
| 10984 | |
| 10985 | FILE *f = fopen ("conftest.val", "w"); |
| 10986 | if (! f) |
| 10987 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10988 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10989 | { |
| 10990 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10991 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10992 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10993 | fprintf (f, "%ld\n", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10994 | } |
| 10995 | else |
| 10996 | { |
| 10997 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 10998 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10999 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11000 | fprintf (f, "%lu\n", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11001 | } |
| 11002 | return ferror (f) || fclose (f) != 0; |
| 11003 | |
| 11004 | ; |
| 11005 | return 0; |
| 11006 | } |
| 11007 | _ACEOF |
| 11008 | rm -f conftest$ac_exeext |
| 11009 | if { (ac_try="$ac_link" |
| 11010 | case "(($ac_try" in |
| 11011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11012 | *) ac_try_echo=$ac_try;; |
| 11013 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11015 | (eval "$ac_link") 2>&5 |
| 11016 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11019 | { (case "(($ac_try" in |
| 11020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11021 | *) ac_try_echo=$ac_try;; |
| 11022 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11024 | (eval "$ac_try") 2>&5 |
| 11025 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11027 | (exit $ac_status); }; }; then |
| 11028 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11029 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11030 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11031 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11033 | |
| 11034 | ( exit $ac_status ) |
| 11035 | if test "$ac_cv_type_pid_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11036 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11037 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11038 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11039 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11040 | { (exit 77); exit 77; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11041 | else |
| 11042 | ac_cv_sizeof_pid_t=0 |
| 11043 | fi |
| 11044 | fi |
| 11045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11046 | fi |
| 11047 | rm -f conftest.val |
| 11048 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11049 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11050 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11051 | |
| 11052 | |
| 11053 | |
| 11054 | cat >>confdefs.h <<_ACEOF |
| 11055 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11056 | _ACEOF |
| 11057 | |
| 11058 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11059 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11060 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11061 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11062 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11063 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11064 | /* confdefs.h. */ |
| 11065 | _ACEOF |
| 11066 | cat confdefs.h >>conftest.$ac_ext |
| 11067 | cat >>conftest.$ac_ext <<_ACEOF |
| 11068 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | int |
| 11071 | main () |
| 11072 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11073 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | ; |
| 11075 | return 0; |
| 11076 | } |
| 11077 | _ACEOF |
| 11078 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11079 | if { (ac_try="$ac_compile" |
| 11080 | case "(($ac_try" in |
| 11081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11082 | *) ac_try_echo=$ac_try;; |
| 11083 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11085 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11088 | rm -f conftest.er1 |
| 11089 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11091 | (exit $ac_status); } && { |
| 11092 | test -z "$ac_c_werror_flag" || |
| 11093 | test ! -s conftest.err |
| 11094 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | |
| 11096 | |
| 11097 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11098 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | _ACEOF |
| 11100 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11101 | have_long_long=yes |
| 11102 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11103 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11106 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11107 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11108 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11109 | |
| 11110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11111 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11112 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11113 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11114 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11115 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11116 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11118 | else |
| 11119 | cat >conftest.$ac_ext <<_ACEOF |
| 11120 | /* confdefs.h. */ |
| 11121 | _ACEOF |
| 11122 | cat confdefs.h >>conftest.$ac_ext |
| 11123 | cat >>conftest.$ac_ext <<_ACEOF |
| 11124 | /* end confdefs.h. */ |
| 11125 | $ac_includes_default |
| 11126 | typedef long long ac__type_new_; |
| 11127 | int |
| 11128 | main () |
| 11129 | { |
| 11130 | if ((ac__type_new_ *) 0) |
| 11131 | return 0; |
| 11132 | if (sizeof (ac__type_new_)) |
| 11133 | return 0; |
| 11134 | ; |
| 11135 | return 0; |
| 11136 | } |
| 11137 | _ACEOF |
| 11138 | rm -f conftest.$ac_objext |
| 11139 | if { (ac_try="$ac_compile" |
| 11140 | case "(($ac_try" in |
| 11141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11142 | *) ac_try_echo=$ac_try;; |
| 11143 | esac |
| 11144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11145 | (eval "$ac_compile") 2>conftest.er1 |
| 11146 | ac_status=$? |
| 11147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11148 | rm -f conftest.er1 |
| 11149 | cat conftest.err >&5 |
| 11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11151 | (exit $ac_status); } && { |
| 11152 | test -z "$ac_c_werror_flag" || |
| 11153 | test ! -s conftest.err |
| 11154 | } && test -s conftest.$ac_objext; then |
| 11155 | ac_cv_type_long_long=yes |
| 11156 | else |
| 11157 | echo "$as_me: failed program was:" >&5 |
| 11158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11159 | |
| 11160 | ac_cv_type_long_long=no |
| 11161 | fi |
| 11162 | |
| 11163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11164 | fi |
| 11165 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11166 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11167 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11168 | # The cast to long int works around a bug in the HP C Compiler |
| 11169 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11170 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11171 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11172 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11173 | 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] | 11174 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | if test "$cross_compiling" = yes; then |
| 11178 | # Depending upon the size, compute the lo and hi bounds. |
| 11179 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11180 | /* confdefs.h. */ |
| 11181 | _ACEOF |
| 11182 | cat confdefs.h >>conftest.$ac_ext |
| 11183 | cat >>conftest.$ac_ext <<_ACEOF |
| 11184 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11186 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | int |
| 11188 | main () |
| 11189 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11190 | 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] | 11191 | test_array [0] = 0 |
| 11192 | |
| 11193 | ; |
| 11194 | return 0; |
| 11195 | } |
| 11196 | _ACEOF |
| 11197 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11198 | if { (ac_try="$ac_compile" |
| 11199 | case "(($ac_try" in |
| 11200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11201 | *) ac_try_echo=$ac_try;; |
| 11202 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11204 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11207 | rm -f conftest.er1 |
| 11208 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11210 | (exit $ac_status); } && { |
| 11211 | test -z "$ac_c_werror_flag" || |
| 11212 | test ! -s conftest.err |
| 11213 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | ac_lo=0 ac_mid=0 |
| 11215 | while :; do |
| 11216 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11217 | /* confdefs.h. */ |
| 11218 | _ACEOF |
| 11219 | cat confdefs.h >>conftest.$ac_ext |
| 11220 | cat >>conftest.$ac_ext <<_ACEOF |
| 11221 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11222 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11223 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | int |
| 11225 | main () |
| 11226 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11227 | 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] | 11228 | test_array [0] = 0 |
| 11229 | |
| 11230 | ; |
| 11231 | return 0; |
| 11232 | } |
| 11233 | _ACEOF |
| 11234 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11235 | if { (ac_try="$ac_compile" |
| 11236 | case "(($ac_try" in |
| 11237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11238 | *) ac_try_echo=$ac_try;; |
| 11239 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11241 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11244 | rm -f conftest.er1 |
| 11245 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11247 | (exit $ac_status); } && { |
| 11248 | test -z "$ac_c_werror_flag" || |
| 11249 | test ! -s conftest.err |
| 11250 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | ac_hi=$ac_mid; break |
| 11252 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11253 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11255 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11256 | ac_lo=`expr $ac_mid + 1` |
| 11257 | if test $ac_lo -le $ac_mid; then |
| 11258 | ac_lo= ac_hi= |
| 11259 | break |
| 11260 | fi |
| 11261 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11263 | |
| 11264 | 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] | 11265 | done |
| 11266 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11269 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11271 | /* confdefs.h. */ |
| 11272 | _ACEOF |
| 11273 | cat confdefs.h >>conftest.$ac_ext |
| 11274 | cat >>conftest.$ac_ext <<_ACEOF |
| 11275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11277 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11278 | int |
| 11279 | main () |
| 11280 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11281 | 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] | 11282 | test_array [0] = 0 |
| 11283 | |
| 11284 | ; |
| 11285 | return 0; |
| 11286 | } |
| 11287 | _ACEOF |
| 11288 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11289 | if { (ac_try="$ac_compile" |
| 11290 | case "(($ac_try" in |
| 11291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11292 | *) ac_try_echo=$ac_try;; |
| 11293 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11295 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11298 | rm -f conftest.er1 |
| 11299 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11301 | (exit $ac_status); } && { |
| 11302 | test -z "$ac_c_werror_flag" || |
| 11303 | test ! -s conftest.err |
| 11304 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | ac_hi=-1 ac_mid=-1 |
| 11306 | while :; do |
| 11307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11308 | /* confdefs.h. */ |
| 11309 | _ACEOF |
| 11310 | cat confdefs.h >>conftest.$ac_ext |
| 11311 | cat >>conftest.$ac_ext <<_ACEOF |
| 11312 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11314 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | int |
| 11316 | main () |
| 11317 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11318 | 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] | 11319 | test_array [0] = 0 |
| 11320 | |
| 11321 | ; |
| 11322 | return 0; |
| 11323 | } |
| 11324 | _ACEOF |
| 11325 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11326 | if { (ac_try="$ac_compile" |
| 11327 | case "(($ac_try" in |
| 11328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11329 | *) ac_try_echo=$ac_try;; |
| 11330 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11332 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11335 | rm -f conftest.er1 |
| 11336 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11338 | (exit $ac_status); } && { |
| 11339 | test -z "$ac_c_werror_flag" || |
| 11340 | test ! -s conftest.err |
| 11341 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | ac_lo=$ac_mid; break |
| 11343 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11347 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11348 | if test $ac_mid -le $ac_hi; then |
| 11349 | ac_lo= ac_hi= |
| 11350 | break |
| 11351 | fi |
| 11352 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11354 | |
| 11355 | 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] | 11356 | done |
| 11357 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11358 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11360 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11361 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11363 | |
| 11364 | 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] | 11365 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11366 | |
| 11367 | 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] | 11368 | # Binary search between lo and hi bounds. |
| 11369 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11370 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11372 | /* confdefs.h. */ |
| 11373 | _ACEOF |
| 11374 | cat confdefs.h >>conftest.$ac_ext |
| 11375 | cat >>conftest.$ac_ext <<_ACEOF |
| 11376 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11378 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | int |
| 11380 | main () |
| 11381 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11382 | 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] | 11383 | test_array [0] = 0 |
| 11384 | |
| 11385 | ; |
| 11386 | return 0; |
| 11387 | } |
| 11388 | _ACEOF |
| 11389 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11390 | if { (ac_try="$ac_compile" |
| 11391 | case "(($ac_try" in |
| 11392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11393 | *) ac_try_echo=$ac_try;; |
| 11394 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11396 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11399 | rm -f conftest.er1 |
| 11400 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11402 | (exit $ac_status); } && { |
| 11403 | test -z "$ac_c_werror_flag" || |
| 11404 | test ! -s conftest.err |
| 11405 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | ac_hi=$ac_mid |
| 11407 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11411 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11413 | |
| 11414 | 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] | 11415 | done |
| 11416 | case $ac_lo in |
| 11417 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11418 | '') if test "$ac_cv_type_long_long" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11419 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11420 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11421 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11422 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11423 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11424 | else |
| 11425 | ac_cv_sizeof_long_long=0 |
| 11426 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11430 | /* confdefs.h. */ |
| 11431 | _ACEOF |
| 11432 | cat confdefs.h >>conftest.$ac_ext |
| 11433 | cat >>conftest.$ac_ext <<_ACEOF |
| 11434 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11436 | typedef long long ac__type_sizeof_; |
| 11437 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11438 | 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] | 11439 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | int |
| 11442 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11443 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | |
| 11445 | FILE *f = fopen ("conftest.val", "w"); |
| 11446 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11447 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11448 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11450 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11451 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11452 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11453 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | } |
| 11455 | else |
| 11456 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11457 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11458 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11459 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11460 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11462 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | |
| 11464 | ; |
| 11465 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11466 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | _ACEOF |
| 11468 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11469 | if { (ac_try="$ac_link" |
| 11470 | case "(($ac_try" in |
| 11471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11472 | *) ac_try_echo=$ac_try;; |
| 11473 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11475 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11479 | { (case "(($ac_try" in |
| 11480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11481 | *) ac_try_echo=$ac_try;; |
| 11482 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11484 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | (exit $ac_status); }; }; then |
| 11488 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11489 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11490 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11495 | if test "$ac_cv_type_long_long" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11496 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11497 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11498 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11499 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11500 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11501 | else |
| 11502 | ac_cv_sizeof_long_long=0 |
| 11503 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11504 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11505 | 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] | 11506 | fi |
| 11507 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11508 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11510 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11511 | |
| 11512 | |
| 11513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11515 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11516 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11517 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11518 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11519 | fi |
| 11520 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11521 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11522 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11523 | have_long_double=no |
| 11524 | cat >conftest.$ac_ext <<_ACEOF |
| 11525 | /* confdefs.h. */ |
| 11526 | _ACEOF |
| 11527 | cat confdefs.h >>conftest.$ac_ext |
| 11528 | cat >>conftest.$ac_ext <<_ACEOF |
| 11529 | /* end confdefs.h. */ |
| 11530 | |
| 11531 | int |
| 11532 | main () |
| 11533 | { |
| 11534 | long double x; x = (long double)0; |
| 11535 | ; |
| 11536 | return 0; |
| 11537 | } |
| 11538 | _ACEOF |
| 11539 | rm -f conftest.$ac_objext |
| 11540 | if { (ac_try="$ac_compile" |
| 11541 | case "(($ac_try" in |
| 11542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11543 | *) ac_try_echo=$ac_try;; |
| 11544 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11546 | (eval "$ac_compile") 2>conftest.er1 |
| 11547 | ac_status=$? |
| 11548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11549 | rm -f conftest.er1 |
| 11550 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11552 | (exit $ac_status); } && { |
| 11553 | test -z "$ac_c_werror_flag" || |
| 11554 | test ! -s conftest.err |
| 11555 | } && test -s conftest.$ac_objext; then |
| 11556 | |
| 11557 | |
| 11558 | cat >>confdefs.h <<\_ACEOF |
| 11559 | #define HAVE_LONG_DOUBLE 1 |
| 11560 | _ACEOF |
| 11561 | |
| 11562 | have_long_double=yes |
| 11563 | |
| 11564 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11565 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11567 | |
| 11568 | |
| 11569 | fi |
| 11570 | |
| 11571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11572 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11573 | echo "${ECHO_T}$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11574 | if test "$have_long_double" = yes ; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11575 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11576 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11577 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11579 | else |
| 11580 | cat >conftest.$ac_ext <<_ACEOF |
| 11581 | /* confdefs.h. */ |
| 11582 | _ACEOF |
| 11583 | cat confdefs.h >>conftest.$ac_ext |
| 11584 | cat >>conftest.$ac_ext <<_ACEOF |
| 11585 | /* end confdefs.h. */ |
| 11586 | $ac_includes_default |
| 11587 | typedef long double ac__type_new_; |
| 11588 | int |
| 11589 | main () |
| 11590 | { |
| 11591 | if ((ac__type_new_ *) 0) |
| 11592 | return 0; |
| 11593 | if (sizeof (ac__type_new_)) |
| 11594 | return 0; |
| 11595 | ; |
| 11596 | return 0; |
| 11597 | } |
| 11598 | _ACEOF |
| 11599 | rm -f conftest.$ac_objext |
| 11600 | if { (ac_try="$ac_compile" |
| 11601 | case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
| 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11606 | (eval "$ac_compile") 2>conftest.er1 |
| 11607 | ac_status=$? |
| 11608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11609 | rm -f conftest.er1 |
| 11610 | cat conftest.err >&5 |
| 11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11612 | (exit $ac_status); } && { |
| 11613 | test -z "$ac_c_werror_flag" || |
| 11614 | test ! -s conftest.err |
| 11615 | } && test -s conftest.$ac_objext; then |
| 11616 | ac_cv_type_long_double=yes |
| 11617 | else |
| 11618 | echo "$as_me: failed program was:" >&5 |
| 11619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11620 | |
| 11621 | ac_cv_type_long_double=no |
| 11622 | fi |
| 11623 | |
| 11624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11625 | fi |
| 11626 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11627 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11628 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11629 | # The cast to long int works around a bug in the HP C Compiler |
| 11630 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11631 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11632 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11633 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11634 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11635 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11637 | else |
| 11638 | if test "$cross_compiling" = yes; then |
| 11639 | # Depending upon the size, compute the lo and hi bounds. |
| 11640 | cat >conftest.$ac_ext <<_ACEOF |
| 11641 | /* confdefs.h. */ |
| 11642 | _ACEOF |
| 11643 | cat confdefs.h >>conftest.$ac_ext |
| 11644 | cat >>conftest.$ac_ext <<_ACEOF |
| 11645 | /* end confdefs.h. */ |
| 11646 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11647 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11648 | int |
| 11649 | main () |
| 11650 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11651 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11652 | test_array [0] = 0 |
| 11653 | |
| 11654 | ; |
| 11655 | return 0; |
| 11656 | } |
| 11657 | _ACEOF |
| 11658 | rm -f conftest.$ac_objext |
| 11659 | if { (ac_try="$ac_compile" |
| 11660 | case "(($ac_try" in |
| 11661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11662 | *) ac_try_echo=$ac_try;; |
| 11663 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11665 | (eval "$ac_compile") 2>conftest.er1 |
| 11666 | ac_status=$? |
| 11667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11668 | rm -f conftest.er1 |
| 11669 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11671 | (exit $ac_status); } && { |
| 11672 | test -z "$ac_c_werror_flag" || |
| 11673 | test ! -s conftest.err |
| 11674 | } && test -s conftest.$ac_objext; then |
| 11675 | ac_lo=0 ac_mid=0 |
| 11676 | while :; do |
| 11677 | cat >conftest.$ac_ext <<_ACEOF |
| 11678 | /* confdefs.h. */ |
| 11679 | _ACEOF |
| 11680 | cat confdefs.h >>conftest.$ac_ext |
| 11681 | cat >>conftest.$ac_ext <<_ACEOF |
| 11682 | /* end confdefs.h. */ |
| 11683 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11684 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11685 | int |
| 11686 | main () |
| 11687 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11688 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11689 | test_array [0] = 0 |
| 11690 | |
| 11691 | ; |
| 11692 | return 0; |
| 11693 | } |
| 11694 | _ACEOF |
| 11695 | rm -f conftest.$ac_objext |
| 11696 | if { (ac_try="$ac_compile" |
| 11697 | case "(($ac_try" in |
| 11698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11699 | *) ac_try_echo=$ac_try;; |
| 11700 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11702 | (eval "$ac_compile") 2>conftest.er1 |
| 11703 | ac_status=$? |
| 11704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11705 | rm -f conftest.er1 |
| 11706 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11708 | (exit $ac_status); } && { |
| 11709 | test -z "$ac_c_werror_flag" || |
| 11710 | test ! -s conftest.err |
| 11711 | } && test -s conftest.$ac_objext; then |
| 11712 | ac_hi=$ac_mid; break |
| 11713 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11714 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11716 | |
| 11717 | ac_lo=`expr $ac_mid + 1` |
| 11718 | if test $ac_lo -le $ac_mid; then |
| 11719 | ac_lo= ac_hi= |
| 11720 | break |
| 11721 | fi |
| 11722 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11723 | fi |
| 11724 | |
| 11725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11726 | done |
| 11727 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11728 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11730 | |
| 11731 | cat >conftest.$ac_ext <<_ACEOF |
| 11732 | /* confdefs.h. */ |
| 11733 | _ACEOF |
| 11734 | cat confdefs.h >>conftest.$ac_ext |
| 11735 | cat >>conftest.$ac_ext <<_ACEOF |
| 11736 | /* end confdefs.h. */ |
| 11737 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11738 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11739 | int |
| 11740 | main () |
| 11741 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11742 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11743 | test_array [0] = 0 |
| 11744 | |
| 11745 | ; |
| 11746 | return 0; |
| 11747 | } |
| 11748 | _ACEOF |
| 11749 | rm -f conftest.$ac_objext |
| 11750 | if { (ac_try="$ac_compile" |
| 11751 | case "(($ac_try" in |
| 11752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11753 | *) ac_try_echo=$ac_try;; |
| 11754 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11756 | (eval "$ac_compile") 2>conftest.er1 |
| 11757 | ac_status=$? |
| 11758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11759 | rm -f conftest.er1 |
| 11760 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11762 | (exit $ac_status); } && { |
| 11763 | test -z "$ac_c_werror_flag" || |
| 11764 | test ! -s conftest.err |
| 11765 | } && test -s conftest.$ac_objext; then |
| 11766 | ac_hi=-1 ac_mid=-1 |
| 11767 | while :; do |
| 11768 | cat >conftest.$ac_ext <<_ACEOF |
| 11769 | /* confdefs.h. */ |
| 11770 | _ACEOF |
| 11771 | cat confdefs.h >>conftest.$ac_ext |
| 11772 | cat >>conftest.$ac_ext <<_ACEOF |
| 11773 | /* end confdefs.h. */ |
| 11774 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11775 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11776 | int |
| 11777 | main () |
| 11778 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11779 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11780 | test_array [0] = 0 |
| 11781 | |
| 11782 | ; |
| 11783 | return 0; |
| 11784 | } |
| 11785 | _ACEOF |
| 11786 | rm -f conftest.$ac_objext |
| 11787 | if { (ac_try="$ac_compile" |
| 11788 | case "(($ac_try" in |
| 11789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11790 | *) ac_try_echo=$ac_try;; |
| 11791 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11793 | (eval "$ac_compile") 2>conftest.er1 |
| 11794 | ac_status=$? |
| 11795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11796 | rm -f conftest.er1 |
| 11797 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11799 | (exit $ac_status); } && { |
| 11800 | test -z "$ac_c_werror_flag" || |
| 11801 | test ! -s conftest.err |
| 11802 | } && test -s conftest.$ac_objext; then |
| 11803 | ac_lo=$ac_mid; break |
| 11804 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11805 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11807 | |
| 11808 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11809 | if test $ac_mid -le $ac_hi; then |
| 11810 | ac_lo= ac_hi= |
| 11811 | break |
| 11812 | fi |
| 11813 | ac_mid=`expr 2 '*' $ac_mid` |
| 11814 | fi |
| 11815 | |
| 11816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11817 | done |
| 11818 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11819 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11821 | |
| 11822 | ac_lo= ac_hi= |
| 11823 | fi |
| 11824 | |
| 11825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11826 | fi |
| 11827 | |
| 11828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11829 | # Binary search between lo and hi bounds. |
| 11830 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11831 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11832 | cat >conftest.$ac_ext <<_ACEOF |
| 11833 | /* confdefs.h. */ |
| 11834 | _ACEOF |
| 11835 | cat confdefs.h >>conftest.$ac_ext |
| 11836 | cat >>conftest.$ac_ext <<_ACEOF |
| 11837 | /* end confdefs.h. */ |
| 11838 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11839 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11840 | int |
| 11841 | main () |
| 11842 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11843 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11844 | test_array [0] = 0 |
| 11845 | |
| 11846 | ; |
| 11847 | return 0; |
| 11848 | } |
| 11849 | _ACEOF |
| 11850 | rm -f conftest.$ac_objext |
| 11851 | if { (ac_try="$ac_compile" |
| 11852 | case "(($ac_try" in |
| 11853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11854 | *) ac_try_echo=$ac_try;; |
| 11855 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11857 | (eval "$ac_compile") 2>conftest.er1 |
| 11858 | ac_status=$? |
| 11859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11860 | rm -f conftest.er1 |
| 11861 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11863 | (exit $ac_status); } && { |
| 11864 | test -z "$ac_c_werror_flag" || |
| 11865 | test ! -s conftest.err |
| 11866 | } && test -s conftest.$ac_objext; then |
| 11867 | ac_hi=$ac_mid |
| 11868 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11869 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11871 | |
| 11872 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11873 | fi |
| 11874 | |
| 11875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11876 | done |
| 11877 | case $ac_lo in |
| 11878 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11879 | '') if test "$ac_cv_type_long_double" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11880 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11881 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11882 | echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11883 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11884 | { (exit 77); exit 77; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11885 | else |
| 11886 | ac_cv_sizeof_long_double=0 |
| 11887 | fi ;; |
| 11888 | esac |
| 11889 | else |
| 11890 | cat >conftest.$ac_ext <<_ACEOF |
| 11891 | /* confdefs.h. */ |
| 11892 | _ACEOF |
| 11893 | cat confdefs.h >>conftest.$ac_ext |
| 11894 | cat >>conftest.$ac_ext <<_ACEOF |
| 11895 | /* end confdefs.h. */ |
| 11896 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11897 | typedef long double ac__type_sizeof_; |
| 11898 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11899 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11900 | #include <stdio.h> |
| 11901 | #include <stdlib.h> |
| 11902 | int |
| 11903 | main () |
| 11904 | { |
| 11905 | |
| 11906 | FILE *f = fopen ("conftest.val", "w"); |
| 11907 | if (! f) |
| 11908 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11909 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11910 | { |
| 11911 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11912 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11913 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11914 | fprintf (f, "%ld\n", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11915 | } |
| 11916 | else |
| 11917 | { |
| 11918 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11919 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11920 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11921 | fprintf (f, "%lu\n", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11922 | } |
| 11923 | return ferror (f) || fclose (f) != 0; |
| 11924 | |
| 11925 | ; |
| 11926 | return 0; |
| 11927 | } |
| 11928 | _ACEOF |
| 11929 | rm -f conftest$ac_exeext |
| 11930 | if { (ac_try="$ac_link" |
| 11931 | case "(($ac_try" in |
| 11932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11933 | *) ac_try_echo=$ac_try;; |
| 11934 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11936 | (eval "$ac_link") 2>&5 |
| 11937 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11940 | { (case "(($ac_try" in |
| 11941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11942 | *) ac_try_echo=$ac_try;; |
| 11943 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11945 | (eval "$ac_try") 2>&5 |
| 11946 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11948 | (exit $ac_status); }; }; then |
| 11949 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 11950 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11951 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11952 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11954 | |
| 11955 | ( exit $ac_status ) |
| 11956 | if test "$ac_cv_type_long_double" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11957 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11958 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11959 | echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11960 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11961 | { (exit 77); exit 77; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11962 | else |
| 11963 | ac_cv_sizeof_long_double=0 |
| 11964 | fi |
| 11965 | fi |
| 11966 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11967 | fi |
| 11968 | rm -f conftest.val |
| 11969 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11970 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 11971 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11972 | |
| 11973 | |
| 11974 | |
| 11975 | cat >>confdefs.h <<_ACEOF |
| 11976 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 11977 | _ACEOF |
| 11978 | |
| 11979 | |
| 11980 | fi |
| 11981 | |
| 11982 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 11983 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 11984 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11985 | have_c99_bool=no |
| 11986 | cat >conftest.$ac_ext <<_ACEOF |
| 11987 | /* confdefs.h. */ |
| 11988 | _ACEOF |
| 11989 | cat confdefs.h >>conftest.$ac_ext |
| 11990 | cat >>conftest.$ac_ext <<_ACEOF |
| 11991 | /* end confdefs.h. */ |
| 11992 | |
| 11993 | int |
| 11994 | main () |
| 11995 | { |
| 11996 | _Bool x; x = (_Bool)0; |
| 11997 | ; |
| 11998 | return 0; |
| 11999 | } |
| 12000 | _ACEOF |
| 12001 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12002 | if { (ac_try="$ac_compile" |
| 12003 | case "(($ac_try" in |
| 12004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12005 | *) ac_try_echo=$ac_try;; |
| 12006 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12008 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12009 | ac_status=$? |
| 12010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12011 | rm -f conftest.er1 |
| 12012 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12014 | (exit $ac_status); } && { |
| 12015 | test -z "$ac_c_werror_flag" || |
| 12016 | test ! -s conftest.err |
| 12017 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12018 | |
| 12019 | |
| 12020 | cat >>confdefs.h <<\_ACEOF |
| 12021 | #define HAVE_C99_BOOL 1 |
| 12022 | _ACEOF |
| 12023 | |
| 12024 | have_c99_bool=yes |
| 12025 | |
| 12026 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12027 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12029 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12030 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12032 | |
| 12033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12034 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12035 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12036 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12037 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12038 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12039 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12041 | else |
| 12042 | cat >conftest.$ac_ext <<_ACEOF |
| 12043 | /* confdefs.h. */ |
| 12044 | _ACEOF |
| 12045 | cat confdefs.h >>conftest.$ac_ext |
| 12046 | cat >>conftest.$ac_ext <<_ACEOF |
| 12047 | /* end confdefs.h. */ |
| 12048 | $ac_includes_default |
| 12049 | typedef _Bool ac__type_new_; |
| 12050 | int |
| 12051 | main () |
| 12052 | { |
| 12053 | if ((ac__type_new_ *) 0) |
| 12054 | return 0; |
| 12055 | if (sizeof (ac__type_new_)) |
| 12056 | return 0; |
| 12057 | ; |
| 12058 | return 0; |
| 12059 | } |
| 12060 | _ACEOF |
| 12061 | rm -f conftest.$ac_objext |
| 12062 | if { (ac_try="$ac_compile" |
| 12063 | case "(($ac_try" in |
| 12064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12065 | *) ac_try_echo=$ac_try;; |
| 12066 | esac |
| 12067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12068 | (eval "$ac_compile") 2>conftest.er1 |
| 12069 | ac_status=$? |
| 12070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12071 | rm -f conftest.er1 |
| 12072 | cat conftest.err >&5 |
| 12073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12074 | (exit $ac_status); } && { |
| 12075 | test -z "$ac_c_werror_flag" || |
| 12076 | test ! -s conftest.err |
| 12077 | } && test -s conftest.$ac_objext; then |
| 12078 | ac_cv_type__Bool=yes |
| 12079 | else |
| 12080 | echo "$as_me: failed program was:" >&5 |
| 12081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12082 | |
| 12083 | ac_cv_type__Bool=no |
| 12084 | fi |
| 12085 | |
| 12086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12087 | fi |
| 12088 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12089 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12091 | # The cast to long int works around a bug in the HP C Compiler |
| 12092 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12093 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12094 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12095 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12096 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12097 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12099 | else |
| 12100 | if test "$cross_compiling" = yes; then |
| 12101 | # Depending upon the size, compute the lo and hi bounds. |
| 12102 | cat >conftest.$ac_ext <<_ACEOF |
| 12103 | /* confdefs.h. */ |
| 12104 | _ACEOF |
| 12105 | cat confdefs.h >>conftest.$ac_ext |
| 12106 | cat >>conftest.$ac_ext <<_ACEOF |
| 12107 | /* end confdefs.h. */ |
| 12108 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12109 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12110 | int |
| 12111 | main () |
| 12112 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12113 | 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] | 12114 | test_array [0] = 0 |
| 12115 | |
| 12116 | ; |
| 12117 | return 0; |
| 12118 | } |
| 12119 | _ACEOF |
| 12120 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12121 | if { (ac_try="$ac_compile" |
| 12122 | case "(($ac_try" in |
| 12123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12124 | *) ac_try_echo=$ac_try;; |
| 12125 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12127 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12128 | ac_status=$? |
| 12129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12130 | rm -f conftest.er1 |
| 12131 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12133 | (exit $ac_status); } && { |
| 12134 | test -z "$ac_c_werror_flag" || |
| 12135 | test ! -s conftest.err |
| 12136 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12137 | ac_lo=0 ac_mid=0 |
| 12138 | while :; do |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12146 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12147 | int |
| 12148 | main () |
| 12149 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12150 | 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] | 12151 | test_array [0] = 0 |
| 12152 | |
| 12153 | ; |
| 12154 | return 0; |
| 12155 | } |
| 12156 | _ACEOF |
| 12157 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12158 | if { (ac_try="$ac_compile" |
| 12159 | case "(($ac_try" in |
| 12160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12161 | *) ac_try_echo=$ac_try;; |
| 12162 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12164 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12165 | ac_status=$? |
| 12166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12167 | rm -f conftest.er1 |
| 12168 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12170 | (exit $ac_status); } && { |
| 12171 | test -z "$ac_c_werror_flag" || |
| 12172 | test ! -s conftest.err |
| 12173 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12174 | ac_hi=$ac_mid; break |
| 12175 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12176 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12178 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12179 | ac_lo=`expr $ac_mid + 1` |
| 12180 | if test $ac_lo -le $ac_mid; then |
| 12181 | ac_lo= ac_hi= |
| 12182 | break |
| 12183 | fi |
| 12184 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12185 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12186 | |
| 12187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12188 | done |
| 12189 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12190 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12192 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12193 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12194 | /* confdefs.h. */ |
| 12195 | _ACEOF |
| 12196 | cat confdefs.h >>conftest.$ac_ext |
| 12197 | cat >>conftest.$ac_ext <<_ACEOF |
| 12198 | /* end confdefs.h. */ |
| 12199 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12200 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12201 | int |
| 12202 | main () |
| 12203 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12204 | 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] | 12205 | test_array [0] = 0 |
| 12206 | |
| 12207 | ; |
| 12208 | return 0; |
| 12209 | } |
| 12210 | _ACEOF |
| 12211 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12212 | if { (ac_try="$ac_compile" |
| 12213 | case "(($ac_try" in |
| 12214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12215 | *) ac_try_echo=$ac_try;; |
| 12216 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12218 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12219 | ac_status=$? |
| 12220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12221 | rm -f conftest.er1 |
| 12222 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12224 | (exit $ac_status); } && { |
| 12225 | test -z "$ac_c_werror_flag" || |
| 12226 | test ! -s conftest.err |
| 12227 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12228 | ac_hi=-1 ac_mid=-1 |
| 12229 | while :; do |
| 12230 | cat >conftest.$ac_ext <<_ACEOF |
| 12231 | /* confdefs.h. */ |
| 12232 | _ACEOF |
| 12233 | cat confdefs.h >>conftest.$ac_ext |
| 12234 | cat >>conftest.$ac_ext <<_ACEOF |
| 12235 | /* end confdefs.h. */ |
| 12236 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12237 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12238 | int |
| 12239 | main () |
| 12240 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12241 | 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] | 12242 | test_array [0] = 0 |
| 12243 | |
| 12244 | ; |
| 12245 | return 0; |
| 12246 | } |
| 12247 | _ACEOF |
| 12248 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12249 | if { (ac_try="$ac_compile" |
| 12250 | case "(($ac_try" in |
| 12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12252 | *) ac_try_echo=$ac_try;; |
| 12253 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12255 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12256 | ac_status=$? |
| 12257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12258 | rm -f conftest.er1 |
| 12259 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12261 | (exit $ac_status); } && { |
| 12262 | test -z "$ac_c_werror_flag" || |
| 12263 | test ! -s conftest.err |
| 12264 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12265 | ac_lo=$ac_mid; break |
| 12266 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12267 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12269 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12270 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12271 | if test $ac_mid -le $ac_hi; then |
| 12272 | ac_lo= ac_hi= |
| 12273 | break |
| 12274 | fi |
| 12275 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12276 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12277 | |
| 12278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12279 | done |
| 12280 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12281 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12283 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12284 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12285 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12286 | |
| 12287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12289 | |
| 12290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12291 | # Binary search between lo and hi bounds. |
| 12292 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12293 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12294 | cat >conftest.$ac_ext <<_ACEOF |
| 12295 | /* confdefs.h. */ |
| 12296 | _ACEOF |
| 12297 | cat confdefs.h >>conftest.$ac_ext |
| 12298 | cat >>conftest.$ac_ext <<_ACEOF |
| 12299 | /* end confdefs.h. */ |
| 12300 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12301 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12302 | int |
| 12303 | main () |
| 12304 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12305 | 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] | 12306 | test_array [0] = 0 |
| 12307 | |
| 12308 | ; |
| 12309 | return 0; |
| 12310 | } |
| 12311 | _ACEOF |
| 12312 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12313 | if { (ac_try="$ac_compile" |
| 12314 | case "(($ac_try" in |
| 12315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12316 | *) ac_try_echo=$ac_try;; |
| 12317 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12319 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12320 | ac_status=$? |
| 12321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12322 | rm -f conftest.er1 |
| 12323 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12325 | (exit $ac_status); } && { |
| 12326 | test -z "$ac_c_werror_flag" || |
| 12327 | test ! -s conftest.err |
| 12328 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12329 | ac_hi=$ac_mid |
| 12330 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12331 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12333 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12334 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12335 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12336 | |
| 12337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12338 | done |
| 12339 | case $ac_lo in |
| 12340 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12341 | '') if test "$ac_cv_type__Bool" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12342 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12343 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12344 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12345 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12346 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12347 | else |
| 12348 | ac_cv_sizeof__Bool=0 |
| 12349 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12350 | esac |
| 12351 | else |
| 12352 | cat >conftest.$ac_ext <<_ACEOF |
| 12353 | /* confdefs.h. */ |
| 12354 | _ACEOF |
| 12355 | cat confdefs.h >>conftest.$ac_ext |
| 12356 | cat >>conftest.$ac_ext <<_ACEOF |
| 12357 | /* end confdefs.h. */ |
| 12358 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12359 | typedef _Bool ac__type_sizeof_; |
| 12360 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12361 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12362 | #include <stdio.h> |
| 12363 | #include <stdlib.h> |
| 12364 | int |
| 12365 | main () |
| 12366 | { |
| 12367 | |
| 12368 | FILE *f = fopen ("conftest.val", "w"); |
| 12369 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12370 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12371 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12372 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12373 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12374 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12375 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12376 | fprintf (f, "%ld\n", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12377 | } |
| 12378 | else |
| 12379 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12380 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12381 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12382 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12383 | fprintf (f, "%lu\n", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12384 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12385 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12386 | |
| 12387 | ; |
| 12388 | return 0; |
| 12389 | } |
| 12390 | _ACEOF |
| 12391 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12392 | if { (ac_try="$ac_link" |
| 12393 | case "(($ac_try" in |
| 12394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12395 | *) ac_try_echo=$ac_try;; |
| 12396 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12398 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12399 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12402 | { (case "(($ac_try" in |
| 12403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12404 | *) ac_try_echo=$ac_try;; |
| 12405 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12407 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12408 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12410 | (exit $ac_status); }; }; then |
| 12411 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12412 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12414 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12416 | |
| 12417 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12418 | if test "$ac_cv_type__Bool" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12419 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12420 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12421 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12422 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12423 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12424 | else |
| 12425 | ac_cv_sizeof__Bool=0 |
| 12426 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12427 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12428 | 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] | 12429 | fi |
| 12430 | rm -f conftest.val |
| 12431 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12432 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12433 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12434 | |
| 12435 | |
| 12436 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12437 | cat >>confdefs.h <<_ACEOF |
| 12438 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12439 | _ACEOF |
| 12440 | |
| 12441 | |
| 12442 | fi |
| 12443 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12444 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12445 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12446 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12448 | else |
| 12449 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12450 | /* confdefs.h. */ |
| 12451 | _ACEOF |
| 12452 | cat confdefs.h >>conftest.$ac_ext |
| 12453 | cat >>conftest.$ac_ext <<_ACEOF |
| 12454 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12455 | #ifdef HAVE_STDINT_H |
| 12456 | #include <stdint.h> |
| 12457 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12458 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12459 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | int |
| 12461 | main () |
| 12462 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12463 | if ((ac__type_new_ *) 0) |
| 12464 | return 0; |
| 12465 | if (sizeof (ac__type_new_)) |
| 12466 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12467 | ; |
| 12468 | return 0; |
| 12469 | } |
| 12470 | _ACEOF |
| 12471 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12472 | if { (ac_try="$ac_compile" |
| 12473 | case "(($ac_try" in |
| 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12475 | *) ac_try_echo=$ac_try;; |
| 12476 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12481 | rm -f conftest.er1 |
| 12482 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12484 | (exit $ac_status); } && { |
| 12485 | test -z "$ac_c_werror_flag" || |
| 12486 | test ! -s conftest.err |
| 12487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12488 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12489 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12492 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12493 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12494 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12495 | |
| 12496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12497 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12498 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12499 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12500 | if test $ac_cv_type_uintptr_t = yes; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12501 | |
| 12502 | cat >>confdefs.h <<_ACEOF |
| 12503 | #define HAVE_UINTPTR_T 1 |
| 12504 | _ACEOF |
| 12505 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12506 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12507 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12508 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12510 | else |
| 12511 | cat >conftest.$ac_ext <<_ACEOF |
| 12512 | /* confdefs.h. */ |
| 12513 | _ACEOF |
| 12514 | cat confdefs.h >>conftest.$ac_ext |
| 12515 | cat >>conftest.$ac_ext <<_ACEOF |
| 12516 | /* end confdefs.h. */ |
| 12517 | $ac_includes_default |
| 12518 | typedef uintptr_t ac__type_new_; |
| 12519 | int |
| 12520 | main () |
| 12521 | { |
| 12522 | if ((ac__type_new_ *) 0) |
| 12523 | return 0; |
| 12524 | if (sizeof (ac__type_new_)) |
| 12525 | return 0; |
| 12526 | ; |
| 12527 | return 0; |
| 12528 | } |
| 12529 | _ACEOF |
| 12530 | rm -f conftest.$ac_objext |
| 12531 | if { (ac_try="$ac_compile" |
| 12532 | case "(($ac_try" in |
| 12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12534 | *) ac_try_echo=$ac_try;; |
| 12535 | esac |
| 12536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12537 | (eval "$ac_compile") 2>conftest.er1 |
| 12538 | ac_status=$? |
| 12539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12540 | rm -f conftest.er1 |
| 12541 | cat conftest.err >&5 |
| 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12543 | (exit $ac_status); } && { |
| 12544 | test -z "$ac_c_werror_flag" || |
| 12545 | test ! -s conftest.err |
| 12546 | } && test -s conftest.$ac_objext; then |
| 12547 | ac_cv_type_uintptr_t=yes |
| 12548 | else |
| 12549 | echo "$as_me: failed program was:" >&5 |
| 12550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12551 | |
| 12552 | ac_cv_type_uintptr_t=no |
| 12553 | fi |
| 12554 | |
| 12555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12556 | fi |
| 12557 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12558 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12559 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12560 | # The cast to long int works around a bug in the HP C Compiler |
| 12561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12563 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12564 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12565 | 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] | 12566 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 | if test "$cross_compiling" = yes; then |
| 12570 | # Depending upon the size, compute the lo and hi bounds. |
| 12571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12572 | /* confdefs.h. */ |
| 12573 | _ACEOF |
| 12574 | cat confdefs.h >>conftest.$ac_ext |
| 12575 | cat >>conftest.$ac_ext <<_ACEOF |
| 12576 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12578 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | int |
| 12580 | main () |
| 12581 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12582 | 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] | 12583 | test_array [0] = 0 |
| 12584 | |
| 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
| 12589 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12590 | if { (ac_try="$ac_compile" |
| 12591 | case "(($ac_try" in |
| 12592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12593 | *) ac_try_echo=$ac_try;; |
| 12594 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12596 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12599 | rm -f conftest.er1 |
| 12600 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12602 | (exit $ac_status); } && { |
| 12603 | test -z "$ac_c_werror_flag" || |
| 12604 | test ! -s conftest.err |
| 12605 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | ac_lo=0 ac_mid=0 |
| 12607 | while :; do |
| 12608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12609 | /* confdefs.h. */ |
| 12610 | _ACEOF |
| 12611 | cat confdefs.h >>conftest.$ac_ext |
| 12612 | cat >>conftest.$ac_ext <<_ACEOF |
| 12613 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12615 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | int |
| 12617 | main () |
| 12618 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12619 | 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] | 12620 | test_array [0] = 0 |
| 12621 | |
| 12622 | ; |
| 12623 | return 0; |
| 12624 | } |
| 12625 | _ACEOF |
| 12626 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12627 | if { (ac_try="$ac_compile" |
| 12628 | case "(($ac_try" in |
| 12629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12630 | *) ac_try_echo=$ac_try;; |
| 12631 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12633 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12636 | rm -f conftest.er1 |
| 12637 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12639 | (exit $ac_status); } && { |
| 12640 | test -z "$ac_c_werror_flag" || |
| 12641 | test ! -s conftest.err |
| 12642 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12643 | ac_hi=$ac_mid; break |
| 12644 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12645 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12647 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12648 | ac_lo=`expr $ac_mid + 1` |
| 12649 | if test $ac_lo -le $ac_mid; then |
| 12650 | ac_lo= ac_hi= |
| 12651 | break |
| 12652 | fi |
| 12653 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12654 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12655 | |
| 12656 | 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] | 12657 | done |
| 12658 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12663 | /* confdefs.h. */ |
| 12664 | _ACEOF |
| 12665 | cat confdefs.h >>conftest.$ac_ext |
| 12666 | cat >>conftest.$ac_ext <<_ACEOF |
| 12667 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12669 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | int |
| 12671 | main () |
| 12672 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12673 | 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] | 12674 | test_array [0] = 0 |
| 12675 | |
| 12676 | ; |
| 12677 | return 0; |
| 12678 | } |
| 12679 | _ACEOF |
| 12680 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12681 | if { (ac_try="$ac_compile" |
| 12682 | case "(($ac_try" in |
| 12683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12684 | *) ac_try_echo=$ac_try;; |
| 12685 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12687 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12690 | rm -f conftest.er1 |
| 12691 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12693 | (exit $ac_status); } && { |
| 12694 | test -z "$ac_c_werror_flag" || |
| 12695 | test ! -s conftest.err |
| 12696 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12697 | ac_hi=-1 ac_mid=-1 |
| 12698 | while :; do |
| 12699 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12700 | /* confdefs.h. */ |
| 12701 | _ACEOF |
| 12702 | cat confdefs.h >>conftest.$ac_ext |
| 12703 | cat >>conftest.$ac_ext <<_ACEOF |
| 12704 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12705 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12706 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | int |
| 12708 | main () |
| 12709 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12710 | 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] | 12711 | test_array [0] = 0 |
| 12712 | |
| 12713 | ; |
| 12714 | return 0; |
| 12715 | } |
| 12716 | _ACEOF |
| 12717 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12718 | if { (ac_try="$ac_compile" |
| 12719 | case "(($ac_try" in |
| 12720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12721 | *) ac_try_echo=$ac_try;; |
| 12722 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12724 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12727 | rm -f conftest.er1 |
| 12728 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12730 | (exit $ac_status); } && { |
| 12731 | test -z "$ac_c_werror_flag" || |
| 12732 | test ! -s conftest.err |
| 12733 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | ac_lo=$ac_mid; break |
| 12735 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12738 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12739 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12740 | if test $ac_mid -le $ac_hi; then |
| 12741 | ac_lo= ac_hi= |
| 12742 | break |
| 12743 | fi |
| 12744 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12746 | |
| 12747 | 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] | 12748 | done |
| 12749 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12752 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12753 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12755 | |
| 12756 | 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] | 12757 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12758 | |
| 12759 | 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] | 12760 | # Binary search between lo and hi bounds. |
| 12761 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12762 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12764 | /* confdefs.h. */ |
| 12765 | _ACEOF |
| 12766 | cat confdefs.h >>conftest.$ac_ext |
| 12767 | cat >>conftest.$ac_ext <<_ACEOF |
| 12768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12770 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | int |
| 12772 | main () |
| 12773 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12774 | 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] | 12775 | test_array [0] = 0 |
| 12776 | |
| 12777 | ; |
| 12778 | return 0; |
| 12779 | } |
| 12780 | _ACEOF |
| 12781 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12782 | if { (ac_try="$ac_compile" |
| 12783 | case "(($ac_try" in |
| 12784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12785 | *) ac_try_echo=$ac_try;; |
| 12786 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12788 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12791 | rm -f conftest.er1 |
| 12792 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12794 | (exit $ac_status); } && { |
| 12795 | test -z "$ac_c_werror_flag" || |
| 12796 | test ! -s conftest.err |
| 12797 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | ac_hi=$ac_mid |
| 12799 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12800 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12802 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12803 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12805 | |
| 12806 | 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] | 12807 | done |
| 12808 | case $ac_lo in |
| 12809 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12810 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12811 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12812 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12813 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12814 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12815 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12816 | else |
| 12817 | ac_cv_sizeof_uintptr_t=0 |
| 12818 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12819 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12822 | /* confdefs.h. */ |
| 12823 | _ACEOF |
| 12824 | cat confdefs.h >>conftest.$ac_ext |
| 12825 | cat >>conftest.$ac_ext <<_ACEOF |
| 12826 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | $ac_includes_default |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12828 | typedef uintptr_t ac__type_sizeof_; |
| 12829 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12830 | 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] | 12831 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | int |
| 12834 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12835 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | |
| 12837 | FILE *f = fopen ("conftest.val", "w"); |
| 12838 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12839 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12840 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12842 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12843 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12844 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12845 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | } |
| 12847 | else |
| 12848 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12849 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12850 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12851 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12852 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12854 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | |
| 12856 | ; |
| 12857 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12858 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | _ACEOF |
| 12860 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12861 | if { (ac_try="$ac_link" |
| 12862 | case "(($ac_try" in |
| 12863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12864 | *) ac_try_echo=$ac_try;; |
| 12865 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12867 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12868 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12871 | { (case "(($ac_try" in |
| 12872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12873 | *) ac_try_echo=$ac_try;; |
| 12874 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12876 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | (exit $ac_status); }; }; then |
| 12880 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12881 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12882 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12887 | if test "$ac_cv_type_uintptr_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12888 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12889 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12890 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12891 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12892 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12893 | else |
| 12894 | ac_cv_sizeof_uintptr_t=0 |
| 12895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12897 | 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] | 12898 | fi |
| 12899 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12900 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12901 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12902 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12903 | |
| 12904 | |
| 12905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12907 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12909 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12910 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12911 | fi |
| 12912 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12913 | |
| 12914 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12915 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12916 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 12917 | 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] | 12918 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12920 | else |
| 12921 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12922 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12925 | /* confdefs.h. */ |
| 12926 | _ACEOF |
| 12927 | cat confdefs.h >>conftest.$ac_ext |
| 12928 | cat >>conftest.$ac_ext <<_ACEOF |
| 12929 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12930 | #include <stdio.h> |
| 12931 | #include <sys/types.h> |
| 12932 | main() |
| 12933 | { |
| 12934 | FILE *f=fopen("conftestval", "w"); |
| 12935 | if (!f) exit(1); |
| 12936 | fprintf(f, "%d\n", sizeof(off_t)); |
| 12937 | exit(0); |
| 12938 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | _ACEOF |
| 12940 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12941 | if { (ac_try="$ac_link" |
| 12942 | case "(($ac_try" in |
| 12943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12944 | *) ac_try_echo=$ac_try;; |
| 12945 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12947 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12951 | { (case "(($ac_try" in |
| 12952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12953 | *) ac_try_echo=$ac_try;; |
| 12954 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12956 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12960 | ac_cv_sizeof_off_t=`cat conftestval` |
| 12961 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12962 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12963 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | ( exit $ac_status ) |
| 12967 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12968 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12969 | 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] | 12970 | fi |
| 12971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12972 | |
| 12973 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12974 | fi |
| 12975 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12976 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 12977 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | |
| 12979 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12980 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12982 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12983 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12984 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 12985 | 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] | 12986 | if test "$have_long_long" = yes -a \ |
| 12987 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 12988 | "$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] | 12989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | cat >>confdefs.h <<\_ACEOF |
| 12991 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 12992 | _ACEOF |
| 12993 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12994 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12995 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12996 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 12997 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12998 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12999 | fi |
| 13000 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13001 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13002 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13003 | 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] | 13004 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13006 | else |
| 13007 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13008 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13011 | /* confdefs.h. */ |
| 13012 | _ACEOF |
| 13013 | cat confdefs.h >>conftest.$ac_ext |
| 13014 | cat >>conftest.$ac_ext <<_ACEOF |
| 13015 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13016 | #include <stdio.h> |
| 13017 | #include <time.h> |
| 13018 | main() |
| 13019 | { |
| 13020 | FILE *f=fopen("conftestval", "w"); |
| 13021 | if (!f) exit(1); |
| 13022 | fprintf(f, "%d\n", sizeof(time_t)); |
| 13023 | exit(0); |
| 13024 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | _ACEOF |
| 13026 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13027 | if { (ac_try="$ac_link" |
| 13028 | case "(($ac_try" in |
| 13029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13030 | *) ac_try_echo=$ac_try;; |
| 13031 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13033 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13037 | { (case "(($ac_try" in |
| 13038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13039 | *) ac_try_echo=$ac_try;; |
| 13040 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13042 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13043 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13046 | ac_cv_sizeof_time_t=`cat conftestval` |
| 13047 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13048 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | ( exit $ac_status ) |
| 13053 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13054 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13055 | 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] | 13056 | fi |
| 13057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13058 | |
| 13059 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13060 | fi |
| 13061 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13062 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13063 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | |
| 13065 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13066 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13068 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13069 | |
| 13070 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13071 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13072 | ac_save_cc="$CC" |
| 13073 | if test "$ac_cv_kpthread" = "yes" |
| 13074 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13075 | elif test "$ac_cv_kthread" = "yes" |
| 13076 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13077 | elif test "$ac_cv_pthread" = "yes" |
| 13078 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13079 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13080 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13081 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13082 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13084 | /* confdefs.h. */ |
| 13085 | _ACEOF |
| 13086 | cat confdefs.h >>conftest.$ac_ext |
| 13087 | cat >>conftest.$ac_ext <<_ACEOF |
| 13088 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13089 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | int |
| 13091 | main () |
| 13092 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13093 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | ; |
| 13095 | return 0; |
| 13096 | } |
| 13097 | _ACEOF |
| 13098 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13099 | if { (ac_try="$ac_compile" |
| 13100 | case "(($ac_try" in |
| 13101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13102 | *) ac_try_echo=$ac_try;; |
| 13103 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13105 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13108 | rm -f conftest.er1 |
| 13109 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13111 | (exit $ac_status); } && { |
| 13112 | test -z "$ac_c_werror_flag" || |
| 13113 | test ! -s conftest.err |
| 13114 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13115 | have_pthread_t=yes |
| 13116 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13119 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13120 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13121 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13122 | |
| 13123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13124 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13125 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13126 | if test "$have_pthread_t" = yes ; then |
| 13127 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13128 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 13129 | 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] | 13130 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13132 | else |
| 13133 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13134 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13137 | /* confdefs.h. */ |
| 13138 | _ACEOF |
| 13139 | cat confdefs.h >>conftest.$ac_ext |
| 13140 | cat >>conftest.$ac_ext <<_ACEOF |
| 13141 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13142 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13143 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13144 | main() |
| 13145 | { |
| 13146 | FILE *f=fopen("conftestval", "w"); |
| 13147 | if (!f) exit(1); |
| 13148 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 13149 | exit(0); |
| 13150 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13151 | _ACEOF |
| 13152 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13153 | if { (ac_try="$ac_link" |
| 13154 | case "(($ac_try" in |
| 13155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13156 | *) ac_try_echo=$ac_try;; |
| 13157 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13159 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13163 | { (case "(($ac_try" in |
| 13164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13165 | *) ac_try_echo=$ac_try;; |
| 13166 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13168 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13172 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 13173 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | ( exit $ac_status ) |
| 13179 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13180 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13181 | 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] | 13182 | fi |
| 13183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13184 | |
| 13185 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13186 | fi |
| 13187 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13188 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 13189 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | |
| 13191 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13192 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13194 | |
| 13195 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13196 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13198 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13199 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13200 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13201 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13202 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13203 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 13204 | ;; |
| 13205 | Darwin/*) |
| 13206 | OTHER_LIBTOOL_OPT="" |
| 13207 | ;; |
| 13208 | esac |
| 13209 | |
| 13210 | |
| 13211 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13212 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13213 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 13214 | if test "${enable_universalsdk}"; then |
| 13215 | : |
| 13216 | else |
| 13217 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 13218 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13219 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13220 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 13221 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13222 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 13223 | if test ${gcc_version} '<' 4.0 |
| 13224 | then |
| 13225 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 13226 | else |
| 13227 | LIBTOOL_CRUFT="" |
| 13228 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 13229 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13230 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13231 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13232 | esac |
| 13233 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13234 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 13235 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13236 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13237 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13238 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13240 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | cat >>confdefs.h <<\_ACEOF |
| 13243 | #define WITH_NEXT_FRAMEWORK 1 |
| 13244 | _ACEOF |
| 13245 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13246 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13247 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13248 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13249 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13250 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13251 | fi |
| 13252 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13253 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 13254 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13255 | case $ac_sys_system/$ac_sys_release in |
| 13256 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | cat >>confdefs.h <<\_ACEOF |
| 13259 | #define WITH_DYLD 1 |
| 13260 | _ACEOF |
| 13261 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13262 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 13263 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13264 | ;; |
| 13265 | *) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13266 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13267 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13268 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13269 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13270 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13271 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13272 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13273 | |
| 13274 | |
| 13275 | |
| 13276 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13277 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13278 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13279 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 13280 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13281 | if test -z "$SO" |
| 13282 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13283 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13284 | hp*|HP*) |
| 13285 | case `uname -m` in |
| 13286 | ia64) SO=.so;; |
| 13287 | *) SO=.sl;; |
| 13288 | esac |
| 13289 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13290 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13291 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13292 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 13293 | else |
| 13294 | # this might also be a termcap variable, see #610332 |
| 13295 | echo |
| 13296 | echo '=====================================================================' |
| 13297 | echo '+ +' |
| 13298 | echo '+ WARNING: You have set SO in your environment. +' |
| 13299 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 13300 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 13301 | echo '+ +' |
| 13302 | echo '=====================================================================' |
| 13303 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13304 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13305 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 13306 | echo "${ECHO_T}$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13307 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13308 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13309 | cat >>confdefs.h <<_ACEOF |
| 13310 | #define SHLIB_EXT "$SO" |
| 13311 | _ACEOF |
| 13312 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13313 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 13314 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13315 | # (Shared libraries in this instance are shared modules to be loaded into |
| 13316 | # Python, as opposed to building Python itself as a shared library.) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13317 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 13318 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13319 | if test -z "$LDSHARED" |
| 13320 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13321 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13322 | AIX*) |
| 13323 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13324 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13325 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13326 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 13327 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13329 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 13330 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 13331 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13332 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 13333 | hp*|HP*) |
| 13334 | if test "$GCC" = "yes" |
| 13335 | then LDSHARED='$(CC) -shared' |
| 13336 | else LDSHARED='ld -b'; |
| 13337 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13338 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13339 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13340 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13341 | if test "$enable_framework" ; then |
| 13342 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13343 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13344 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13345 | else |
| 13346 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13347 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13348 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13349 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13350 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13351 | if test "$enable_framework" ; then |
| 13352 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13353 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13354 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13355 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 13356 | # No framework, use the Python app as bundle-loader |
| 13357 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 13358 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13359 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13360 | Darwin/*) |
| 13361 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 13362 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13363 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13364 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13365 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13366 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13367 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13368 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13369 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 13370 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13371 | else |
| 13372 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13373 | if test "$enable_framework" ; then |
| 13374 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13375 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13376 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13377 | else |
| 13378 | # No framework, use the Python app as bundle-loader |
| 13379 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 13380 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 13381 | fi |
| 13382 | fi |
| 13383 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13384 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 13385 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13386 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 13387 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13388 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 13389 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13390 | else |
| 13391 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13392 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13393 | OpenBSD*) |
| 13394 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13395 | then |
| 13396 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13397 | else |
| 13398 | case `uname -r` in |
| 13399 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 13400 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13401 | ;; |
| 13402 | *) |
| 13403 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13404 | ;; |
| 13405 | esac |
| 13406 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13407 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13408 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13409 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13410 | then LDSHARED='$(CC) -shared' |
| 13411 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13412 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13413 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13414 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13415 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13416 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13417 | *) LDSHARED="ld";; |
| 13418 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13419 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13420 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 13421 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13422 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13423 | # 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] | 13424 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13425 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 13426 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13427 | if test -z "$CCSHARED" |
| 13428 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13429 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 13430 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13431 | then CCSHARED="-fPIC"; |
| 13432 | elif test `uname -p` = sparc; |
| 13433 | then CCSHARED="-xcode=pic32"; |
| 13434 | else CCSHARED="-Kpic"; |
| 13435 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13436 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13437 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13438 | else CCSHARED="+z"; |
| 13439 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13440 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13441 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13442 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13443 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13444 | if test "$GCC" = "yes" |
| 13445 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13446 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13447 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13448 | SCO_SV*) |
| 13449 | if test "$GCC" = "yes" |
| 13450 | then CCSHARED="-fPIC" |
| 13451 | else CCSHARED="-Kpic -belf" |
| 13452 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13453 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13454 | IRIX*/6*) case $CC in |
| 13455 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13456 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13457 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13458 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13459 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13460 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13461 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13462 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13463 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13464 | # the python executable -- this is only needed for a few systems |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13465 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13466 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13467 | if test -z "$LINKFORSHARED" |
| 13468 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13469 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13470 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13471 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13472 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13473 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13474 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13475 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13476 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13478 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 13479 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13480 | # not used by the core itself but which needs to be in the core so |
| 13481 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 13482 | # -prebind is no longer used, because it actually seems to give a |
| 13483 | # slowdown in stead of a speedup, maybe due to the large number of |
| 13484 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13485 | |
| 13486 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13487 | if test "$enable_framework" |
| 13488 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13489 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13490 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13491 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13492 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13493 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13494 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13495 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13496 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13497 | then |
| 13498 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13499 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13500 | SunOS/5*) case $CC in |
| 13501 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13502 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13503 | then |
| 13504 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13505 | fi;; |
| 13506 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13507 | CYGWIN*) |
| 13508 | if test $enable_shared = "no" |
| 13509 | then |
| 13510 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13511 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13512 | QNX*) |
| 13513 | # -Wl,-E causes the symbols to be added to the dynamic |
| 13514 | # symbol table so that they can be found when a module |
| 13515 | # is loaded. -N 2048K causes the stack size to be set |
| 13516 | # to 2048 kilobytes so that the stack doesn't overflow |
| 13517 | # when running test_compile.py. |
| 13518 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13519 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13520 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13521 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13522 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13523 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13524 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13525 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13526 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13527 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13528 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13529 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13530 | case $ac_sys_system in |
| 13531 | CYGWIN*) |
| 13532 | # Cygwin needs CCSHARED when building extension DLLs |
| 13533 | # but not when building the interpreter DLL. |
| 13534 | CFLAGSFORSHARED='';; |
| 13535 | *) |
| 13536 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13537 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13538 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13539 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13540 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13541 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13542 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13543 | # library (with --enable-shared). |
| 13544 | # 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] | 13545 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13546 | # if it is not required, since it creates a dependency of the shared library |
| 13547 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13548 | # don't need to link LIBS explicitly. The default should be only changed |
| 13549 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13550 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13551 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13552 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13553 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13554 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13555 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13556 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13557 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13558 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13559 | |
| 13560 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13561 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13563 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13564 | 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] | 13565 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13569 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13571 | /* confdefs.h. */ |
| 13572 | _ACEOF |
| 13573 | cat confdefs.h >>conftest.$ac_ext |
| 13574 | cat >>conftest.$ac_ext <<_ACEOF |
| 13575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13577 | /* Override any GCC internal prototype to avoid an error. |
| 13578 | Use char because int might match the return type of a GCC |
| 13579 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 | #ifdef __cplusplus |
| 13581 | extern "C" |
| 13582 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 | int |
| 13585 | main () |
| 13586 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13587 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | ; |
| 13589 | return 0; |
| 13590 | } |
| 13591 | _ACEOF |
| 13592 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13593 | if { (ac_try="$ac_link" |
| 13594 | case "(($ac_try" in |
| 13595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13596 | *) ac_try_echo=$ac_try;; |
| 13597 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13599 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13602 | rm -f conftest.er1 |
| 13603 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13605 | (exit $ac_status); } && { |
| 13606 | test -z "$ac_c_werror_flag" || |
| 13607 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13608 | } && test -s conftest$ac_exeext && |
| 13609 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13610 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13611 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13614 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13615 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13616 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13617 | |
| 13618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13619 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13620 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13621 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13622 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13623 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 13624 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13625 | cat >>confdefs.h <<_ACEOF |
| 13626 | #define HAVE_LIBDL 1 |
| 13627 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13628 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13629 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13631 | fi |
| 13632 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13634 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13635 | 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] | 13636 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13640 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13642 | /* confdefs.h. */ |
| 13643 | _ACEOF |
| 13644 | cat confdefs.h >>conftest.$ac_ext |
| 13645 | cat >>conftest.$ac_ext <<_ACEOF |
| 13646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13647 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13648 | /* Override any GCC internal prototype to avoid an error. |
| 13649 | Use char because int might match the return type of a GCC |
| 13650 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13651 | #ifdef __cplusplus |
| 13652 | extern "C" |
| 13653 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | int |
| 13656 | main () |
| 13657 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13658 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13659 | ; |
| 13660 | return 0; |
| 13661 | } |
| 13662 | _ACEOF |
| 13663 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13664 | if { (ac_try="$ac_link" |
| 13665 | case "(($ac_try" in |
| 13666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13667 | *) ac_try_echo=$ac_try;; |
| 13668 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13670 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13673 | rm -f conftest.er1 |
| 13674 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13676 | (exit $ac_status); } && { |
| 13677 | test -z "$ac_c_werror_flag" || |
| 13678 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13679 | } && test -s conftest$ac_exeext && |
| 13680 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13681 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13682 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13685 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13686 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13687 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13688 | |
| 13689 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13690 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13692 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13693 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13694 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 13695 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 | cat >>confdefs.h <<_ACEOF |
| 13697 | #define HAVE_LIBDLD 1 |
| 13698 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13699 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13700 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13701 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13702 | fi |
| 13703 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13704 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13705 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13706 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13707 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 13708 | 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] | 13709 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13711 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13712 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13714 | /* confdefs.h. */ |
| 13715 | _ACEOF |
| 13716 | cat confdefs.h >>conftest.$ac_ext |
| 13717 | cat >>conftest.$ac_ext <<_ACEOF |
| 13718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13720 | /* Override any GCC internal prototype to avoid an error. |
| 13721 | Use char because int might match the return type of a GCC |
| 13722 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 | #ifdef __cplusplus |
| 13724 | extern "C" |
| 13725 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13726 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | int |
| 13728 | main () |
| 13729 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13730 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13731 | ; |
| 13732 | return 0; |
| 13733 | } |
| 13734 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13735 | for ac_lib in '' pthread rt posix4; do |
| 13736 | if test -z "$ac_lib"; then |
| 13737 | ac_res="none required" |
| 13738 | else |
| 13739 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13740 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13741 | fi |
| 13742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13743 | if { (ac_try="$ac_link" |
| 13744 | case "(($ac_try" in |
| 13745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13746 | *) ac_try_echo=$ac_try;; |
| 13747 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13749 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13750 | ac_status=$? |
| 13751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13752 | rm -f conftest.er1 |
| 13753 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13755 | (exit $ac_status); } && { |
| 13756 | test -z "$ac_c_werror_flag" || |
| 13757 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13758 | } && test -s conftest$ac_exeext && |
| 13759 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13760 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13761 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13762 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13764 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13765 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13766 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13767 | |
| 13768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13769 | conftest$ac_exeext |
| 13770 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13771 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13772 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13773 | done |
| 13774 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13775 | : |
| 13776 | else |
| 13777 | ac_cv_search_sem_init=no |
| 13778 | fi |
| 13779 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13780 | LIBS=$ac_func_search_save_LIBS |
| 13781 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13782 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 13783 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13784 | ac_res=$ac_cv_search_sem_init |
| 13785 | if test "$ac_res" != no; then |
| 13786 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13787 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13788 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 13789 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13790 | # posix4 on Solaris 2.6 |
| 13791 | # pthread (first!) on Linux |
| 13792 | fi |
| 13793 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13794 | # check if we need libintl for locale functions |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13795 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 13796 | 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] | 13797 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13799 | else |
| 13800 | ac_check_lib_save_LIBS=$LIBS |
| 13801 | LIBS="-lintl $LIBS" |
| 13802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13803 | /* confdefs.h. */ |
| 13804 | _ACEOF |
| 13805 | cat confdefs.h >>conftest.$ac_ext |
| 13806 | cat >>conftest.$ac_ext <<_ACEOF |
| 13807 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13809 | /* Override any GCC internal prototype to avoid an error. |
| 13810 | Use char because int might match the return type of a GCC |
| 13811 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13812 | #ifdef __cplusplus |
| 13813 | extern "C" |
| 13814 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13815 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13816 | int |
| 13817 | main () |
| 13818 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13819 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13820 | ; |
| 13821 | return 0; |
| 13822 | } |
| 13823 | _ACEOF |
| 13824 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13825 | if { (ac_try="$ac_link" |
| 13826 | case "(($ac_try" in |
| 13827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13828 | *) ac_try_echo=$ac_try;; |
| 13829 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13831 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13834 | rm -f conftest.er1 |
| 13835 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13837 | (exit $ac_status); } && { |
| 13838 | test -z "$ac_c_werror_flag" || |
| 13839 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13840 | } && test -s conftest$ac_exeext && |
| 13841 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13842 | ac_cv_lib_intl_textdomain=yes |
| 13843 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13846 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13847 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13848 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13849 | |
| 13850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13851 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13852 | LIBS=$ac_check_lib_save_LIBS |
| 13853 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13854 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 13855 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 13856 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13857 | |
| 13858 | cat >>confdefs.h <<\_ACEOF |
| 13859 | #define WITH_LIBINTL 1 |
| 13860 | _ACEOF |
| 13861 | |
| 13862 | fi |
| 13863 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13864 | |
| 13865 | # checks for system dependent C++ extensions support |
| 13866 | case "$ac_sys_system" in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13867 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 13868 | 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] | 13869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13870 | /* confdefs.h. */ |
| 13871 | _ACEOF |
| 13872 | cat confdefs.h >>conftest.$ac_ext |
| 13873 | cat >>conftest.$ac_ext <<_ACEOF |
| 13874 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13875 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13876 | int |
| 13877 | main () |
| 13878 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13879 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13880 | ; |
| 13881 | return 0; |
| 13882 | } |
| 13883 | _ACEOF |
| 13884 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13885 | if { (ac_try="$ac_link" |
| 13886 | case "(($ac_try" in |
| 13887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13888 | *) ac_try_echo=$ac_try;; |
| 13889 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13891 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13894 | rm -f conftest.er1 |
| 13895 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13897 | (exit $ac_status); } && { |
| 13898 | test -z "$ac_c_werror_flag" || |
| 13899 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13900 | } && test -s conftest$ac_exeext && |
| 13901 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13903 | cat >>confdefs.h <<\_ACEOF |
| 13904 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 13905 | _ACEOF |
| 13906 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13907 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13908 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13909 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13912 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13913 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13914 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13915 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13916 | |
| 13917 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13918 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13919 | *) ;; |
| 13920 | esac |
| 13921 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 13922 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13923 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 13924 | 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] | 13925 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13928 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13929 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13931 | /* confdefs.h. */ |
| 13932 | _ACEOF |
| 13933 | cat confdefs.h >>conftest.$ac_ext |
| 13934 | cat >>conftest.$ac_ext <<_ACEOF |
| 13935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13936 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13937 | /* Override any GCC internal prototype to avoid an error. |
| 13938 | Use char because int might match the return type of a GCC |
| 13939 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | #ifdef __cplusplus |
| 13941 | extern "C" |
| 13942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13943 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | int |
| 13945 | main () |
| 13946 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13947 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13948 | ; |
| 13949 | return 0; |
| 13950 | } |
| 13951 | _ACEOF |
| 13952 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13953 | if { (ac_try="$ac_link" |
| 13954 | case "(($ac_try" in |
| 13955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13956 | *) ac_try_echo=$ac_try;; |
| 13957 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13959 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13962 | rm -f conftest.er1 |
| 13963 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13965 | (exit $ac_status); } && { |
| 13966 | test -z "$ac_c_werror_flag" || |
| 13967 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13968 | } && test -s conftest$ac_exeext && |
| 13969 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13970 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13971 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13975 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13976 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13977 | |
| 13978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13979 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13981 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13982 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 13983 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 13984 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13985 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13986 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 13987 | # SVR4 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13988 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 13989 | 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] | 13990 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 13991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13994 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13996 | /* confdefs.h. */ |
| 13997 | _ACEOF |
| 13998 | cat confdefs.h >>conftest.$ac_ext |
| 13999 | cat >>conftest.$ac_ext <<_ACEOF |
| 14000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14002 | /* Override any GCC internal prototype to avoid an error. |
| 14003 | Use char because int might match the return type of a GCC |
| 14004 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | #ifdef __cplusplus |
| 14006 | extern "C" |
| 14007 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14008 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14009 | int |
| 14010 | main () |
| 14011 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14012 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | ; |
| 14014 | return 0; |
| 14015 | } |
| 14016 | _ACEOF |
| 14017 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14018 | if { (ac_try="$ac_link" |
| 14019 | case "(($ac_try" in |
| 14020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14021 | *) ac_try_echo=$ac_try;; |
| 14022 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14024 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14025 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14027 | rm -f conftest.er1 |
| 14028 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14030 | (exit $ac_status); } && { |
| 14031 | test -z "$ac_c_werror_flag" || |
| 14032 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14033 | } && test -s conftest$ac_exeext && |
| 14034 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14035 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14036 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14039 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14040 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14041 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14042 | |
| 14043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14044 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14045 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14046 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14047 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14048 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 14049 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14050 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14051 | fi |
| 14052 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 14053 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14054 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 14055 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14056 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14057 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14058 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14059 | withval=$with_libs; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14060 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14061 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14062 | LIBS="$withval $LIBS" |
| 14063 | |
| 14064 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14066 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14067 | fi |
| 14068 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14069 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14070 | # Check for use of the system libffi library |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14071 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 14072 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14074 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14075 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14076 | withval=$with_system_ffi; |
| 14077 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14078 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14079 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14080 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 14081 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14082 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14083 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14084 | |
| 14085 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14086 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 14087 | 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] | 14088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14089 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14090 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14091 | withval=$with_signal_module; |
| 14092 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14093 | |
| 14094 | |
| 14095 | if test -z "$with_signal_module" |
| 14096 | then with_signal_module="yes" |
| 14097 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14098 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 14099 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14100 | |
| 14101 | if test "${with_signal_module}" = "yes"; then |
| 14102 | USE_SIGNAL_MODULE="" |
| 14103 | SIGNAL_OBJS="" |
| 14104 | else |
| 14105 | USE_SIGNAL_MODULE="#" |
| 14106 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 14107 | fi |
| 14108 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 14109 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14110 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14111 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14112 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14113 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 14114 | 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] | 14115 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14117 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14118 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14119 | withval=$with_dec_threads; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14120 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14121 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14122 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14123 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14124 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14125 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14126 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14127 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14128 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14129 | fi |
| 14130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | |
| 14132 | # Templates for things AC_DEFINEd more than once. |
| 14133 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14134 | |
| 14135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | |
| 14137 | |
| 14138 | |
| 14139 | |
| 14140 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14141 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 14142 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14144 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14145 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14146 | withval=$with_threads; |
| 14147 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14148 | |
| 14149 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14150 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14152 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14153 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14154 | withval=$with_thread; with_threads=$with_thread |
| 14155 | fi |
| 14156 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14157 | |
| 14158 | if test -z "$with_threads" |
| 14159 | then with_threads="yes" |
| 14160 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14161 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 14162 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14163 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14164 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14165 | if test "$with_threads" = "no" |
| 14166 | then |
| 14167 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14168 | elif test "$ac_cv_pthread_is_default" = yes |
| 14169 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14171 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14173 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14174 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14176 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14178 | |
| 14179 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14181 | elif test "$ac_cv_kpthread" = "yes" |
| 14182 | then |
| 14183 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14184 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14185 | CXX="$CXX -Kpthread" |
| 14186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14188 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14189 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14190 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14191 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14192 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14193 | elif test "$ac_cv_kthread" = "yes" |
| 14194 | then |
| 14195 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14196 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14197 | CXX="$CXX -Kthread" |
| 14198 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14199 | cat >>confdefs.h <<\_ACEOF |
| 14200 | #define WITH_THREAD 1 |
| 14201 | _ACEOF |
| 14202 | |
| 14203 | posix_threads=yes |
| 14204 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14205 | elif test "$ac_cv_pthread" = "yes" |
| 14206 | then |
| 14207 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14208 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14209 | CXX="$CXX -pthread" |
| 14210 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14211 | cat >>confdefs.h <<\_ACEOF |
| 14212 | #define WITH_THREAD 1 |
| 14213 | _ACEOF |
| 14214 | |
| 14215 | posix_threads=yes |
| 14216 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14217 | else |
| 14218 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 14219 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 14220 | fi |
| 14221 | if test ! -z "$withval" -a -d "$withval" |
| 14222 | then LDFLAGS="$LDFLAGS -L$withval" |
| 14223 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14224 | |
| 14225 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 14226 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 14227 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14228 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 14229 | 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] | 14230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14231 | /* confdefs.h. */ |
| 14232 | _ACEOF |
| 14233 | cat confdefs.h >>conftest.$ac_ext |
| 14234 | cat >>conftest.$ac_ext <<_ACEOF |
| 14235 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14236 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14237 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14238 | #ifdef _POSIX_THREADS |
| 14239 | yes |
| 14240 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | |
| 14242 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14244 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14245 | unistd_defines_pthreads=yes |
| 14246 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14247 | unistd_defines_pthreads=no |
| 14248 | fi |
| 14249 | rm -f conftest* |
| 14250 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14251 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 14252 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14255 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14259 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14260 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14264 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14265 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14268 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 14269 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14271 | /* confdefs.h. */ |
| 14272 | _ACEOF |
| 14273 | cat confdefs.h >>conftest.$ac_ext |
| 14274 | cat >>conftest.$ac_ext <<_ACEOF |
| 14275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14276 | $ac_includes_default |
| 14277 | #include <cthreads.h> |
| 14278 | _ACEOF |
| 14279 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14280 | if { (ac_try="$ac_compile" |
| 14281 | case "(($ac_try" in |
| 14282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14283 | *) ac_try_echo=$ac_try;; |
| 14284 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14289 | rm -f conftest.er1 |
| 14290 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14292 | (exit $ac_status); } && { |
| 14293 | test -z "$ac_c_werror_flag" || |
| 14294 | test ! -s conftest.err |
| 14295 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | ac_header_compiler=yes |
| 14297 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14300 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14301 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14303 | |
| 14304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14305 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14306 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | |
| 14308 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14309 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 14310 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14312 | /* confdefs.h. */ |
| 14313 | _ACEOF |
| 14314 | cat confdefs.h >>conftest.$ac_ext |
| 14315 | cat >>conftest.$ac_ext <<_ACEOF |
| 14316 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14317 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14320 | case "(($ac_try" in |
| 14321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14322 | *) ac_try_echo=$ac_try;; |
| 14323 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14327 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 | rm -f conftest.er1 |
| 14329 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14331 | (exit $ac_status); } >/dev/null && { |
| 14332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14333 | test ! -s conftest.err |
| 14334 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | ac_header_preproc=yes |
| 14336 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14340 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14341 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | |
| 14347 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14349 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14350 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14351 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14352 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 14353 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14354 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14355 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14356 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14357 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 14358 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 14359 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 14360 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14361 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 14362 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 14363 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14364 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14365 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14366 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14367 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14368 | 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] | 14369 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14370 | ## ------------------------------------------------ ## |
| 14371 | ## Report this to http://www.python.org/python-bugs ## |
| 14372 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14373 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14374 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14375 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14377 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14378 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14379 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 | else |
| 14382 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14383 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14384 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14385 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | |
| 14387 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14388 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14390 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14394 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | |
| 14398 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14399 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14401 | |
| 14402 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14403 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14404 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14407 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14408 | 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] | 14409 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14412 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14413 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14416 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 14417 | 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] | 14418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14419 | /* confdefs.h. */ |
| 14420 | _ACEOF |
| 14421 | cat confdefs.h >>conftest.$ac_ext |
| 14422 | cat >>conftest.$ac_ext <<_ACEOF |
| 14423 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | $ac_includes_default |
| 14425 | #include <mach/cthreads.h> |
| 14426 | _ACEOF |
| 14427 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14428 | if { (ac_try="$ac_compile" |
| 14429 | case "(($ac_try" in |
| 14430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14431 | *) ac_try_echo=$ac_try;; |
| 14432 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14434 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14437 | rm -f conftest.er1 |
| 14438 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | (exit $ac_status); } && { |
| 14441 | test -z "$ac_c_werror_flag" || |
| 14442 | test ! -s conftest.err |
| 14443 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | ac_header_compiler=yes |
| 14445 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14448 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14449 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14451 | |
| 14452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14453 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14454 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | |
| 14456 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14457 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14458 | 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] | 14459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14460 | /* confdefs.h. */ |
| 14461 | _ACEOF |
| 14462 | cat confdefs.h >>conftest.$ac_ext |
| 14463 | cat >>conftest.$ac_ext <<_ACEOF |
| 14464 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14465 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14467 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14468 | case "(($ac_try" in |
| 14469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14470 | *) ac_try_echo=$ac_try;; |
| 14471 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14473 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14475 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | rm -f conftest.er1 |
| 14477 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14479 | (exit $ac_status); } >/dev/null && { |
| 14480 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14481 | test ! -s conftest.err |
| 14482 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | ac_header_preproc=yes |
| 14484 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14489 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14492 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14493 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | |
| 14495 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14497 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14498 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14499 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14500 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14501 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14502 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14503 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14504 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14505 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14506 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 14507 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14508 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14509 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14510 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14511 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14512 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14513 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14514 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14515 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14516 | 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] | 14517 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14518 | ## ------------------------------------------------ ## |
| 14519 | ## Report this to http://www.python.org/python-bugs ## |
| 14520 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14521 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14522 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14523 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14525 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14526 | 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] | 14527 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | else |
| 14530 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14531 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14532 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14533 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 | |
| 14535 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14536 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14538 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14542 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14545 | |
| 14546 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14547 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14548 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14549 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14550 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14551 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14552 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14553 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14554 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14556 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14557 | if test "${with_pth+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14558 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14559 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14560 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | #define WITH_THREAD 1 |
| 14562 | _ACEOF |
| 14563 | |
| 14564 | |
| 14565 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14566 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14568 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14569 | LIBS="-lpth $LIBS" |
| 14570 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14571 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14572 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14573 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14574 | |
| 14575 | # Just looking for pthread_create in libpthread is not enough: |
| 14576 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14577 | # So we really have to include pthread.h, and then link. |
| 14578 | _libs=$LIBS |
| 14579 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14580 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14581 | 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] | 14582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14583 | /* confdefs.h. */ |
| 14584 | _ACEOF |
| 14585 | cat confdefs.h >>conftest.$ac_ext |
| 14586 | cat >>conftest.$ac_ext <<_ACEOF |
| 14587 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14588 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14589 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14590 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | int |
| 14592 | main () |
| 14593 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14594 | |
| 14595 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14596 | ; |
| 14597 | return 0; |
| 14598 | } |
| 14599 | _ACEOF |
| 14600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14601 | if { (ac_try="$ac_link" |
| 14602 | case "(($ac_try" in |
| 14603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14604 | *) ac_try_echo=$ac_try;; |
| 14605 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14607 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14610 | rm -f conftest.er1 |
| 14611 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14613 | (exit $ac_status); } && { |
| 14614 | test -z "$ac_c_werror_flag" || |
| 14615 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14616 | } && test -s conftest$ac_exeext && |
| 14617 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14619 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14620 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14622 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14624 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14625 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14626 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14627 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14628 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14632 | LIBS=$_libs |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14633 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14634 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14635 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14639 | /* confdefs.h. */ |
| 14640 | _ACEOF |
| 14641 | cat confdefs.h >>conftest.$ac_ext |
| 14642 | cat >>conftest.$ac_ext <<_ACEOF |
| 14643 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14644 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14646 | #define pthread_detach innocuous_pthread_detach |
| 14647 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14648 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14649 | which can conflict with char pthread_detach (); below. |
| 14650 | 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] | 14651 | <limits.h> exists even on freestanding compilers. */ |
| 14652 | |
| 14653 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 | # include <limits.h> |
| 14655 | #else |
| 14656 | # include <assert.h> |
| 14657 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14658 | |
| 14659 | #undef pthread_detach |
| 14660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14661 | /* Override any GCC internal prototype to avoid an error. |
| 14662 | Use char because int might match the return type of a GCC |
| 14663 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14664 | #ifdef __cplusplus |
| 14665 | extern "C" |
| 14666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14668 | /* The GNU C library defines this for functions which it implements |
| 14669 | to always fail with ENOSYS. Some functions are actually named |
| 14670 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14671 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14672 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14673 | #endif |
| 14674 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14675 | int |
| 14676 | main () |
| 14677 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14678 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | ; |
| 14680 | return 0; |
| 14681 | } |
| 14682 | _ACEOF |
| 14683 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14684 | if { (ac_try="$ac_link" |
| 14685 | case "(($ac_try" in |
| 14686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14687 | *) ac_try_echo=$ac_try;; |
| 14688 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14690 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14693 | rm -f conftest.er1 |
| 14694 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14696 | (exit $ac_status); } && { |
| 14697 | test -z "$ac_c_werror_flag" || |
| 14698 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14699 | } && test -s conftest$ac_exeext && |
| 14700 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14702 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14706 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14707 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14708 | |
| 14709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14710 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14711 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14712 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 14713 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 14714 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14716 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14717 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14718 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14719 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14720 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14721 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14722 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14723 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14724 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14725 | 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] | 14726 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14728 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14729 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14730 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14731 | else |
| 14732 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14733 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 14734 | 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] | 14735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14736 | /* confdefs.h. */ |
| 14737 | _ACEOF |
| 14738 | cat confdefs.h >>conftest.$ac_ext |
| 14739 | cat >>conftest.$ac_ext <<_ACEOF |
| 14740 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14741 | $ac_includes_default |
| 14742 | #include <atheos/threads.h> |
| 14743 | _ACEOF |
| 14744 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14745 | if { (ac_try="$ac_compile" |
| 14746 | case "(($ac_try" in |
| 14747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14748 | *) ac_try_echo=$ac_try;; |
| 14749 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14751 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14752 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14754 | rm -f conftest.er1 |
| 14755 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14757 | (exit $ac_status); } && { |
| 14758 | test -z "$ac_c_werror_flag" || |
| 14759 | test ! -s conftest.err |
| 14760 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14761 | ac_header_compiler=yes |
| 14762 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14765 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14766 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14767 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14768 | |
| 14769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14770 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14771 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14772 | |
| 14773 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14774 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 14775 | 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] | 14776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14777 | /* confdefs.h. */ |
| 14778 | _ACEOF |
| 14779 | cat confdefs.h >>conftest.$ac_ext |
| 14780 | cat >>conftest.$ac_ext <<_ACEOF |
| 14781 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14782 | #include <atheos/threads.h> |
| 14783 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14784 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14785 | case "(($ac_try" in |
| 14786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14787 | *) ac_try_echo=$ac_try;; |
| 14788 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14791 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14792 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14793 | rm -f conftest.er1 |
| 14794 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14796 | (exit $ac_status); } >/dev/null && { |
| 14797 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14798 | test ! -s conftest.err |
| 14799 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14800 | ac_header_preproc=yes |
| 14801 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14804 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14805 | ac_header_preproc=no |
| 14806 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14807 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14808 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14809 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14810 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14811 | |
| 14812 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14813 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14814 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14815 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14816 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14817 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 14818 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14819 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14820 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14821 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14822 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 14823 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 14824 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 14825 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 14826 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 14827 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 14828 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14829 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14830 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 14831 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 14832 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 14833 | 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] | 14834 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14835 | ## ------------------------------------------------ ## |
| 14836 | ## Report this to http://www.python.org/python-bugs ## |
| 14837 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14838 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14839 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14840 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14841 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14842 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14843 | 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] | 14844 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14846 | else |
| 14847 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 14848 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14849 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14850 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14851 | |
| 14852 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14853 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14854 | cat >>confdefs.h <<\_ACEOF |
| 14855 | #define WITH_THREAD 1 |
| 14856 | _ACEOF |
| 14857 | |
| 14858 | |
| 14859 | cat >>confdefs.h <<\_ACEOF |
| 14860 | #define ATHEOS_THREADS 1 |
| 14861 | _ACEOF |
| 14862 | |
| 14863 | THREADOBJ="Python/thread.o" |
| 14864 | else |
| 14865 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14866 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 14867 | 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] | 14868 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14872 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14874 | /* confdefs.h. */ |
| 14875 | _ACEOF |
| 14876 | cat confdefs.h >>conftest.$ac_ext |
| 14877 | cat >>conftest.$ac_ext <<_ACEOF |
| 14878 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14879 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14880 | /* Override any GCC internal prototype to avoid an error. |
| 14881 | Use char because int might match the return type of a GCC |
| 14882 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14883 | #ifdef __cplusplus |
| 14884 | extern "C" |
| 14885 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14886 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | int |
| 14888 | main () |
| 14889 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14890 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14891 | ; |
| 14892 | return 0; |
| 14893 | } |
| 14894 | _ACEOF |
| 14895 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14896 | if { (ac_try="$ac_link" |
| 14897 | case "(($ac_try" in |
| 14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14899 | *) ac_try_echo=$ac_try;; |
| 14900 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14902 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14903 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14905 | rm -f conftest.er1 |
| 14906 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14908 | (exit $ac_status); } && { |
| 14909 | test -z "$ac_c_werror_flag" || |
| 14910 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14911 | } && test -s conftest$ac_exeext && |
| 14912 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14913 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14914 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14917 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14918 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14919 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14920 | |
| 14921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14922 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14924 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 14926 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 14927 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14929 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14931 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14932 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14933 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14934 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14935 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14936 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14937 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 14938 | 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] | 14939 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14942 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14943 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14945 | /* confdefs.h. */ |
| 14946 | _ACEOF |
| 14947 | cat confdefs.h >>conftest.$ac_ext |
| 14948 | cat >>conftest.$ac_ext <<_ACEOF |
| 14949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14951 | /* Override any GCC internal prototype to avoid an error. |
| 14952 | Use char because int might match the return type of a GCC |
| 14953 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | #ifdef __cplusplus |
| 14955 | extern "C" |
| 14956 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | int |
| 14959 | main () |
| 14960 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14961 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | ; |
| 14963 | return 0; |
| 14964 | } |
| 14965 | _ACEOF |
| 14966 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14967 | if { (ac_try="$ac_link" |
| 14968 | case "(($ac_try" in |
| 14969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14970 | *) ac_try_echo=$ac_try;; |
| 14971 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14973 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14974 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14976 | rm -f conftest.er1 |
| 14977 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14979 | (exit $ac_status); } && { |
| 14980 | test -z "$ac_c_werror_flag" || |
| 14981 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14982 | } && test -s conftest$ac_exeext && |
| 14983 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14984 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14985 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14986 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14988 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14989 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14990 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14991 | |
| 14992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14993 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14995 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 14996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 14997 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 14998 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14999 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15000 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15002 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15003 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15004 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15005 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15006 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15007 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15008 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 15009 | 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] | 15010 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15013 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15014 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15016 | /* confdefs.h. */ |
| 15017 | _ACEOF |
| 15018 | cat confdefs.h >>conftest.$ac_ext |
| 15019 | cat >>conftest.$ac_ext <<_ACEOF |
| 15020 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15022 | /* Override any GCC internal prototype to avoid an error. |
| 15023 | Use char because int might match the return type of a GCC |
| 15024 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | #ifdef __cplusplus |
| 15026 | extern "C" |
| 15027 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | int |
| 15030 | main () |
| 15031 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15032 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | ; |
| 15034 | return 0; |
| 15035 | } |
| 15036 | _ACEOF |
| 15037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15038 | if { (ac_try="$ac_link" |
| 15039 | case "(($ac_try" in |
| 15040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15041 | *) ac_try_echo=$ac_try;; |
| 15042 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15044 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15047 | rm -f conftest.er1 |
| 15048 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15050 | (exit $ac_status); } && { |
| 15051 | test -z "$ac_c_werror_flag" || |
| 15052 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15053 | } && test -s conftest$ac_exeext && |
| 15054 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15056 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15060 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15061 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15062 | |
| 15063 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15064 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15065 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15066 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15067 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 15068 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 15069 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15071 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15073 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15074 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15075 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15076 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15077 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15078 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15079 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 15080 | 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] | 15081 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15084 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15085 | LIBS="-lcma $LIBS" |
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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15093 | /* Override any GCC internal prototype to avoid an error. |
| 15094 | Use char because int might match the return type of a GCC |
| 15095 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | #ifdef __cplusplus |
| 15097 | extern "C" |
| 15098 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | int |
| 15101 | main () |
| 15102 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15103 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | ; |
| 15105 | return 0; |
| 15106 | } |
| 15107 | _ACEOF |
| 15108 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15109 | if { (ac_try="$ac_link" |
| 15110 | case "(($ac_try" in |
| 15111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15112 | *) ac_try_echo=$ac_try;; |
| 15113 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15115 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15118 | rm -f conftest.er1 |
| 15119 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15121 | (exit $ac_status); } && { |
| 15122 | test -z "$ac_c_werror_flag" || |
| 15123 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15124 | } && test -s conftest$ac_exeext && |
| 15125 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15127 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15128 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15130 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15131 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15132 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15133 | |
| 15134 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15135 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15136 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15137 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15138 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 15139 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 15140 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15142 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15144 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15145 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15146 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15147 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15148 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 15149 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15150 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 15151 | fi |
| 15152 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15153 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15154 | fi |
| 15155 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 15156 | fi |
| 15157 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15158 | fi |
| 15159 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15160 | fi |
| 15161 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15162 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15163 | fi |
| 15164 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15165 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15166 | |
| 15167 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15168 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15169 | fi |
| 15170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | fi |
| 15172 | |
| 15173 | |
| 15174 | fi |
| 15175 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15176 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15177 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15178 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 15179 | 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] | 15180 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15184 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15186 | /* confdefs.h. */ |
| 15187 | _ACEOF |
| 15188 | cat confdefs.h >>conftest.$ac_ext |
| 15189 | cat >>conftest.$ac_ext <<_ACEOF |
| 15190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15192 | /* Override any GCC internal prototype to avoid an error. |
| 15193 | Use char because int might match the return type of a GCC |
| 15194 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | #ifdef __cplusplus |
| 15196 | extern "C" |
| 15197 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | int |
| 15200 | main () |
| 15201 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15202 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15203 | ; |
| 15204 | return 0; |
| 15205 | } |
| 15206 | _ACEOF |
| 15207 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15208 | if { (ac_try="$ac_link" |
| 15209 | case "(($ac_try" in |
| 15210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15211 | *) ac_try_echo=$ac_try;; |
| 15212 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15214 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15217 | rm -f conftest.er1 |
| 15218 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15220 | (exit $ac_status); } && { |
| 15221 | test -z "$ac_c_werror_flag" || |
| 15222 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15223 | } && test -s conftest$ac_exeext && |
| 15224 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15226 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15227 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15229 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15230 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15231 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15232 | |
| 15233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15234 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15236 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15237 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 15238 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 15239 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15241 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15243 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15244 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15245 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15246 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15247 | fi |
| 15248 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15249 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 15250 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15251 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 15252 | 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] | 15253 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15257 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15259 | /* confdefs.h. */ |
| 15260 | _ACEOF |
| 15261 | cat confdefs.h >>conftest.$ac_ext |
| 15262 | cat >>conftest.$ac_ext <<_ACEOF |
| 15263 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15264 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15265 | /* Override any GCC internal prototype to avoid an error. |
| 15266 | Use char because int might match the return type of a GCC |
| 15267 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | #ifdef __cplusplus |
| 15269 | extern "C" |
| 15270 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | int |
| 15273 | main () |
| 15274 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15275 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15276 | ; |
| 15277 | return 0; |
| 15278 | } |
| 15279 | _ACEOF |
| 15280 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15281 | if { (ac_try="$ac_link" |
| 15282 | case "(($ac_try" in |
| 15283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15284 | *) ac_try_echo=$ac_try;; |
| 15285 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15287 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15290 | rm -f conftest.er1 |
| 15291 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15293 | (exit $ac_status); } && { |
| 15294 | test -z "$ac_c_werror_flag" || |
| 15295 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15296 | } && test -s conftest$ac_exeext && |
| 15297 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15299 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15303 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15304 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15305 | |
| 15306 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15307 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15309 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15310 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 15311 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 15312 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15314 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15316 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15317 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15318 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15319 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15320 | fi |
| 15321 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15322 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15323 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15324 | if test "$USE_THREAD_MODULE" != "#" |
| 15325 | then |
| 15326 | # If the above checks didn't disable threads, (at least) OSF1 |
| 15327 | # needs this '-threads' argument during linking. |
| 15328 | case $ac_sys_system in |
| 15329 | OSF1) LDLAST=-threads;; |
| 15330 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 15331 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15332 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15333 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15334 | if test "$posix_threads" = "yes"; then |
| 15335 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15336 | |
| 15337 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15338 | #define _POSIX_THREADS 1 |
| 15339 | _ACEOF |
| 15340 | |
| 15341 | fi |
| 15342 | |
| 15343 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 15344 | case $ac_sys_system/$ac_sys_release in |
| 15345 | SunOS/5.6) |
| 15346 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15347 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 15348 | _ACEOF |
| 15349 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15350 | ;; |
| 15351 | SunOS/5.8) |
| 15352 | cat >>confdefs.h <<\_ACEOF |
| 15353 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15354 | _ACEOF |
| 15355 | |
| 15356 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 15357 | AIX/5) |
| 15358 | cat >>confdefs.h <<\_ACEOF |
| 15359 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15360 | _ACEOF |
| 15361 | |
| 15362 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15363 | esac |
| 15364 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15365 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 15366 | 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] | 15367 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15369 | else |
| 15370 | if test "$cross_compiling" = yes; then |
| 15371 | ac_cv_pthread_system_supported=no |
| 15372 | else |
| 15373 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15374 | /* confdefs.h. */ |
| 15375 | _ACEOF |
| 15376 | cat confdefs.h >>conftest.$ac_ext |
| 15377 | cat >>conftest.$ac_ext <<_ACEOF |
| 15378 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15379 | #include <pthread.h> |
| 15380 | void *foo(void *parm) { |
| 15381 | return NULL; |
| 15382 | } |
| 15383 | main() { |
| 15384 | pthread_attr_t attr; |
| 15385 | pthread_t id; |
| 15386 | if (pthread_attr_init(&attr)) exit(-1); |
| 15387 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 15388 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 15389 | exit(0); |
| 15390 | } |
| 15391 | _ACEOF |
| 15392 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15393 | if { (ac_try="$ac_link" |
| 15394 | case "(($ac_try" in |
| 15395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15396 | *) ac_try_echo=$ac_try;; |
| 15397 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15399 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15400 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15403 | { (case "(($ac_try" in |
| 15404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15405 | *) ac_try_echo=$ac_try;; |
| 15406 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15408 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15409 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15411 | (exit $ac_status); }; }; then |
| 15412 | ac_cv_pthread_system_supported=yes |
| 15413 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15414 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15417 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15418 | ( exit $ac_status ) |
| 15419 | ac_cv_pthread_system_supported=no |
| 15420 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15421 | 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] | 15422 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15424 | |
| 15425 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15426 | fi |
| 15427 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15428 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 15429 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15430 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 15431 | |
| 15432 | cat >>confdefs.h <<\_ACEOF |
| 15433 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 15434 | _ACEOF |
| 15435 | |
| 15436 | fi |
| 15437 | |
| 15438 | for ac_func in pthread_sigmask |
| 15439 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15441 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15443 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15445 | else |
| 15446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15447 | /* confdefs.h. */ |
| 15448 | _ACEOF |
| 15449 | cat confdefs.h >>conftest.$ac_ext |
| 15450 | cat >>conftest.$ac_ext <<_ACEOF |
| 15451 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15454 | #define $ac_func innocuous_$ac_func |
| 15455 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15456 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15457 | which can conflict with char $ac_func (); below. |
| 15458 | 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] | 15459 | <limits.h> exists even on freestanding compilers. */ |
| 15460 | |
| 15461 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15462 | # include <limits.h> |
| 15463 | #else |
| 15464 | # include <assert.h> |
| 15465 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15466 | |
| 15467 | #undef $ac_func |
| 15468 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15469 | /* Override any GCC internal prototype to avoid an error. |
| 15470 | Use char because int might match the return type of a GCC |
| 15471 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15472 | #ifdef __cplusplus |
| 15473 | extern "C" |
| 15474 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15475 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15476 | /* The GNU C library defines this for functions which it implements |
| 15477 | to always fail with ENOSYS. Some functions are actually named |
| 15478 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15479 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15480 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15481 | #endif |
| 15482 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15483 | int |
| 15484 | main () |
| 15485 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15486 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15487 | ; |
| 15488 | return 0; |
| 15489 | } |
| 15490 | _ACEOF |
| 15491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15492 | if { (ac_try="$ac_link" |
| 15493 | case "(($ac_try" in |
| 15494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15495 | *) ac_try_echo=$ac_try;; |
| 15496 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15498 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15499 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15501 | rm -f conftest.er1 |
| 15502 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15504 | (exit $ac_status); } && { |
| 15505 | test -z "$ac_c_werror_flag" || |
| 15506 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15507 | } && test -s conftest$ac_exeext && |
| 15508 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15509 | eval "$as_ac_var=yes" |
| 15510 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15513 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15514 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15515 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15516 | |
| 15517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15518 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15519 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15520 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15522 | echo "${ECHO_T}$ac_res" >&6; } |
| 15523 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15524 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15526 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15527 | case $ac_sys_system in |
| 15528 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15529 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15530 | cat >>confdefs.h <<\_ACEOF |
| 15531 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15532 | _ACEOF |
| 15533 | |
| 15534 | ;; |
| 15535 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15536 | fi |
| 15537 | done |
| 15538 | |
| 15539 | fi |
| 15540 | |
| 15541 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15542 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | |
| 15544 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15545 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15546 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15547 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15548 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15549 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15550 | no) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15552 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15553 | ipv6=no |
| 15554 | ;; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15555 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 15556 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15558 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15560 | |
| 15561 | ipv6=yes |
| 15562 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15563 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15565 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15566 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15567 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15568 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15569 | ipv6=no |
| 15570 | |
| 15571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15573 | /* confdefs.h. */ |
| 15574 | _ACEOF |
| 15575 | cat confdefs.h >>conftest.$ac_ext |
| 15576 | cat >>conftest.$ac_ext <<_ACEOF |
| 15577 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15578 | /* AF_INET6 available check */ |
| 15579 | #include <sys/types.h> |
| 15580 | #include <sys/socket.h> |
| 15581 | main() |
| 15582 | { |
| 15583 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15584 | exit(1); |
| 15585 | else |
| 15586 | exit(0); |
| 15587 | } |
| 15588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15589 | _ACEOF |
| 15590 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15591 | if { (ac_try="$ac_link" |
| 15592 | case "(($ac_try" in |
| 15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15594 | *) ac_try_echo=$ac_try;; |
| 15595 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15597 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15601 | { (case "(($ac_try" in |
| 15602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15603 | *) ac_try_echo=$ac_try;; |
| 15604 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15609 | (exit $ac_status); }; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15610 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15611 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15612 | ipv6=yes |
| 15613 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15614 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | ( exit $ac_status ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15620 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15621 | ipv6=no |
| 15622 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15623 | 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] | 15624 | fi |
| 15625 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15626 | |
| 15627 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15628 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15629 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 15630 | 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] | 15631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15632 | /* confdefs.h. */ |
| 15633 | _ACEOF |
| 15634 | cat confdefs.h >>conftest.$ac_ext |
| 15635 | cat >>conftest.$ac_ext <<_ACEOF |
| 15636 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15637 | #include <sys/types.h> |
| 15638 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 | int |
| 15640 | main () |
| 15641 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15642 | struct sockaddr_in6 x; |
| 15643 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15644 | ; |
| 15645 | return 0; |
| 15646 | } |
| 15647 | _ACEOF |
| 15648 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15649 | if { (ac_try="$ac_compile" |
| 15650 | case "(($ac_try" in |
| 15651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15652 | *) ac_try_echo=$ac_try;; |
| 15653 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15655 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15658 | rm -f conftest.er1 |
| 15659 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15661 | (exit $ac_status); } && { |
| 15662 | test -z "$ac_c_werror_flag" || |
| 15663 | test ! -s conftest.err |
| 15664 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15665 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15666 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15667 | ipv6=yes |
| 15668 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15671 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15673 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15674 | ipv6=no |
| 15675 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15676 | |
| 15677 | 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] | 15678 | fi |
| 15679 | |
| 15680 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15682 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15684 | |
| 15685 | fi |
| 15686 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15687 | fi |
| 15688 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15689 | |
| 15690 | ipv6type=unknown |
| 15691 | ipv6lib=none |
| 15692 | ipv6trylibc=no |
| 15693 | |
| 15694 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15695 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 15696 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 15697 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 15698 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15699 | case $i in |
| 15700 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15702 | /* confdefs.h. */ |
| 15703 | _ACEOF |
| 15704 | cat confdefs.h >>conftest.$ac_ext |
| 15705 | cat >>conftest.$ac_ext <<_ACEOF |
| 15706 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15707 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15708 | #include <netinet/in.h> |
| 15709 | #ifdef IPV6_INRIA_VERSION |
| 15710 | yes |
| 15711 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15712 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15714 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15715 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15716 | fi |
| 15717 | rm -f conftest* |
| 15718 | |
| 15719 | ;; |
| 15720 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15722 | /* confdefs.h. */ |
| 15723 | _ACEOF |
| 15724 | cat confdefs.h >>conftest.$ac_ext |
| 15725 | cat >>conftest.$ac_ext <<_ACEOF |
| 15726 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15727 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15728 | #include <netinet/in.h> |
| 15729 | #ifdef __KAME__ |
| 15730 | yes |
| 15731 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15734 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15735 | ipv6type=$i; |
| 15736 | ipv6lib=inet6 |
| 15737 | ipv6libdir=/usr/local/v6/lib |
| 15738 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15739 | fi |
| 15740 | rm -f conftest* |
| 15741 | |
| 15742 | ;; |
| 15743 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15745 | /* confdefs.h. */ |
| 15746 | _ACEOF |
| 15747 | cat confdefs.h >>conftest.$ac_ext |
| 15748 | cat >>conftest.$ac_ext <<_ACEOF |
| 15749 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15750 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15751 | #include <features.h> |
| 15752 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 15753 | yes |
| 15754 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15757 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15758 | ipv6type=$i; |
| 15759 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15760 | fi |
| 15761 | rm -f conftest* |
| 15762 | |
| 15763 | ;; |
| 15764 | linux-inet6) |
| 15765 | if test -d /usr/inet6; then |
| 15766 | ipv6type=$i |
| 15767 | ipv6lib=inet6 |
| 15768 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15769 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15770 | fi |
| 15771 | ;; |
| 15772 | solaris) |
| 15773 | if test -f /etc/netconfig; then |
| 15774 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 15775 | ipv6type=$i |
| 15776 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15777 | fi |
| 15778 | fi |
| 15779 | ;; |
| 15780 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15782 | /* confdefs.h. */ |
| 15783 | _ACEOF |
| 15784 | cat confdefs.h >>conftest.$ac_ext |
| 15785 | cat >>conftest.$ac_ext <<_ACEOF |
| 15786 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15787 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15788 | #include <sys/param.h> |
| 15789 | #ifdef _TOSHIBA_INET6 |
| 15790 | yes |
| 15791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15794 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15795 | ipv6type=$i; |
| 15796 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15797 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15798 | fi |
| 15799 | rm -f conftest* |
| 15800 | |
| 15801 | ;; |
| 15802 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15804 | /* confdefs.h. */ |
| 15805 | _ACEOF |
| 15806 | cat confdefs.h >>conftest.$ac_ext |
| 15807 | cat >>conftest.$ac_ext <<_ACEOF |
| 15808 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15809 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15810 | #include </usr/local/v6/include/sys/v6config.h> |
| 15811 | #ifdef __V6D__ |
| 15812 | yes |
| 15813 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15816 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15817 | ipv6type=$i; |
| 15818 | ipv6lib=v6; |
| 15819 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15820 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15821 | fi |
| 15822 | rm -f conftest* |
| 15823 | |
| 15824 | ;; |
| 15825 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15827 | /* confdefs.h. */ |
| 15828 | _ACEOF |
| 15829 | cat confdefs.h >>conftest.$ac_ext |
| 15830 | cat >>conftest.$ac_ext <<_ACEOF |
| 15831 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15832 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15833 | #include <sys/param.h> |
| 15834 | #ifdef _ZETA_MINAMI_INET6 |
| 15835 | yes |
| 15836 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15838 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15839 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15840 | ipv6type=$i; |
| 15841 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15842 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15843 | fi |
| 15844 | rm -f conftest* |
| 15845 | |
| 15846 | ;; |
| 15847 | esac |
| 15848 | if test "$ipv6type" != "unknown"; then |
| 15849 | break |
| 15850 | fi |
| 15851 | done |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15852 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 15853 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15854 | fi |
| 15855 | |
| 15856 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 15857 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 15858 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 15859 | echo "using lib$ipv6lib" |
| 15860 | else |
| 15861 | if test $ipv6trylibc = "yes"; then |
| 15862 | echo "using libc" |
| 15863 | else |
| 15864 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 15865 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 15866 | echo 'ipv6 kit and compile beforehand.' |
| 15867 | exit 1 |
| 15868 | fi |
| 15869 | fi |
| 15870 | fi |
| 15871 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15872 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 15873 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15874 | cat >conftest.$ac_ext <<_ACEOF |
| 15875 | /* confdefs.h. */ |
| 15876 | _ACEOF |
| 15877 | cat confdefs.h >>conftest.$ac_ext |
| 15878 | cat >>conftest.$ac_ext <<_ACEOF |
| 15879 | /* end confdefs.h. */ |
| 15880 | #include <Carbon/Carbon.h> |
| 15881 | int |
| 15882 | main () |
| 15883 | { |
| 15884 | FSIORefNum fRef = 0 |
| 15885 | ; |
| 15886 | return 0; |
| 15887 | } |
| 15888 | _ACEOF |
| 15889 | rm -f conftest.$ac_objext |
| 15890 | if { (ac_try="$ac_compile" |
| 15891 | case "(($ac_try" in |
| 15892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15893 | *) ac_try_echo=$ac_try;; |
| 15894 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15896 | (eval "$ac_compile") 2>conftest.er1 |
| 15897 | ac_status=$? |
| 15898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15899 | rm -f conftest.er1 |
| 15900 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15902 | (exit $ac_status); } && { |
| 15903 | test -z "$ac_c_werror_flag" || |
| 15904 | test ! -s conftest.err |
| 15905 | } && test -s conftest.$ac_objext; then |
| 15906 | |
| 15907 | cat >>confdefs.h <<\_ACEOF |
| 15908 | #define HAVE_OSX105_SDK 1 |
| 15909 | _ACEOF |
| 15910 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15911 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15912 | echo "${ECHO_T}yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15913 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15914 | echo "$as_me: failed program was:" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15916 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15917 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15918 | echo "${ECHO_T}no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15919 | |
| 15920 | fi |
| 15921 | |
| 15922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15923 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15924 | # Check for --with-doc-strings |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15925 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 15926 | 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] | 15927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15928 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15929 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15930 | withval=$with_doc_strings; |
| 15931 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15932 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15933 | |
| 15934 | if test -z "$with_doc_strings" |
| 15935 | then with_doc_strings="yes" |
| 15936 | fi |
| 15937 | if test "$with_doc_strings" != "no" |
| 15938 | then |
| 15939 | |
| 15940 | cat >>confdefs.h <<\_ACEOF |
| 15941 | #define WITH_DOC_STRINGS 1 |
| 15942 | _ACEOF |
| 15943 | |
| 15944 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15945 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 15946 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15947 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15948 | # Check for Python-specific malloc support |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15949 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 15950 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15952 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15953 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15954 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15955 | if test "$withval" != no |
| 15956 | then |
| 15957 | |
| 15958 | cat >>confdefs.h <<\_ACEOF |
| 15959 | #define WITH_TSC 1 |
| 15960 | _ACEOF |
| 15961 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15962 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15963 | echo "${ECHO_T}yes" >&6; } |
| 15964 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 15965 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15966 | fi |
| 15967 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15968 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15969 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15970 | fi |
| 15971 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15972 | |
| 15973 | # Check for Python-specific malloc support |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15974 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 15975 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15977 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15978 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15979 | withval=$with_pymalloc; |
| 15980 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15981 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15982 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15983 | if test -z "$with_pymalloc" |
| 15984 | then with_pymalloc="yes" |
| 15985 | fi |
| 15986 | if test "$with_pymalloc" != "no" |
| 15987 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15988 | |
| 15989 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15990 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15992 | |
| 15993 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15994 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 15995 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15996 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15997 | # Check for --with-wctype-functions |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 15998 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 15999 | 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] | 16000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16001 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16002 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16003 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16004 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16005 | then |
| 16006 | |
| 16007 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16008 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | _ACEOF |
| 16010 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16011 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16012 | echo "${ECHO_T}yes" >&6; } |
| 16013 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 16014 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16015 | fi |
| 16016 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16018 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16019 | fi |
| 16020 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16021 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16022 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16023 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 16024 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16025 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16026 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 16027 | # 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] | 16028 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16029 | for ac_func in dlopen |
| 16030 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16032 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16034 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16038 | /* confdefs.h. */ |
| 16039 | _ACEOF |
| 16040 | cat confdefs.h >>conftest.$ac_ext |
| 16041 | cat >>conftest.$ac_ext <<_ACEOF |
| 16042 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16045 | #define $ac_func innocuous_$ac_func |
| 16046 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16047 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16048 | which can conflict with char $ac_func (); below. |
| 16049 | 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] | 16050 | <limits.h> exists even on freestanding compilers. */ |
| 16051 | |
| 16052 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16053 | # include <limits.h> |
| 16054 | #else |
| 16055 | # include <assert.h> |
| 16056 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16057 | |
| 16058 | #undef $ac_func |
| 16059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16060 | /* Override any GCC internal prototype to avoid an error. |
| 16061 | Use char because int might match the return type of a GCC |
| 16062 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16063 | #ifdef __cplusplus |
| 16064 | extern "C" |
| 16065 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16067 | /* The GNU C library defines this for functions which it implements |
| 16068 | to always fail with ENOSYS. Some functions are actually named |
| 16069 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16071 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16072 | #endif |
| 16073 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16074 | int |
| 16075 | main () |
| 16076 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16077 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | ; |
| 16079 | return 0; |
| 16080 | } |
| 16081 | _ACEOF |
| 16082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16083 | if { (ac_try="$ac_link" |
| 16084 | case "(($ac_try" in |
| 16085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16086 | *) ac_try_echo=$ac_try;; |
| 16087 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16089 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16092 | rm -f conftest.er1 |
| 16093 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16095 | (exit $ac_status); } && { |
| 16096 | test -z "$ac_c_werror_flag" || |
| 16097 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16098 | } && test -s conftest$ac_exeext && |
| 16099 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16101 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16105 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16106 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16107 | |
| 16108 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16109 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16110 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16111 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16113 | echo "${ECHO_T}$ac_res" >&6; } |
| 16114 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16116 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16118 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16119 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16120 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16121 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16122 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16123 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 16124 | # loading of modules. |
| 16125 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16126 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 16127 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16128 | if test -z "$DYNLOADFILE" |
| 16129 | then |
| 16130 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 16131 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 16132 | if test "$ac_cv_func_dlopen" = yes |
| 16133 | then DYNLOADFILE="dynload_shlib.o" |
| 16134 | else DYNLOADFILE="dynload_aix.o" |
| 16135 | fi |
| 16136 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16137 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16138 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 16139 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16140 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16141 | *) |
| 16142 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 16143 | # out any dynamic loading |
| 16144 | if test "$ac_cv_func_dlopen" = yes |
| 16145 | then DYNLOADFILE="dynload_shlib.o" |
| 16146 | else DYNLOADFILE="dynload_stub.o" |
| 16147 | fi |
| 16148 | ;; |
| 16149 | esac |
| 16150 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16151 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 16152 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16153 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 16154 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | |
| 16156 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16157 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16159 | |
| 16160 | fi |
| 16161 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16162 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 16163 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16164 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16165 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 16166 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16167 | if test -z "$MACHDEP_OBJS" |
| 16168 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 16169 | MACHDEP_OBJS=$extra_machdep_objs |
| 16170 | else |
| 16171 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16172 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16173 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 16174 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16176 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16177 | |
| 16178 | |
| 16179 | |
| 16180 | |
| 16181 | |
| 16182 | |
| 16183 | |
| 16184 | |
| 16185 | |
| 16186 | |
| 16187 | |
| 16188 | |
| 16189 | |
| 16190 | |
| 16191 | |
| 16192 | |
| 16193 | |
| 16194 | |
| 16195 | |
| 16196 | |
| 16197 | |
| 16198 | |
| 16199 | |
| 16200 | |
| 16201 | |
| 16202 | |
| 16203 | |
| 16204 | |
| 16205 | |
| 16206 | |
| 16207 | |
| 16208 | |
| 16209 | |
| 16210 | |
| 16211 | |
| 16212 | |
| 16213 | |
| 16214 | |
| 16215 | |
| 16216 | |
| 16217 | |
| 16218 | |
| 16219 | |
| 16220 | |
| 16221 | |
| 16222 | |
| 16223 | |
| 16224 | |
| 16225 | |
| 16226 | |
| 16227 | |
| 16228 | |
| 16229 | |
| 16230 | |
| 16231 | |
| 16232 | |
| 16233 | |
| 16234 | |
| 16235 | |
| 16236 | |
| 16237 | |
| 16238 | |
| 16239 | |
| 16240 | |
| 16241 | |
| 16242 | |
| 16243 | |
| 16244 | |
| 16245 | |
| 16246 | |
| 16247 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16248 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16249 | |
| 16250 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16251 | |
| 16252 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 16253 | |
| 16254 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16255 | |
Christian Heimes | 4e30a84 | 2007-11-30 22:12:06 +0000 | [diff] [blame] | 16256 | |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16257 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 16258 | |
| 16259 | |
| 16260 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 16261 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 16262 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16263 | getpriority getpwent getspnam getspent getsid getwd \ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 16264 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 16265 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 16266 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16267 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 16268 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16269 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 16270 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16271 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16272 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16274 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16276 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16280 | /* confdefs.h. */ |
| 16281 | _ACEOF |
| 16282 | cat confdefs.h >>conftest.$ac_ext |
| 16283 | cat >>conftest.$ac_ext <<_ACEOF |
| 16284 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16287 | #define $ac_func innocuous_$ac_func |
| 16288 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16289 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16290 | which can conflict with char $ac_func (); below. |
| 16291 | 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] | 16292 | <limits.h> exists even on freestanding compilers. */ |
| 16293 | |
| 16294 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16295 | # include <limits.h> |
| 16296 | #else |
| 16297 | # include <assert.h> |
| 16298 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16299 | |
| 16300 | #undef $ac_func |
| 16301 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16302 | /* Override any GCC internal prototype to avoid an error. |
| 16303 | Use char because int might match the return type of a GCC |
| 16304 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | #ifdef __cplusplus |
| 16306 | extern "C" |
| 16307 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16309 | /* The GNU C library defines this for functions which it implements |
| 16310 | to always fail with ENOSYS. Some functions are actually named |
| 16311 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16312 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16313 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16314 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16315 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16316 | int |
| 16317 | main () |
| 16318 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16319 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | ; |
| 16321 | return 0; |
| 16322 | } |
| 16323 | _ACEOF |
| 16324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16325 | if { (ac_try="$ac_link" |
| 16326 | case "(($ac_try" in |
| 16327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16328 | *) ac_try_echo=$ac_try;; |
| 16329 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16331 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16334 | rm -f conftest.er1 |
| 16335 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16337 | (exit $ac_status); } && { |
| 16338 | test -z "$ac_c_werror_flag" || |
| 16339 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16340 | } && test -s conftest$ac_exeext && |
| 16341 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16343 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16347 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16348 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16349 | |
| 16350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16351 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16352 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16353 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16354 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16355 | echo "${ECHO_T}$ac_res" >&6; } |
| 16356 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16358 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16360 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16361 | fi |
| 16362 | done |
| 16363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16364 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16365 | # For some functions, having a definition is not sufficient, since |
| 16366 | # we want to take their address. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16367 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 16368 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16370 | /* confdefs.h. */ |
| 16371 | _ACEOF |
| 16372 | cat confdefs.h >>conftest.$ac_ext |
| 16373 | cat >>conftest.$ac_ext <<_ACEOF |
| 16374 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16375 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16376 | int |
| 16377 | main () |
| 16378 | { |
| 16379 | void *x=chroot |
| 16380 | ; |
| 16381 | return 0; |
| 16382 | } |
| 16383 | _ACEOF |
| 16384 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16385 | if { (ac_try="$ac_compile" |
| 16386 | case "(($ac_try" in |
| 16387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16388 | *) ac_try_echo=$ac_try;; |
| 16389 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16391 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16394 | rm -f conftest.er1 |
| 16395 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16397 | (exit $ac_status); } && { |
| 16398 | test -z "$ac_c_werror_flag" || |
| 16399 | test ! -s conftest.err |
| 16400 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16401 | |
| 16402 | cat >>confdefs.h <<\_ACEOF |
| 16403 | #define HAVE_CHROOT 1 |
| 16404 | _ACEOF |
| 16405 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16406 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16407 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16408 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16411 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16413 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16414 | |
| 16415 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16416 | |
| 16417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16418 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 16419 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16421 | /* confdefs.h. */ |
| 16422 | _ACEOF |
| 16423 | cat confdefs.h >>conftest.$ac_ext |
| 16424 | cat >>conftest.$ac_ext <<_ACEOF |
| 16425 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16426 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16427 | int |
| 16428 | main () |
| 16429 | { |
| 16430 | void *x=link |
| 16431 | ; |
| 16432 | return 0; |
| 16433 | } |
| 16434 | _ACEOF |
| 16435 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16436 | if { (ac_try="$ac_compile" |
| 16437 | case "(($ac_try" in |
| 16438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16439 | *) ac_try_echo=$ac_try;; |
| 16440 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16442 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16443 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16445 | rm -f conftest.er1 |
| 16446 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16448 | (exit $ac_status); } && { |
| 16449 | test -z "$ac_c_werror_flag" || |
| 16450 | test ! -s conftest.err |
| 16451 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16452 | |
| 16453 | cat >>confdefs.h <<\_ACEOF |
| 16454 | #define HAVE_LINK 1 |
| 16455 | _ACEOF |
| 16456 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16457 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16458 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16459 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16460 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16462 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16464 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16465 | |
| 16466 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16467 | |
| 16468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16469 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 16470 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16472 | /* confdefs.h. */ |
| 16473 | _ACEOF |
| 16474 | cat confdefs.h >>conftest.$ac_ext |
| 16475 | cat >>conftest.$ac_ext <<_ACEOF |
| 16476 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16477 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16478 | int |
| 16479 | main () |
| 16480 | { |
| 16481 | void *x=symlink |
| 16482 | ; |
| 16483 | return 0; |
| 16484 | } |
| 16485 | _ACEOF |
| 16486 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16487 | if { (ac_try="$ac_compile" |
| 16488 | case "(($ac_try" in |
| 16489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16490 | *) ac_try_echo=$ac_try;; |
| 16491 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16493 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16496 | rm -f conftest.er1 |
| 16497 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16499 | (exit $ac_status); } && { |
| 16500 | test -z "$ac_c_werror_flag" || |
| 16501 | test ! -s conftest.err |
| 16502 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16503 | |
| 16504 | cat >>confdefs.h <<\_ACEOF |
| 16505 | #define HAVE_SYMLINK 1 |
| 16506 | _ACEOF |
| 16507 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16508 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16509 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16510 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16513 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16515 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16516 | |
| 16517 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16518 | |
| 16519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16520 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16521 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16523 | /* confdefs.h. */ |
| 16524 | _ACEOF |
| 16525 | cat confdefs.h >>conftest.$ac_ext |
| 16526 | cat >>conftest.$ac_ext <<_ACEOF |
| 16527 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16528 | #include <unistd.h> |
| 16529 | int |
| 16530 | main () |
| 16531 | { |
| 16532 | void *x=fchdir |
| 16533 | ; |
| 16534 | return 0; |
| 16535 | } |
| 16536 | _ACEOF |
| 16537 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16538 | if { (ac_try="$ac_compile" |
| 16539 | case "(($ac_try" in |
| 16540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16541 | *) ac_try_echo=$ac_try;; |
| 16542 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16544 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16545 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16547 | rm -f conftest.er1 |
| 16548 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16550 | (exit $ac_status); } && { |
| 16551 | test -z "$ac_c_werror_flag" || |
| 16552 | test ! -s conftest.err |
| 16553 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16554 | |
| 16555 | cat >>confdefs.h <<\_ACEOF |
| 16556 | #define HAVE_FCHDIR 1 |
| 16557 | _ACEOF |
| 16558 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16559 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16560 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16561 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16564 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16566 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16567 | |
| 16568 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16569 | |
| 16570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16571 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16572 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16574 | /* confdefs.h. */ |
| 16575 | _ACEOF |
| 16576 | cat confdefs.h >>conftest.$ac_ext |
| 16577 | cat >>conftest.$ac_ext <<_ACEOF |
| 16578 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16579 | #include <unistd.h> |
| 16580 | int |
| 16581 | main () |
| 16582 | { |
| 16583 | void *x=fsync |
| 16584 | ; |
| 16585 | return 0; |
| 16586 | } |
| 16587 | _ACEOF |
| 16588 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16589 | if { (ac_try="$ac_compile" |
| 16590 | case "(($ac_try" in |
| 16591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16592 | *) ac_try_echo=$ac_try;; |
| 16593 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16595 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16598 | rm -f conftest.er1 |
| 16599 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16601 | (exit $ac_status); } && { |
| 16602 | test -z "$ac_c_werror_flag" || |
| 16603 | test ! -s conftest.err |
| 16604 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16605 | |
| 16606 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16607 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16608 | _ACEOF |
| 16609 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16610 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16611 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16612 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16615 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16616 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16617 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16618 | |
| 16619 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16620 | |
| 16621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16622 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 16623 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16625 | /* confdefs.h. */ |
| 16626 | _ACEOF |
| 16627 | cat confdefs.h >>conftest.$ac_ext |
| 16628 | cat >>conftest.$ac_ext <<_ACEOF |
| 16629 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16630 | #include <unistd.h> |
| 16631 | int |
| 16632 | main () |
| 16633 | { |
| 16634 | void *x=fdatasync |
| 16635 | ; |
| 16636 | return 0; |
| 16637 | } |
| 16638 | _ACEOF |
| 16639 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16640 | if { (ac_try="$ac_compile" |
| 16641 | case "(($ac_try" in |
| 16642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16643 | *) ac_try_echo=$ac_try;; |
| 16644 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16646 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16649 | rm -f conftest.er1 |
| 16650 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16652 | (exit $ac_status); } && { |
| 16653 | test -z "$ac_c_werror_flag" || |
| 16654 | test ! -s conftest.err |
| 16655 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16656 | |
| 16657 | cat >>confdefs.h <<\_ACEOF |
| 16658 | #define HAVE_FDATASYNC 1 |
| 16659 | _ACEOF |
| 16660 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16661 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16662 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16663 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16666 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16668 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16669 | |
| 16670 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16671 | |
| 16672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16673 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 16674 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16675 | cat >conftest.$ac_ext <<_ACEOF |
| 16676 | /* confdefs.h. */ |
| 16677 | _ACEOF |
| 16678 | cat confdefs.h >>conftest.$ac_ext |
| 16679 | cat >>conftest.$ac_ext <<_ACEOF |
| 16680 | /* end confdefs.h. */ |
| 16681 | #include <sys/epoll.h> |
| 16682 | int |
| 16683 | main () |
| 16684 | { |
| 16685 | void *x=epoll_create |
| 16686 | ; |
| 16687 | return 0; |
| 16688 | } |
| 16689 | _ACEOF |
| 16690 | rm -f conftest.$ac_objext |
| 16691 | if { (ac_try="$ac_compile" |
| 16692 | case "(($ac_try" in |
| 16693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16694 | *) ac_try_echo=$ac_try;; |
| 16695 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16697 | (eval "$ac_compile") 2>conftest.er1 |
| 16698 | ac_status=$? |
| 16699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16700 | rm -f conftest.er1 |
| 16701 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16703 | (exit $ac_status); } && { |
| 16704 | test -z "$ac_c_werror_flag" || |
| 16705 | test ! -s conftest.err |
| 16706 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16707 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16708 | cat >>confdefs.h <<\_ACEOF |
| 16709 | #define HAVE_EPOLL 1 |
| 16710 | _ACEOF |
| 16711 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16712 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16713 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16714 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16715 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16717 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16718 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16719 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16720 | |
| 16721 | fi |
| 16722 | |
| 16723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16724 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 16725 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16726 | cat >conftest.$ac_ext <<_ACEOF |
| 16727 | /* confdefs.h. */ |
| 16728 | _ACEOF |
| 16729 | cat confdefs.h >>conftest.$ac_ext |
| 16730 | cat >>conftest.$ac_ext <<_ACEOF |
| 16731 | /* end confdefs.h. */ |
| 16732 | |
| 16733 | #include <sys/types.h> |
| 16734 | #include <sys/event.h> |
| 16735 | |
| 16736 | int |
| 16737 | main () |
| 16738 | { |
| 16739 | int x=kqueue() |
| 16740 | ; |
| 16741 | return 0; |
| 16742 | } |
| 16743 | _ACEOF |
| 16744 | rm -f conftest.$ac_objext |
| 16745 | if { (ac_try="$ac_compile" |
| 16746 | case "(($ac_try" in |
| 16747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16748 | *) ac_try_echo=$ac_try;; |
| 16749 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16751 | (eval "$ac_compile") 2>conftest.er1 |
| 16752 | ac_status=$? |
| 16753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16754 | rm -f conftest.er1 |
| 16755 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16757 | (exit $ac_status); } && { |
| 16758 | test -z "$ac_c_werror_flag" || |
| 16759 | test ! -s conftest.err |
| 16760 | } && test -s conftest.$ac_objext; then |
| 16761 | |
| 16762 | cat >>confdefs.h <<\_ACEOF |
| 16763 | #define HAVE_KQUEUE 1 |
| 16764 | _ACEOF |
| 16765 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16766 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16767 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16768 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16769 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16771 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16773 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16774 | |
| 16775 | fi |
| 16776 | |
| 16777 | 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] | 16778 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 16779 | # functions ctermid_r, setgroups in the library, but no prototype |
| 16780 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 16781 | # address to avoid compiler warnings and potential miscompilations |
| 16782 | # because of the missing prototypes. |
| 16783 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16784 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 16785 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16787 | /* confdefs.h. */ |
| 16788 | _ACEOF |
| 16789 | cat confdefs.h >>conftest.$ac_ext |
| 16790 | cat >>conftest.$ac_ext <<_ACEOF |
| 16791 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16792 | |
| 16793 | #include "confdefs.h" |
| 16794 | #include <stdio.h> |
| 16795 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16796 | int |
| 16797 | main () |
| 16798 | { |
| 16799 | void* p = ctermid_r |
| 16800 | ; |
| 16801 | return 0; |
| 16802 | } |
| 16803 | _ACEOF |
| 16804 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16805 | if { (ac_try="$ac_compile" |
| 16806 | case "(($ac_try" in |
| 16807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16808 | *) ac_try_echo=$ac_try;; |
| 16809 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16811 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16814 | rm -f conftest.er1 |
| 16815 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16817 | (exit $ac_status); } && { |
| 16818 | test -z "$ac_c_werror_flag" || |
| 16819 | test ! -s conftest.err |
| 16820 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16821 | |
| 16822 | cat >>confdefs.h <<\_ACEOF |
| 16823 | #define HAVE_CTERMID_R 1 |
| 16824 | _ACEOF |
| 16825 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16826 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16827 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16828 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16831 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16833 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16834 | |
| 16835 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16836 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16838 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16839 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 16840 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16842 | /* confdefs.h. */ |
| 16843 | _ACEOF |
| 16844 | cat confdefs.h >>conftest.$ac_ext |
| 16845 | cat >>conftest.$ac_ext <<_ACEOF |
| 16846 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16847 | |
| 16848 | #include "confdefs.h" |
| 16849 | #include <sys/file.h> |
| 16850 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16851 | int |
| 16852 | main () |
| 16853 | { |
| 16854 | void* p = flock |
| 16855 | ; |
| 16856 | return 0; |
| 16857 | } |
| 16858 | _ACEOF |
| 16859 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16860 | if { (ac_try="$ac_compile" |
| 16861 | case "(($ac_try" in |
| 16862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16863 | *) ac_try_echo=$ac_try;; |
| 16864 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16866 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16869 | rm -f conftest.er1 |
| 16870 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16872 | (exit $ac_status); } && { |
| 16873 | test -z "$ac_c_werror_flag" || |
| 16874 | test ! -s conftest.err |
| 16875 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16876 | |
| 16877 | cat >>confdefs.h <<\_ACEOF |
| 16878 | #define HAVE_FLOCK 1 |
| 16879 | _ACEOF |
| 16880 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16881 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16882 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16883 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16884 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16886 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16888 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16889 | |
| 16890 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16891 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16893 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16894 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 16895 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16896 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16897 | /* confdefs.h. */ |
| 16898 | _ACEOF |
| 16899 | cat confdefs.h >>conftest.$ac_ext |
| 16900 | cat >>conftest.$ac_ext <<_ACEOF |
| 16901 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16902 | |
| 16903 | #include "confdefs.h" |
| 16904 | #include <unistd.h> |
| 16905 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16906 | int |
| 16907 | main () |
| 16908 | { |
| 16909 | void* p = getpagesize |
| 16910 | ; |
| 16911 | return 0; |
| 16912 | } |
| 16913 | _ACEOF |
| 16914 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16915 | if { (ac_try="$ac_compile" |
| 16916 | case "(($ac_try" in |
| 16917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16918 | *) ac_try_echo=$ac_try;; |
| 16919 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16921 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16924 | rm -f conftest.er1 |
| 16925 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16927 | (exit $ac_status); } && { |
| 16928 | test -z "$ac_c_werror_flag" || |
| 16929 | test ! -s conftest.err |
| 16930 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16931 | |
| 16932 | cat >>confdefs.h <<\_ACEOF |
| 16933 | #define HAVE_GETPAGESIZE 1 |
| 16934 | _ACEOF |
| 16935 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16936 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16937 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16938 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16941 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16942 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16943 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16944 | |
| 16945 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16946 | |
| 16947 | 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] | 16948 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16949 | for ac_prog in true |
| 16950 | do |
| 16951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16952 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16953 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16955 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16957 | else |
| 16958 | if test -n "$TRUE"; then |
| 16959 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 16960 | else |
| 16961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16962 | for as_dir in $PATH |
| 16963 | do |
| 16964 | IFS=$as_save_IFS |
| 16965 | test -z "$as_dir" && as_dir=. |
| 16966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16967 | 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] | 16968 | ac_cv_prog_TRUE="$ac_prog" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16970 | break 2 |
| 16971 | fi |
| 16972 | done |
| 16973 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16974 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16975 | |
| 16976 | fi |
| 16977 | fi |
| 16978 | TRUE=$ac_cv_prog_TRUE |
| 16979 | if test -n "$TRUE"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16980 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 16981 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16982 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16983 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16984 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16985 | fi |
| 16986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16987 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16988 | test -n "$TRUE" && break |
| 16989 | done |
| 16990 | test -n "$TRUE" || TRUE="/bin/true" |
| 16991 | |
| 16992 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16993 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 16994 | 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] | 16995 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 16996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16997 | else |
| 16998 | ac_check_lib_save_LIBS=$LIBS |
| 16999 | LIBS="-lc $LIBS" |
| 17000 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17001 | /* confdefs.h. */ |
| 17002 | _ACEOF |
| 17003 | cat confdefs.h >>conftest.$ac_ext |
| 17004 | cat >>conftest.$ac_ext <<_ACEOF |
| 17005 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17006 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17007 | /* Override any GCC internal prototype to avoid an error. |
| 17008 | Use char because int might match the return type of a GCC |
| 17009 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17010 | #ifdef __cplusplus |
| 17011 | extern "C" |
| 17012 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17013 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17014 | int |
| 17015 | main () |
| 17016 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17017 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17018 | ; |
| 17019 | return 0; |
| 17020 | } |
| 17021 | _ACEOF |
| 17022 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17023 | if { (ac_try="$ac_link" |
| 17024 | case "(($ac_try" in |
| 17025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17026 | *) ac_try_echo=$ac_try;; |
| 17027 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17029 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17030 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17032 | rm -f conftest.er1 |
| 17033 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17035 | (exit $ac_status); } && { |
| 17036 | test -z "$ac_c_werror_flag" || |
| 17037 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17038 | } && test -s conftest$ac_exeext && |
| 17039 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17040 | ac_cv_lib_c_inet_aton=yes |
| 17041 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17044 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17045 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17046 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17047 | |
| 17048 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17049 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17050 | LIBS=$ac_check_lib_save_LIBS |
| 17051 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17052 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 17053 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 17054 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17055 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17056 | else |
| 17057 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17058 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 17059 | 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] | 17060 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17062 | else |
| 17063 | ac_check_lib_save_LIBS=$LIBS |
| 17064 | LIBS="-lresolv $LIBS" |
| 17065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17066 | /* confdefs.h. */ |
| 17067 | _ACEOF |
| 17068 | cat confdefs.h >>conftest.$ac_ext |
| 17069 | cat >>conftest.$ac_ext <<_ACEOF |
| 17070 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17071 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17072 | /* Override any GCC internal prototype to avoid an error. |
| 17073 | Use char because int might match the return type of a GCC |
| 17074 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17075 | #ifdef __cplusplus |
| 17076 | extern "C" |
| 17077 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17078 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17079 | int |
| 17080 | main () |
| 17081 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17082 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17083 | ; |
| 17084 | return 0; |
| 17085 | } |
| 17086 | _ACEOF |
| 17087 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17088 | if { (ac_try="$ac_link" |
| 17089 | case "(($ac_try" in |
| 17090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17091 | *) ac_try_echo=$ac_try;; |
| 17092 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17094 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17097 | rm -f conftest.er1 |
| 17098 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17100 | (exit $ac_status); } && { |
| 17101 | test -z "$ac_c_werror_flag" || |
| 17102 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17103 | } && test -s conftest$ac_exeext && |
| 17104 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17105 | ac_cv_lib_resolv_inet_aton=yes |
| 17106 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17109 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17110 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17111 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17112 | |
| 17113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17114 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17115 | LIBS=$ac_check_lib_save_LIBS |
| 17116 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 17118 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 17119 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17120 | cat >>confdefs.h <<_ACEOF |
| 17121 | #define HAVE_LIBRESOLV 1 |
| 17122 | _ACEOF |
| 17123 | |
| 17124 | LIBS="-lresolv $LIBS" |
| 17125 | |
| 17126 | fi |
| 17127 | |
| 17128 | |
| 17129 | fi |
| 17130 | |
| 17131 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17132 | # On Tru64, chflags seems to be present, but calling it will |
| 17133 | # exit Python |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17134 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 17135 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17136 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17137 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17138 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17139 | echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17140 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17141 | { (exit 1); exit 1; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17142 | else |
| 17143 | cat >conftest.$ac_ext <<_ACEOF |
| 17144 | /* confdefs.h. */ |
| 17145 | _ACEOF |
| 17146 | cat confdefs.h >>conftest.$ac_ext |
| 17147 | cat >>conftest.$ac_ext <<_ACEOF |
| 17148 | /* end confdefs.h. */ |
| 17149 | |
| 17150 | #include <sys/stat.h> |
| 17151 | #include <unistd.h> |
| 17152 | int main(int argc, char*argv[]) |
| 17153 | { |
| 17154 | if(chflags(argv[0], 0) != 0) |
| 17155 | return 1; |
| 17156 | return 0; |
| 17157 | } |
| 17158 | |
| 17159 | _ACEOF |
| 17160 | rm -f conftest$ac_exeext |
| 17161 | if { (ac_try="$ac_link" |
| 17162 | case "(($ac_try" in |
| 17163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17164 | *) ac_try_echo=$ac_try;; |
| 17165 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17167 | (eval "$ac_link") 2>&5 |
| 17168 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17170 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17171 | { (case "(($ac_try" in |
| 17172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17173 | *) ac_try_echo=$ac_try;; |
| 17174 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17176 | (eval "$ac_try") 2>&5 |
| 17177 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17179 | (exit $ac_status); }; }; then |
| 17180 | |
| 17181 | cat >>confdefs.h <<\_ACEOF |
| 17182 | #define HAVE_CHFLAGS 1 |
| 17183 | _ACEOF |
| 17184 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17185 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17186 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17187 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17188 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17189 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17191 | |
| 17192 | ( exit $ac_status ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17193 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17194 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17195 | |
| 17196 | fi |
| 17197 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17198 | fi |
| 17199 | |
| 17200 | |
| 17201 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17202 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 17203 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17204 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17205 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17206 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17207 | echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17208 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17209 | { (exit 1); exit 1; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17210 | else |
| 17211 | cat >conftest.$ac_ext <<_ACEOF |
| 17212 | /* confdefs.h. */ |
| 17213 | _ACEOF |
| 17214 | cat confdefs.h >>conftest.$ac_ext |
| 17215 | cat >>conftest.$ac_ext <<_ACEOF |
| 17216 | /* end confdefs.h. */ |
| 17217 | |
| 17218 | #include <sys/stat.h> |
| 17219 | #include <unistd.h> |
| 17220 | int main(int argc, char*argv[]) |
| 17221 | { |
| 17222 | if(lchflags(argv[0], 0) != 0) |
| 17223 | return 1; |
| 17224 | return 0; |
| 17225 | } |
| 17226 | |
| 17227 | _ACEOF |
| 17228 | rm -f conftest$ac_exeext |
| 17229 | if { (ac_try="$ac_link" |
| 17230 | case "(($ac_try" in |
| 17231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17232 | *) ac_try_echo=$ac_try;; |
| 17233 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17235 | (eval "$ac_link") 2>&5 |
| 17236 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17239 | { (case "(($ac_try" in |
| 17240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17241 | *) ac_try_echo=$ac_try;; |
| 17242 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17244 | (eval "$ac_try") 2>&5 |
| 17245 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17247 | (exit $ac_status); }; }; then |
| 17248 | |
| 17249 | cat >>confdefs.h <<\_ACEOF |
| 17250 | #define HAVE_LCHFLAGS 1 |
| 17251 | _ACEOF |
| 17252 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17253 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17254 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17255 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17256 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17257 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17259 | |
| 17260 | ( exit $ac_status ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17261 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17262 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17263 | |
| 17264 | fi |
| 17265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17266 | fi |
| 17267 | |
| 17268 | |
| 17269 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17270 | case $ac_sys_system/$ac_sys_release in |
| 17271 | Darwin/*) |
| 17272 | _CUR_CFLAGS="${CFLAGS}" |
| 17273 | _CUR_LDFLAGS="${LDFLAGS}" |
| 17274 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 17275 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 17276 | ;; |
| 17277 | esac |
| 17278 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17279 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 17280 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17281 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17283 | else |
| 17284 | ac_check_lib_save_LIBS=$LIBS |
| 17285 | LIBS="-lz $LIBS" |
| 17286 | cat >conftest.$ac_ext <<_ACEOF |
| 17287 | /* confdefs.h. */ |
| 17288 | _ACEOF |
| 17289 | cat confdefs.h >>conftest.$ac_ext |
| 17290 | cat >>conftest.$ac_ext <<_ACEOF |
| 17291 | /* end confdefs.h. */ |
| 17292 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17293 | /* Override any GCC internal prototype to avoid an error. |
| 17294 | Use char because int might match the return type of a GCC |
| 17295 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17296 | #ifdef __cplusplus |
| 17297 | extern "C" |
| 17298 | #endif |
| 17299 | char inflateCopy (); |
| 17300 | int |
| 17301 | main () |
| 17302 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17304 | ; |
| 17305 | return 0; |
| 17306 | } |
| 17307 | _ACEOF |
| 17308 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17309 | if { (ac_try="$ac_link" |
| 17310 | case "(($ac_try" in |
| 17311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17312 | *) ac_try_echo=$ac_try;; |
| 17313 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17315 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17316 | ac_status=$? |
| 17317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17318 | rm -f conftest.er1 |
| 17319 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17321 | (exit $ac_status); } && { |
| 17322 | test -z "$ac_c_werror_flag" || |
| 17323 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17324 | } && test -s conftest$ac_exeext && |
| 17325 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17326 | ac_cv_lib_z_inflateCopy=yes |
| 17327 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17328 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17330 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17331 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17333 | |
| 17334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17335 | conftest$ac_exeext conftest.$ac_ext |
| 17336 | LIBS=$ac_check_lib_save_LIBS |
| 17337 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17338 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 17339 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 17340 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17341 | |
| 17342 | cat >>confdefs.h <<\_ACEOF |
| 17343 | #define HAVE_ZLIB_COPY 1 |
| 17344 | _ACEOF |
| 17345 | |
| 17346 | fi |
| 17347 | |
| 17348 | |
| 17349 | case $ac_sys_system/$ac_sys_release in |
| 17350 | Darwin/*) |
| 17351 | CFLAGS="${_CUR_CFLAGS}" |
| 17352 | LDFLAGS="${_CUR_LDFLAGS}" |
| 17353 | ;; |
| 17354 | esac |
| 17355 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17356 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 17357 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17359 | /* confdefs.h. */ |
| 17360 | _ACEOF |
| 17361 | cat confdefs.h >>conftest.$ac_ext |
| 17362 | cat >>conftest.$ac_ext <<_ACEOF |
| 17363 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17364 | |
| 17365 | #include "confdefs.h" |
| 17366 | #include <netdb.h> |
| 17367 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17368 | int |
| 17369 | main () |
| 17370 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17371 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17372 | ; |
| 17373 | return 0; |
| 17374 | } |
| 17375 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17377 | if { (ac_try="$ac_link" |
| 17378 | case "(($ac_try" in |
| 17379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17380 | *) ac_try_echo=$ac_try;; |
| 17381 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17383 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17384 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17386 | rm -f conftest.er1 |
| 17387 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17389 | (exit $ac_status); } && { |
| 17390 | test -z "$ac_c_werror_flag" || |
| 17391 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17392 | } && test -s conftest$ac_exeext && |
| 17393 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17394 | |
| 17395 | cat >>confdefs.h <<\_ACEOF |
| 17396 | #define HAVE_HSTRERROR 1 |
| 17397 | _ACEOF |
| 17398 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17399 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17400 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17401 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17404 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17406 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17407 | |
| 17408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17409 | |
| 17410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17411 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17412 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17413 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 17414 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17416 | /* confdefs.h. */ |
| 17417 | _ACEOF |
| 17418 | cat confdefs.h >>conftest.$ac_ext |
| 17419 | cat >>conftest.$ac_ext <<_ACEOF |
| 17420 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17421 | |
| 17422 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 17423 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17424 | #include <sys/socket.h> |
| 17425 | #include <netinet/in.h> |
| 17426 | #include <arpa/inet.h> |
| 17427 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17428 | int |
| 17429 | main () |
| 17430 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17431 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17432 | ; |
| 17433 | return 0; |
| 17434 | } |
| 17435 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17436 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17437 | if { (ac_try="$ac_link" |
| 17438 | case "(($ac_try" in |
| 17439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17440 | *) ac_try_echo=$ac_try;; |
| 17441 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17443 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17444 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17446 | rm -f conftest.er1 |
| 17447 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17449 | (exit $ac_status); } && { |
| 17450 | test -z "$ac_c_werror_flag" || |
| 17451 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17452 | } && test -s conftest$ac_exeext && |
| 17453 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17454 | |
| 17455 | cat >>confdefs.h <<\_ACEOF |
| 17456 | #define HAVE_INET_ATON 1 |
| 17457 | _ACEOF |
| 17458 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17459 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17460 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17461 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17464 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17465 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17466 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17467 | |
| 17468 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17469 | |
| 17470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17471 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17472 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17473 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 17474 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17476 | /* confdefs.h. */ |
| 17477 | _ACEOF |
| 17478 | cat confdefs.h >>conftest.$ac_ext |
| 17479 | cat >>conftest.$ac_ext <<_ACEOF |
| 17480 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17481 | |
| 17482 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17483 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17484 | #include <sys/socket.h> |
| 17485 | #include <netinet/in.h> |
| 17486 | #include <arpa/inet.h> |
| 17487 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17488 | int |
| 17489 | main () |
| 17490 | { |
| 17491 | void* p = inet_pton |
| 17492 | ; |
| 17493 | return 0; |
| 17494 | } |
| 17495 | _ACEOF |
| 17496 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17497 | if { (ac_try="$ac_compile" |
| 17498 | case "(($ac_try" in |
| 17499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17500 | *) ac_try_echo=$ac_try;; |
| 17501 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17503 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17506 | rm -f conftest.er1 |
| 17507 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17509 | (exit $ac_status); } && { |
| 17510 | test -z "$ac_c_werror_flag" || |
| 17511 | test ! -s conftest.err |
| 17512 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17513 | |
| 17514 | cat >>confdefs.h <<\_ACEOF |
| 17515 | #define HAVE_INET_PTON 1 |
| 17516 | _ACEOF |
| 17517 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17518 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17519 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17520 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17523 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17524 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17525 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17526 | |
| 17527 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17528 | |
| 17529 | 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] | 17530 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17531 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17532 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17533 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17535 | /* confdefs.h. */ |
| 17536 | _ACEOF |
| 17537 | cat confdefs.h >>conftest.$ac_ext |
| 17538 | cat >>conftest.$ac_ext <<_ACEOF |
| 17539 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17540 | |
| 17541 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17542 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17543 | #ifdef HAVE_GRP_H |
| 17544 | #include <grp.h> |
| 17545 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17546 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17547 | int |
| 17548 | main () |
| 17549 | { |
| 17550 | void* p = setgroups |
| 17551 | ; |
| 17552 | return 0; |
| 17553 | } |
| 17554 | _ACEOF |
| 17555 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17556 | if { (ac_try="$ac_compile" |
| 17557 | case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17562 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17563 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17565 | rm -f conftest.er1 |
| 17566 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17568 | (exit $ac_status); } && { |
| 17569 | test -z "$ac_c_werror_flag" || |
| 17570 | test ! -s conftest.err |
| 17571 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17572 | |
| 17573 | cat >>confdefs.h <<\_ACEOF |
| 17574 | #define HAVE_SETGROUPS 1 |
| 17575 | _ACEOF |
| 17576 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17577 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17578 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17579 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17582 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17584 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17585 | |
| 17586 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17587 | |
| 17588 | 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] | 17589 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17590 | # check for openpty and forkpty |
| 17591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17592 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17593 | for ac_func in openpty |
| 17594 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17596 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17598 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17602 | /* confdefs.h. */ |
| 17603 | _ACEOF |
| 17604 | cat confdefs.h >>conftest.$ac_ext |
| 17605 | cat >>conftest.$ac_ext <<_ACEOF |
| 17606 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17607 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17608 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17609 | #define $ac_func innocuous_$ac_func |
| 17610 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17611 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17612 | which can conflict with char $ac_func (); below. |
| 17613 | 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] | 17614 | <limits.h> exists even on freestanding compilers. */ |
| 17615 | |
| 17616 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17617 | # include <limits.h> |
| 17618 | #else |
| 17619 | # include <assert.h> |
| 17620 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17621 | |
| 17622 | #undef $ac_func |
| 17623 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17624 | /* Override any GCC internal prototype to avoid an error. |
| 17625 | Use char because int might match the return type of a GCC |
| 17626 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17627 | #ifdef __cplusplus |
| 17628 | extern "C" |
| 17629 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17631 | /* The GNU C library defines this for functions which it implements |
| 17632 | to always fail with ENOSYS. Some functions are actually named |
| 17633 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17634 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17635 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17636 | #endif |
| 17637 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17638 | int |
| 17639 | main () |
| 17640 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17641 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | ; |
| 17643 | return 0; |
| 17644 | } |
| 17645 | _ACEOF |
| 17646 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17647 | if { (ac_try="$ac_link" |
| 17648 | case "(($ac_try" in |
| 17649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17650 | *) ac_try_echo=$ac_try;; |
| 17651 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17653 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17654 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17656 | rm -f conftest.er1 |
| 17657 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17659 | (exit $ac_status); } && { |
| 17660 | test -z "$ac_c_werror_flag" || |
| 17661 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17662 | } && test -s conftest$ac_exeext && |
| 17663 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17664 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17665 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17668 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17669 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17670 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17671 | |
| 17672 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17673 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17674 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17675 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17677 | echo "${ECHO_T}$ac_res" >&6; } |
| 17678 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17679 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17681 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17682 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17683 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17684 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 17685 | 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] | 17686 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17690 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17691 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17692 | /* confdefs.h. */ |
| 17693 | _ACEOF |
| 17694 | cat confdefs.h >>conftest.$ac_ext |
| 17695 | cat >>conftest.$ac_ext <<_ACEOF |
| 17696 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17698 | /* Override any GCC internal prototype to avoid an error. |
| 17699 | Use char because int might match the return type of a GCC |
| 17700 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | #ifdef __cplusplus |
| 17702 | extern "C" |
| 17703 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17704 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17705 | int |
| 17706 | main () |
| 17707 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | ; |
| 17710 | return 0; |
| 17711 | } |
| 17712 | _ACEOF |
| 17713 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17714 | if { (ac_try="$ac_link" |
| 17715 | case "(($ac_try" in |
| 17716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17717 | *) ac_try_echo=$ac_try;; |
| 17718 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17720 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17723 | rm -f conftest.er1 |
| 17724 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17726 | (exit $ac_status); } && { |
| 17727 | test -z "$ac_c_werror_flag" || |
| 17728 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17729 | } && test -s conftest$ac_exeext && |
| 17730 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17731 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17732 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17735 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17736 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17737 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17738 | |
| 17739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17740 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17741 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17742 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17743 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 17744 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 17745 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17746 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17747 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17748 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17749 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17750 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17751 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 17752 | 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] | 17753 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17755 | else |
| 17756 | ac_check_lib_save_LIBS=$LIBS |
| 17757 | LIBS="-lbsd $LIBS" |
| 17758 | cat >conftest.$ac_ext <<_ACEOF |
| 17759 | /* confdefs.h. */ |
| 17760 | _ACEOF |
| 17761 | cat confdefs.h >>conftest.$ac_ext |
| 17762 | cat >>conftest.$ac_ext <<_ACEOF |
| 17763 | /* end confdefs.h. */ |
| 17764 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17765 | /* Override any GCC internal prototype to avoid an error. |
| 17766 | Use char because int might match the return type of a GCC |
| 17767 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17768 | #ifdef __cplusplus |
| 17769 | extern "C" |
| 17770 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17771 | char openpty (); |
| 17772 | int |
| 17773 | main () |
| 17774 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17775 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17776 | ; |
| 17777 | return 0; |
| 17778 | } |
| 17779 | _ACEOF |
| 17780 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17781 | if { (ac_try="$ac_link" |
| 17782 | case "(($ac_try" in |
| 17783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17784 | *) ac_try_echo=$ac_try;; |
| 17785 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17787 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17788 | ac_status=$? |
| 17789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17790 | rm -f conftest.er1 |
| 17791 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17793 | (exit $ac_status); } && { |
| 17794 | test -z "$ac_c_werror_flag" || |
| 17795 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17796 | } && test -s conftest$ac_exeext && |
| 17797 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17798 | ac_cv_lib_bsd_openpty=yes |
| 17799 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17800 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17802 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17803 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17804 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17805 | |
| 17806 | 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] | 17807 | conftest$ac_exeext conftest.$ac_ext |
| 17808 | LIBS=$ac_check_lib_save_LIBS |
| 17809 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17810 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 17811 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 17812 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17813 | cat >>confdefs.h <<\_ACEOF |
| 17814 | #define HAVE_OPENPTY 1 |
| 17815 | _ACEOF |
| 17816 | LIBS="$LIBS -lbsd" |
| 17817 | fi |
| 17818 | |
| 17819 | |
| 17820 | fi |
| 17821 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17822 | |
| 17823 | fi |
| 17824 | done |
| 17825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17826 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17827 | for ac_func in forkpty |
| 17828 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17829 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17830 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17831 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17832 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17835 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17836 | /* confdefs.h. */ |
| 17837 | _ACEOF |
| 17838 | cat confdefs.h >>conftest.$ac_ext |
| 17839 | cat >>conftest.$ac_ext <<_ACEOF |
| 17840 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17841 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17842 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17843 | #define $ac_func innocuous_$ac_func |
| 17844 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17845 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17846 | which can conflict with char $ac_func (); below. |
| 17847 | 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] | 17848 | <limits.h> exists even on freestanding compilers. */ |
| 17849 | |
| 17850 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17851 | # include <limits.h> |
| 17852 | #else |
| 17853 | # include <assert.h> |
| 17854 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17855 | |
| 17856 | #undef $ac_func |
| 17857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17858 | /* Override any GCC internal prototype to avoid an error. |
| 17859 | Use char because int might match the return type of a GCC |
| 17860 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17861 | #ifdef __cplusplus |
| 17862 | extern "C" |
| 17863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17865 | /* The GNU C library defines this for functions which it implements |
| 17866 | to always fail with ENOSYS. Some functions are actually named |
| 17867 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17868 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17869 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17870 | #endif |
| 17871 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17872 | int |
| 17873 | main () |
| 17874 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17875 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17876 | ; |
| 17877 | return 0; |
| 17878 | } |
| 17879 | _ACEOF |
| 17880 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17881 | if { (ac_try="$ac_link" |
| 17882 | case "(($ac_try" in |
| 17883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17884 | *) ac_try_echo=$ac_try;; |
| 17885 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17887 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17888 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17890 | rm -f conftest.er1 |
| 17891 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17893 | (exit $ac_status); } && { |
| 17894 | test -z "$ac_c_werror_flag" || |
| 17895 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17896 | } && test -s conftest$ac_exeext && |
| 17897 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17898 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17899 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17902 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17903 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17904 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17905 | |
| 17906 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17907 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17908 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17909 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17910 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17911 | echo "${ECHO_T}$ac_res" >&6; } |
| 17912 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17913 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17915 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17916 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17917 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17918 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 17919 | 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] | 17920 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17924 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17926 | /* confdefs.h. */ |
| 17927 | _ACEOF |
| 17928 | cat confdefs.h >>conftest.$ac_ext |
| 17929 | cat >>conftest.$ac_ext <<_ACEOF |
| 17930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17932 | /* Override any GCC internal prototype to avoid an error. |
| 17933 | Use char because int might match the return type of a GCC |
| 17934 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17935 | #ifdef __cplusplus |
| 17936 | extern "C" |
| 17937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17938 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17939 | int |
| 17940 | main () |
| 17941 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17942 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | ; |
| 17944 | return 0; |
| 17945 | } |
| 17946 | _ACEOF |
| 17947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17948 | if { (ac_try="$ac_link" |
| 17949 | case "(($ac_try" in |
| 17950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17951 | *) ac_try_echo=$ac_try;; |
| 17952 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17954 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17957 | rm -f conftest.er1 |
| 17958 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17960 | (exit $ac_status); } && { |
| 17961 | test -z "$ac_c_werror_flag" || |
| 17962 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17963 | } && test -s conftest$ac_exeext && |
| 17964 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17965 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17966 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17969 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17970 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17971 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17972 | |
| 17973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17974 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17975 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17976 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17977 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 17978 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 17979 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17980 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17981 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17982 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17983 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17984 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17985 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 17986 | 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] | 17987 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 17988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17989 | else |
| 17990 | ac_check_lib_save_LIBS=$LIBS |
| 17991 | LIBS="-lbsd $LIBS" |
| 17992 | cat >conftest.$ac_ext <<_ACEOF |
| 17993 | /* confdefs.h. */ |
| 17994 | _ACEOF |
| 17995 | cat confdefs.h >>conftest.$ac_ext |
| 17996 | cat >>conftest.$ac_ext <<_ACEOF |
| 17997 | /* end confdefs.h. */ |
| 17998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17999 | /* Override any GCC internal prototype to avoid an error. |
| 18000 | Use char because int might match the return type of a GCC |
| 18001 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18002 | #ifdef __cplusplus |
| 18003 | extern "C" |
| 18004 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18005 | char forkpty (); |
| 18006 | int |
| 18007 | main () |
| 18008 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18009 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18010 | ; |
| 18011 | return 0; |
| 18012 | } |
| 18013 | _ACEOF |
| 18014 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18015 | if { (ac_try="$ac_link" |
| 18016 | case "(($ac_try" in |
| 18017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18018 | *) ac_try_echo=$ac_try;; |
| 18019 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18021 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18022 | ac_status=$? |
| 18023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18024 | rm -f conftest.er1 |
| 18025 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +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 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18030 | } && test -s conftest$ac_exeext && |
| 18031 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18032 | ac_cv_lib_bsd_forkpty=yes |
| 18033 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18034 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18036 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18037 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18039 | |
| 18040 | 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] | 18041 | conftest$ac_exeext conftest.$ac_ext |
| 18042 | LIBS=$ac_check_lib_save_LIBS |
| 18043 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18044 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 18045 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 18046 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18047 | cat >>confdefs.h <<\_ACEOF |
| 18048 | #define HAVE_FORKPTY 1 |
| 18049 | _ACEOF |
| 18050 | LIBS="$LIBS -lbsd" |
| 18051 | fi |
| 18052 | |
| 18053 | |
| 18054 | fi |
| 18055 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18056 | |
| 18057 | fi |
| 18058 | done |
| 18059 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18060 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18061 | # Stuff for expat. |
| 18062 | |
| 18063 | for ac_func in memmove |
| 18064 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18066 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18068 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18070 | else |
| 18071 | cat >conftest.$ac_ext <<_ACEOF |
| 18072 | /* confdefs.h. */ |
| 18073 | _ACEOF |
| 18074 | cat confdefs.h >>conftest.$ac_ext |
| 18075 | cat >>conftest.$ac_ext <<_ACEOF |
| 18076 | /* end confdefs.h. */ |
| 18077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18079 | #define $ac_func innocuous_$ac_func |
| 18080 | |
| 18081 | /* System header to define __stub macros and hopefully few prototypes, |
| 18082 | which can conflict with char $ac_func (); below. |
| 18083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18084 | <limits.h> exists even on freestanding compilers. */ |
| 18085 | |
| 18086 | #ifdef __STDC__ |
| 18087 | # include <limits.h> |
| 18088 | #else |
| 18089 | # include <assert.h> |
| 18090 | #endif |
| 18091 | |
| 18092 | #undef $ac_func |
| 18093 | |
| 18094 | /* Override any GCC internal prototype to avoid an error. |
| 18095 | Use char because int might match the return type of a GCC |
| 18096 | builtin and then its argument prototype would still apply. */ |
| 18097 | #ifdef __cplusplus |
| 18098 | extern "C" |
| 18099 | #endif |
| 18100 | char $ac_func (); |
| 18101 | /* The GNU C library defines this for functions which it implements |
| 18102 | to always fail with ENOSYS. Some functions are actually named |
| 18103 | something starting with __ and the normal name is an alias. */ |
| 18104 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18105 | choke me |
| 18106 | #endif |
| 18107 | |
| 18108 | int |
| 18109 | main () |
| 18110 | { |
| 18111 | return $ac_func (); |
| 18112 | ; |
| 18113 | return 0; |
| 18114 | } |
| 18115 | _ACEOF |
| 18116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18117 | if { (ac_try="$ac_link" |
| 18118 | case "(($ac_try" in |
| 18119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18120 | *) ac_try_echo=$ac_try;; |
| 18121 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18123 | (eval "$ac_link") 2>conftest.er1 |
| 18124 | ac_status=$? |
| 18125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18126 | rm -f conftest.er1 |
| 18127 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18129 | (exit $ac_status); } && { |
| 18130 | test -z "$ac_c_werror_flag" || |
| 18131 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18132 | } && test -s conftest$ac_exeext && |
| 18133 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18134 | eval "$as_ac_var=yes" |
| 18135 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18136 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18138 | |
| 18139 | eval "$as_ac_var=no" |
| 18140 | fi |
| 18141 | |
| 18142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18143 | conftest$ac_exeext conftest.$ac_ext |
| 18144 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18145 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18147 | echo "${ECHO_T}$ac_res" >&6; } |
| 18148 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18149 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18151 | _ACEOF |
| 18152 | |
| 18153 | fi |
| 18154 | done |
| 18155 | |
| 18156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18157 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18158 | |
| 18159 | |
| 18160 | |
| 18161 | |
| 18162 | |
| 18163 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18164 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 18165 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18169 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18173 | /* confdefs.h. */ |
| 18174 | _ACEOF |
| 18175 | cat confdefs.h >>conftest.$ac_ext |
| 18176 | cat >>conftest.$ac_ext <<_ACEOF |
| 18177 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18180 | #define $ac_func innocuous_$ac_func |
| 18181 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18182 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18183 | which can conflict with char $ac_func (); below. |
| 18184 | 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] | 18185 | <limits.h> exists even on freestanding compilers. */ |
| 18186 | |
| 18187 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18188 | # include <limits.h> |
| 18189 | #else |
| 18190 | # include <assert.h> |
| 18191 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18192 | |
| 18193 | #undef $ac_func |
| 18194 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18195 | /* Override any GCC internal prototype to avoid an error. |
| 18196 | Use char because int might match the return type of a GCC |
| 18197 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18198 | #ifdef __cplusplus |
| 18199 | extern "C" |
| 18200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18201 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18202 | /* The GNU C library defines this for functions which it implements |
| 18203 | to always fail with ENOSYS. Some functions are actually named |
| 18204 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18205 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18206 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18207 | #endif |
| 18208 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18209 | int |
| 18210 | main () |
| 18211 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18212 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18213 | ; |
| 18214 | return 0; |
| 18215 | } |
| 18216 | _ACEOF |
| 18217 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18218 | if { (ac_try="$ac_link" |
| 18219 | case "(($ac_try" in |
| 18220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18221 | *) ac_try_echo=$ac_try;; |
| 18222 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18224 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18227 | rm -f conftest.er1 |
| 18228 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18230 | (exit $ac_status); } && { |
| 18231 | test -z "$ac_c_werror_flag" || |
| 18232 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18233 | } && test -s conftest$ac_exeext && |
| 18234 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18235 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18236 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18239 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18240 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18241 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18242 | |
| 18243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18244 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18245 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18246 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18247 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18248 | echo "${ECHO_T}$ac_res" >&6; } |
| 18249 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18250 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18252 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18253 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18254 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18255 | done |
| 18256 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18258 | |
| 18259 | |
| 18260 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18261 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18262 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18264 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18270 | /* confdefs.h. */ |
| 18271 | _ACEOF |
| 18272 | cat confdefs.h >>conftest.$ac_ext |
| 18273 | cat >>conftest.$ac_ext <<_ACEOF |
| 18274 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18277 | #define $ac_func innocuous_$ac_func |
| 18278 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18279 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18280 | which can conflict with char $ac_func (); below. |
| 18281 | 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] | 18282 | <limits.h> exists even on freestanding compilers. */ |
| 18283 | |
| 18284 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18285 | # include <limits.h> |
| 18286 | #else |
| 18287 | # include <assert.h> |
| 18288 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18289 | |
| 18290 | #undef $ac_func |
| 18291 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18292 | /* Override any GCC internal prototype to avoid an error. |
| 18293 | Use char because int might match the return type of a GCC |
| 18294 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18295 | #ifdef __cplusplus |
| 18296 | extern "C" |
| 18297 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18298 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18299 | /* The GNU C library defines this for functions which it implements |
| 18300 | to always fail with ENOSYS. Some functions are actually named |
| 18301 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18302 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18303 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18304 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18305 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18306 | int |
| 18307 | main () |
| 18308 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18309 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | ; |
| 18311 | return 0; |
| 18312 | } |
| 18313 | _ACEOF |
| 18314 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18315 | if { (ac_try="$ac_link" |
| 18316 | case "(($ac_try" in |
| 18317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18318 | *) ac_try_echo=$ac_try;; |
| 18319 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18321 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18322 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18324 | rm -f conftest.er1 |
| 18325 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18327 | (exit $ac_status); } && { |
| 18328 | test -z "$ac_c_werror_flag" || |
| 18329 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18330 | } && test -s conftest$ac_exeext && |
| 18331 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18332 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18333 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18337 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18338 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18339 | |
| 18340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18341 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18342 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18343 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18344 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18345 | echo "${ECHO_T}$ac_res" >&6; } |
| 18346 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18347 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18349 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18350 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18351 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18352 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18353 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18354 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 18355 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18356 | esac |
| 18357 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18358 | fi |
| 18359 | done |
| 18360 | |
| 18361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18363 | for ac_func in getpgrp |
| 18364 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18366 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18368 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18372 | /* confdefs.h. */ |
| 18373 | _ACEOF |
| 18374 | cat confdefs.h >>conftest.$ac_ext |
| 18375 | cat >>conftest.$ac_ext <<_ACEOF |
| 18376 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18379 | #define $ac_func innocuous_$ac_func |
| 18380 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18381 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18382 | which can conflict with char $ac_func (); below. |
| 18383 | 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] | 18384 | <limits.h> exists even on freestanding compilers. */ |
| 18385 | |
| 18386 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18387 | # include <limits.h> |
| 18388 | #else |
| 18389 | # include <assert.h> |
| 18390 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18391 | |
| 18392 | #undef $ac_func |
| 18393 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18394 | /* Override any GCC internal prototype to avoid an error. |
| 18395 | Use char because int might match the return type of a GCC |
| 18396 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18397 | #ifdef __cplusplus |
| 18398 | extern "C" |
| 18399 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18400 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18401 | /* The GNU C library defines this for functions which it implements |
| 18402 | to always fail with ENOSYS. Some functions are actually named |
| 18403 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18404 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18405 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18406 | #endif |
| 18407 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18408 | int |
| 18409 | main () |
| 18410 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18411 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18412 | ; |
| 18413 | return 0; |
| 18414 | } |
| 18415 | _ACEOF |
| 18416 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18417 | if { (ac_try="$ac_link" |
| 18418 | case "(($ac_try" in |
| 18419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18420 | *) ac_try_echo=$ac_try;; |
| 18421 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18423 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18426 | rm -f conftest.er1 |
| 18427 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18429 | (exit $ac_status); } && { |
| 18430 | test -z "$ac_c_werror_flag" || |
| 18431 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18432 | } && test -s conftest$ac_exeext && |
| 18433 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18434 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18435 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18436 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18438 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18439 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18440 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18441 | |
| 18442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18443 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18444 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18445 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18447 | echo "${ECHO_T}$ac_res" >&6; } |
| 18448 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18449 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18450 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18451 | _ACEOF |
| 18452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18453 | /* confdefs.h. */ |
| 18454 | _ACEOF |
| 18455 | cat confdefs.h >>conftest.$ac_ext |
| 18456 | cat >>conftest.$ac_ext <<_ACEOF |
| 18457 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18458 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18459 | int |
| 18460 | main () |
| 18461 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18462 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18463 | ; |
| 18464 | return 0; |
| 18465 | } |
| 18466 | _ACEOF |
| 18467 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18468 | if { (ac_try="$ac_compile" |
| 18469 | case "(($ac_try" in |
| 18470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18471 | *) ac_try_echo=$ac_try;; |
| 18472 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18474 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18475 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18477 | rm -f conftest.er1 |
| 18478 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18480 | (exit $ac_status); } && { |
| 18481 | test -z "$ac_c_werror_flag" || |
| 18482 | test ! -s conftest.err |
| 18483 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18484 | |
| 18485 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18486 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18489 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18490 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18493 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18494 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18495 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18496 | |
| 18497 | 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] | 18498 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18499 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18500 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18501 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18502 | |
| 18503 | for ac_func in setpgrp |
| 18504 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18512 | /* confdefs.h. */ |
| 18513 | _ACEOF |
| 18514 | cat confdefs.h >>conftest.$ac_ext |
| 18515 | cat >>conftest.$ac_ext <<_ACEOF |
| 18516 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18519 | #define $ac_func innocuous_$ac_func |
| 18520 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18521 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18522 | which can conflict with char $ac_func (); below. |
| 18523 | 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] | 18524 | <limits.h> exists even on freestanding compilers. */ |
| 18525 | |
| 18526 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18527 | # include <limits.h> |
| 18528 | #else |
| 18529 | # include <assert.h> |
| 18530 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18531 | |
| 18532 | #undef $ac_func |
| 18533 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18534 | /* Override any GCC internal prototype to avoid an error. |
| 18535 | Use char because int might match the return type of a GCC |
| 18536 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18537 | #ifdef __cplusplus |
| 18538 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18539 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18540 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18541 | /* The GNU C library defines this for functions which it implements |
| 18542 | to always fail with ENOSYS. Some functions are actually named |
| 18543 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18545 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18546 | #endif |
| 18547 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | int |
| 18549 | main () |
| 18550 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18551 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18552 | ; |
| 18553 | return 0; |
| 18554 | } |
| 18555 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18557 | if { (ac_try="$ac_link" |
| 18558 | case "(($ac_try" in |
| 18559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18560 | *) ac_try_echo=$ac_try;; |
| 18561 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18563 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18566 | rm -f conftest.er1 |
| 18567 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18569 | (exit $ac_status); } && { |
| 18570 | test -z "$ac_c_werror_flag" || |
| 18571 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18572 | } && test -s conftest$ac_exeext && |
| 18573 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18574 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18575 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18578 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18579 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18580 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18581 | |
| 18582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18583 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18584 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18585 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18586 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18587 | echo "${ECHO_T}$ac_res" >&6; } |
| 18588 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18589 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18590 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18591 | _ACEOF |
| 18592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18593 | /* confdefs.h. */ |
| 18594 | _ACEOF |
| 18595 | cat confdefs.h >>conftest.$ac_ext |
| 18596 | cat >>conftest.$ac_ext <<_ACEOF |
| 18597 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18598 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18599 | int |
| 18600 | main () |
| 18601 | { |
| 18602 | setpgrp(0,0); |
| 18603 | ; |
| 18604 | return 0; |
| 18605 | } |
| 18606 | _ACEOF |
| 18607 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18608 | if { (ac_try="$ac_compile" |
| 18609 | case "(($ac_try" in |
| 18610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18611 | *) ac_try_echo=$ac_try;; |
| 18612 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18614 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18615 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18617 | rm -f conftest.er1 |
| 18618 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18620 | (exit $ac_status); } && { |
| 18621 | test -z "$ac_c_werror_flag" || |
| 18622 | test ! -s conftest.err |
| 18623 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18624 | |
| 18625 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18626 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18627 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18628 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18629 | |
| 18630 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18633 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18634 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18635 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18636 | |
| 18637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18638 | |
| 18639 | fi |
| 18640 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18642 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18643 | for ac_func in gettimeofday |
| 18644 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18646 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18648 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18652 | /* confdefs.h. */ |
| 18653 | _ACEOF |
| 18654 | cat confdefs.h >>conftest.$ac_ext |
| 18655 | cat >>conftest.$ac_ext <<_ACEOF |
| 18656 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18659 | #define $ac_func innocuous_$ac_func |
| 18660 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18661 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18662 | which can conflict with char $ac_func (); below. |
| 18663 | 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] | 18664 | <limits.h> exists even on freestanding compilers. */ |
| 18665 | |
| 18666 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18667 | # include <limits.h> |
| 18668 | #else |
| 18669 | # include <assert.h> |
| 18670 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18671 | |
| 18672 | #undef $ac_func |
| 18673 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18674 | /* Override any GCC internal prototype to avoid an error. |
| 18675 | Use char because int might match the return type of a GCC |
| 18676 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18677 | #ifdef __cplusplus |
| 18678 | extern "C" |
| 18679 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18681 | /* The GNU C library defines this for functions which it implements |
| 18682 | to always fail with ENOSYS. Some functions are actually named |
| 18683 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18684 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18685 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18686 | #endif |
| 18687 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18688 | int |
| 18689 | main () |
| 18690 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18691 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18692 | ; |
| 18693 | return 0; |
| 18694 | } |
| 18695 | _ACEOF |
| 18696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18697 | if { (ac_try="$ac_link" |
| 18698 | case "(($ac_try" in |
| 18699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18700 | *) ac_try_echo=$ac_try;; |
| 18701 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18703 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18706 | rm -f conftest.er1 |
| 18707 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18709 | (exit $ac_status); } && { |
| 18710 | test -z "$ac_c_werror_flag" || |
| 18711 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18712 | } && test -s conftest$ac_exeext && |
| 18713 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18714 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18715 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18718 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18719 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18721 | |
| 18722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18723 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18724 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18725 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18726 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18727 | echo "${ECHO_T}$ac_res" >&6; } |
| 18728 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18729 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18731 | _ACEOF |
| 18732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18733 | /* confdefs.h. */ |
| 18734 | _ACEOF |
| 18735 | cat confdefs.h >>conftest.$ac_ext |
| 18736 | cat >>conftest.$ac_ext <<_ACEOF |
| 18737 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18738 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18739 | int |
| 18740 | main () |
| 18741 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18742 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18743 | ; |
| 18744 | return 0; |
| 18745 | } |
| 18746 | _ACEOF |
| 18747 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18748 | if { (ac_try="$ac_compile" |
| 18749 | case "(($ac_try" in |
| 18750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18751 | *) ac_try_echo=$ac_try;; |
| 18752 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18754 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18757 | rm -f conftest.er1 |
| 18758 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18760 | (exit $ac_status); } && { |
| 18761 | test -z "$ac_c_werror_flag" || |
| 18762 | test ! -s conftest.err |
| 18763 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18764 | : |
| 18765 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18769 | |
| 18770 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18771 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18772 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18774 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18775 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18776 | |
| 18777 | 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] | 18778 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18779 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18780 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18781 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18782 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18783 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 18784 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18786 | /* confdefs.h. */ |
| 18787 | _ACEOF |
| 18788 | cat confdefs.h >>conftest.$ac_ext |
| 18789 | cat >>conftest.$ac_ext <<_ACEOF |
| 18790 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18791 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 18792 | #if defined(MAJOR_IN_MKDEV) |
| 18793 | #include <sys/mkdev.h> |
| 18794 | #elif defined(MAJOR_IN_SYSMACROS) |
| 18795 | #include <sys/sysmacros.h> |
| 18796 | #else |
| 18797 | #include <sys/types.h> |
| 18798 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18799 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18800 | int |
| 18801 | main () |
| 18802 | { |
| 18803 | |
| 18804 | makedev(major(0),minor(0)); |
| 18805 | |
| 18806 | ; |
| 18807 | return 0; |
| 18808 | } |
| 18809 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 18810 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18811 | if { (ac_try="$ac_link" |
| 18812 | case "(($ac_try" in |
| 18813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18814 | *) ac_try_echo=$ac_try;; |
| 18815 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18817 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18818 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18820 | rm -f conftest.er1 |
| 18821 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18823 | (exit $ac_status); } && { |
| 18824 | test -z "$ac_c_werror_flag" || |
| 18825 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18826 | } && test -s conftest$ac_exeext && |
| 18827 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18828 | |
| 18829 | |
| 18830 | cat >>confdefs.h <<\_ACEOF |
| 18831 | #define HAVE_DEVICE_MACROS 1 |
| 18832 | _ACEOF |
| 18833 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18834 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18835 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18836 | |
| 18837 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18840 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18841 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18843 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18844 | |
| 18845 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18846 | |
| 18847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18848 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18849 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18850 | # 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] | 18851 | # for [no]getaddrinfo in netdb.h. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18852 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 18853 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18855 | /* confdefs.h. */ |
| 18856 | _ACEOF |
| 18857 | cat confdefs.h >>conftest.$ac_ext |
| 18858 | cat >>conftest.$ac_ext <<_ACEOF |
| 18859 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18860 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18861 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18862 | #include <sys/socket.h> |
| 18863 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18864 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18866 | int |
| 18867 | main () |
| 18868 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18869 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18870 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | ; |
| 18873 | return 0; |
| 18874 | } |
| 18875 | _ACEOF |
| 18876 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18877 | if { (ac_try="$ac_link" |
| 18878 | case "(($ac_try" in |
| 18879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18880 | *) ac_try_echo=$ac_try;; |
| 18881 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18883 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18886 | rm -f conftest.er1 |
| 18887 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18889 | (exit $ac_status); } && { |
| 18890 | test -z "$ac_c_werror_flag" || |
| 18891 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18892 | } && test -s conftest$ac_exeext && |
| 18893 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18894 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18895 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18896 | echo "${ECHO_T}yes" >&6; } |
| 18897 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 18898 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18899 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 18900 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 18901 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18902 | buggygetaddrinfo=yes |
| 18903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18905 | /* confdefs.h. */ |
| 18906 | _ACEOF |
| 18907 | cat confdefs.h >>conftest.$ac_ext |
| 18908 | cat >>conftest.$ac_ext <<_ACEOF |
| 18909 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18910 | |
| 18911 | #include <sys/types.h> |
| 18912 | #include <netdb.h> |
| 18913 | #include <string.h> |
| 18914 | #include <sys/socket.h> |
| 18915 | #include <netinet/in.h> |
| 18916 | |
| 18917 | main() |
| 18918 | { |
| 18919 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 18920 | struct addrinfo hints, *ai, *aitop; |
| 18921 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 18922 | |
| 18923 | for (passive = 0; passive <= 1; passive++) { |
| 18924 | memset(&hints, 0, sizeof(hints)); |
| 18925 | hints.ai_family = AF_UNSPEC; |
| 18926 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 18927 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 18928 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18929 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 18930 | (void)gai_strerror(gaierr); |
| 18931 | goto bad; |
| 18932 | } |
| 18933 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 18934 | if (ai->ai_addr == NULL || |
| 18935 | ai->ai_addrlen == 0 || |
| 18936 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 18937 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 18938 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 18939 | goto bad; |
| 18940 | } |
| 18941 | switch (ai->ai_family) { |
| 18942 | case AF_INET: |
| 18943 | if (strcmp(strport, "54321") != 0) { |
| 18944 | goto bad; |
| 18945 | } |
| 18946 | if (passive) { |
| 18947 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 18948 | goto bad; |
| 18949 | } |
| 18950 | } else { |
| 18951 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 18952 | goto bad; |
| 18953 | } |
| 18954 | } |
| 18955 | inet4++; |
| 18956 | break; |
| 18957 | case AF_INET6: |
| 18958 | if (strcmp(strport, "54321") != 0) { |
| 18959 | goto bad; |
| 18960 | } |
| 18961 | if (passive) { |
| 18962 | if (strcmp(straddr, "::") != 0) { |
| 18963 | goto bad; |
| 18964 | } |
| 18965 | } else { |
| 18966 | if (strcmp(straddr, "::1") != 0) { |
| 18967 | goto bad; |
| 18968 | } |
| 18969 | } |
| 18970 | inet6++; |
| 18971 | break; |
| 18972 | case AF_UNSPEC: |
| 18973 | goto bad; |
| 18974 | break; |
| 18975 | default: |
| 18976 | /* another family support? */ |
| 18977 | break; |
| 18978 | } |
| 18979 | } |
| 18980 | } |
| 18981 | |
| 18982 | if (!(inet4 == 0 || inet4 == 2)) |
| 18983 | goto bad; |
| 18984 | if (!(inet6 == 0 || inet6 == 2)) |
| 18985 | goto bad; |
| 18986 | |
| 18987 | if (aitop) |
| 18988 | freeaddrinfo(aitop); |
| 18989 | exit(0); |
| 18990 | |
| 18991 | bad: |
| 18992 | if (aitop) |
| 18993 | freeaddrinfo(aitop); |
| 18994 | exit(1); |
| 18995 | } |
| 18996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | _ACEOF |
| 18998 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18999 | if { (ac_try="$ac_link" |
| 19000 | case "(($ac_try" in |
| 19001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19002 | *) ac_try_echo=$ac_try;; |
| 19003 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19005 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19006 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19009 | { (case "(($ac_try" in |
| 19010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19011 | *) ac_try_echo=$ac_try;; |
| 19012 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19014 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | (exit $ac_status); }; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19018 | { echo "$as_me:$LINENO: result: good" >&5 |
| 19019 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19020 | buggygetaddrinfo=no |
| 19021 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19026 | ( exit $ac_status ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19027 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 19028 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19029 | buggygetaddrinfo=yes |
| 19030 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19031 | 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] | 19032 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19033 | |
| 19034 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19035 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19039 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19041 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19042 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19043 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19044 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19045 | |
| 19046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19047 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19048 | |
| 19049 | if test "$buggygetaddrinfo" = "yes"; then |
| 19050 | if test "$ipv6" = "yes"; then |
| 19051 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 19052 | echo ' or you can specify "--disable-ipv6"'. |
| 19053 | exit 1 |
| 19054 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19056 | |
| 19057 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19058 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19059 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19060 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19062 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 19063 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19064 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19066 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19068 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19071 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19072 | /* confdefs.h. */ |
| 19073 | _ACEOF |
| 19074 | cat confdefs.h >>conftest.$ac_ext |
| 19075 | cat >>conftest.$ac_ext <<_ACEOF |
| 19076 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19079 | #define $ac_func innocuous_$ac_func |
| 19080 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19081 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19082 | which can conflict with char $ac_func (); below. |
| 19083 | 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] | 19084 | <limits.h> exists even on freestanding compilers. */ |
| 19085 | |
| 19086 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19087 | # include <limits.h> |
| 19088 | #else |
| 19089 | # include <assert.h> |
| 19090 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19091 | |
| 19092 | #undef $ac_func |
| 19093 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19094 | /* Override any GCC internal prototype to avoid an error. |
| 19095 | Use char because int might match the return type of a GCC |
| 19096 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19097 | #ifdef __cplusplus |
| 19098 | extern "C" |
| 19099 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19100 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19101 | /* The GNU C library defines this for functions which it implements |
| 19102 | to always fail with ENOSYS. Some functions are actually named |
| 19103 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19104 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19105 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19106 | #endif |
| 19107 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19108 | int |
| 19109 | main () |
| 19110 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19111 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19112 | ; |
| 19113 | return 0; |
| 19114 | } |
| 19115 | _ACEOF |
| 19116 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19117 | if { (ac_try="$ac_link" |
| 19118 | case "(($ac_try" in |
| 19119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19120 | *) ac_try_echo=$ac_try;; |
| 19121 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19123 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19126 | rm -f conftest.er1 |
| 19127 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19129 | (exit $ac_status); } && { |
| 19130 | test -z "$ac_c_werror_flag" || |
| 19131 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19132 | } && test -s conftest$ac_exeext && |
| 19133 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19134 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19135 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19138 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19139 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19140 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19141 | |
| 19142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19143 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19144 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19145 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19147 | echo "${ECHO_T}$ac_res" >&6; } |
| 19148 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19151 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19152 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19153 | fi |
| 19154 | done |
| 19155 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19156 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19157 | # checks for structures |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19158 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19159 | 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] | 19160 | if test "${ac_cv_header_time+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | #include <sys/types.h> |
| 19170 | #include <sys/time.h> |
| 19171 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19173 | int |
| 19174 | main () |
| 19175 | { |
| 19176 | if ((struct tm *) 0) |
| 19177 | return 0; |
| 19178 | ; |
| 19179 | return 0; |
| 19180 | } |
| 19181 | _ACEOF |
| 19182 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19183 | if { (ac_try="$ac_compile" |
| 19184 | case "(($ac_try" in |
| 19185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19186 | *) ac_try_echo=$ac_try;; |
| 19187 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19189 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19190 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19192 | rm -f conftest.er1 |
| 19193 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19195 | (exit $ac_status); } && { |
| 19196 | test -z "$ac_c_werror_flag" || |
| 19197 | test ! -s conftest.err |
| 19198 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19199 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19200 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19201 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19203 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19204 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19205 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19206 | |
| 19207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19208 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19209 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19210 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19211 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19212 | |
| 19213 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19214 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19215 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19216 | |
| 19217 | fi |
| 19218 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19219 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19220 | 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] | 19221 | if test "${ac_cv_struct_tm+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19224 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19225 | /* confdefs.h. */ |
| 19226 | _ACEOF |
| 19227 | cat confdefs.h >>conftest.$ac_ext |
| 19228 | cat >>conftest.$ac_ext <<_ACEOF |
| 19229 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19230 | #include <sys/types.h> |
| 19231 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19233 | int |
| 19234 | main () |
| 19235 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19236 | struct tm tm; |
| 19237 | int *p = &tm.tm_sec; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19238 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19239 | ; |
| 19240 | return 0; |
| 19241 | } |
| 19242 | _ACEOF |
| 19243 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19244 | if { (ac_try="$ac_compile" |
| 19245 | case "(($ac_try" in |
| 19246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19247 | *) ac_try_echo=$ac_try;; |
| 19248 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19250 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19251 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19253 | rm -f conftest.er1 |
| 19254 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19256 | (exit $ac_status); } && { |
| 19257 | test -z "$ac_c_werror_flag" || |
| 19258 | test ! -s conftest.err |
| 19259 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19260 | ac_cv_struct_tm=time.h |
| 19261 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19264 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19265 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19266 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19267 | |
| 19268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19269 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19270 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19271 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19272 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | |
| 19274 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19275 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19276 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19277 | |
| 19278 | fi |
| 19279 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19280 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19281 | 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] | 19282 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19286 | /* confdefs.h. */ |
| 19287 | _ACEOF |
| 19288 | cat confdefs.h >>conftest.$ac_ext |
| 19289 | cat >>conftest.$ac_ext <<_ACEOF |
| 19290 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19291 | #include <sys/types.h> |
| 19292 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19293 | |
| 19294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19295 | int |
| 19296 | main () |
| 19297 | { |
| 19298 | static struct tm ac_aggr; |
| 19299 | if (ac_aggr.tm_zone) |
| 19300 | return 0; |
| 19301 | ; |
| 19302 | return 0; |
| 19303 | } |
| 19304 | _ACEOF |
| 19305 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19306 | if { (ac_try="$ac_compile" |
| 19307 | case "(($ac_try" in |
| 19308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19309 | *) ac_try_echo=$ac_try;; |
| 19310 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19312 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19315 | rm -f conftest.er1 |
| 19316 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19318 | (exit $ac_status); } && { |
| 19319 | test -z "$ac_c_werror_flag" || |
| 19320 | test ! -s conftest.err |
| 19321 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19322 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19323 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19328 | /* confdefs.h. */ |
| 19329 | _ACEOF |
| 19330 | cat confdefs.h >>conftest.$ac_ext |
| 19331 | cat >>conftest.$ac_ext <<_ACEOF |
| 19332 | /* end confdefs.h. */ |
| 19333 | #include <sys/types.h> |
| 19334 | #include <$ac_cv_struct_tm> |
| 19335 | |
| 19336 | |
| 19337 | int |
| 19338 | main () |
| 19339 | { |
| 19340 | static struct tm ac_aggr; |
| 19341 | if (sizeof ac_aggr.tm_zone) |
| 19342 | return 0; |
| 19343 | ; |
| 19344 | return 0; |
| 19345 | } |
| 19346 | _ACEOF |
| 19347 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19348 | if { (ac_try="$ac_compile" |
| 19349 | case "(($ac_try" in |
| 19350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19351 | *) ac_try_echo=$ac_try;; |
| 19352 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19354 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19357 | rm -f conftest.er1 |
| 19358 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19360 | (exit $ac_status); } && { |
| 19361 | test -z "$ac_c_werror_flag" || |
| 19362 | test ! -s conftest.err |
| 19363 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19364 | ac_cv_member_struct_tm_tm_zone=yes |
| 19365 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19369 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19371 | |
| 19372 | 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] | 19373 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19374 | |
| 19375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19376 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19377 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19378 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 19379 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19380 | |
| 19381 | cat >>confdefs.h <<_ACEOF |
| 19382 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19383 | _ACEOF |
| 19384 | |
| 19385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19386 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19388 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19389 | |
| 19390 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19391 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19392 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19393 | |
| 19394 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19395 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 19396 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19397 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19399 | else |
| 19400 | cat >conftest.$ac_ext <<_ACEOF |
| 19401 | /* confdefs.h. */ |
| 19402 | _ACEOF |
| 19403 | cat confdefs.h >>conftest.$ac_ext |
| 19404 | cat >>conftest.$ac_ext <<_ACEOF |
| 19405 | /* end confdefs.h. */ |
| 19406 | #include <time.h> |
| 19407 | |
| 19408 | int |
| 19409 | main () |
| 19410 | { |
| 19411 | #ifndef tzname |
| 19412 | (void) tzname; |
| 19413 | #endif |
| 19414 | |
| 19415 | ; |
| 19416 | return 0; |
| 19417 | } |
| 19418 | _ACEOF |
| 19419 | rm -f conftest.$ac_objext |
| 19420 | if { (ac_try="$ac_compile" |
| 19421 | case "(($ac_try" in |
| 19422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19423 | *) ac_try_echo=$ac_try;; |
| 19424 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19426 | (eval "$ac_compile") 2>conftest.er1 |
| 19427 | ac_status=$? |
| 19428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19429 | rm -f conftest.er1 |
| 19430 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19432 | (exit $ac_status); } && { |
| 19433 | test -z "$ac_c_werror_flag" || |
| 19434 | test ! -s conftest.err |
| 19435 | } && test -s conftest.$ac_objext; then |
| 19436 | ac_cv_have_decl_tzname=yes |
| 19437 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19438 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19440 | |
| 19441 | ac_cv_have_decl_tzname=no |
| 19442 | fi |
| 19443 | |
| 19444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19445 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19446 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 19447 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 19448 | if test $ac_cv_have_decl_tzname = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19449 | |
| 19450 | cat >>confdefs.h <<_ACEOF |
| 19451 | #define HAVE_DECL_TZNAME 1 |
| 19452 | _ACEOF |
| 19453 | |
| 19454 | |
| 19455 | else |
| 19456 | cat >>confdefs.h <<_ACEOF |
| 19457 | #define HAVE_DECL_TZNAME 0 |
| 19458 | _ACEOF |
| 19459 | |
| 19460 | |
| 19461 | fi |
| 19462 | |
| 19463 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19464 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 19465 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19466 | if test "${ac_cv_var_tzname+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19470 | /* confdefs.h. */ |
| 19471 | _ACEOF |
| 19472 | cat confdefs.h >>conftest.$ac_ext |
| 19473 | cat >>conftest.$ac_ext <<_ACEOF |
| 19474 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19475 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19476 | #if !HAVE_DECL_TZNAME |
| 19477 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19478 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19480 | int |
| 19481 | main () |
| 19482 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19483 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19484 | ; |
| 19485 | return 0; |
| 19486 | } |
| 19487 | _ACEOF |
| 19488 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19489 | if { (ac_try="$ac_link" |
| 19490 | case "(($ac_try" in |
| 19491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19492 | *) ac_try_echo=$ac_try;; |
| 19493 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19495 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19496 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19498 | rm -f conftest.er1 |
| 19499 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19501 | (exit $ac_status); } && { |
| 19502 | test -z "$ac_c_werror_flag" || |
| 19503 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19504 | } && test -s conftest$ac_exeext && |
| 19505 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19506 | ac_cv_var_tzname=yes |
| 19507 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19511 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19512 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19513 | |
| 19514 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19515 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19516 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19517 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19518 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19519 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19520 | |
| 19521 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19522 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19523 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19524 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19525 | fi |
| 19526 | fi |
| 19527 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19528 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 19529 | 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] | 19530 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19532 | else |
| 19533 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19534 | /* confdefs.h. */ |
| 19535 | _ACEOF |
| 19536 | cat confdefs.h >>conftest.$ac_ext |
| 19537 | cat >>conftest.$ac_ext <<_ACEOF |
| 19538 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19540 | int |
| 19541 | main () |
| 19542 | { |
| 19543 | static struct stat ac_aggr; |
| 19544 | if (ac_aggr.st_rdev) |
| 19545 | return 0; |
| 19546 | ; |
| 19547 | return 0; |
| 19548 | } |
| 19549 | _ACEOF |
| 19550 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19551 | if { (ac_try="$ac_compile" |
| 19552 | case "(($ac_try" in |
| 19553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19554 | *) ac_try_echo=$ac_try;; |
| 19555 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19557 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19560 | rm -f conftest.er1 |
| 19561 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19563 | (exit $ac_status); } && { |
| 19564 | test -z "$ac_c_werror_flag" || |
| 19565 | test ! -s conftest.err |
| 19566 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19567 | ac_cv_member_struct_stat_st_rdev=yes |
| 19568 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19569 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19573 | /* confdefs.h. */ |
| 19574 | _ACEOF |
| 19575 | cat confdefs.h >>conftest.$ac_ext |
| 19576 | cat >>conftest.$ac_ext <<_ACEOF |
| 19577 | /* end confdefs.h. */ |
| 19578 | $ac_includes_default |
| 19579 | int |
| 19580 | main () |
| 19581 | { |
| 19582 | static struct stat ac_aggr; |
| 19583 | if (sizeof ac_aggr.st_rdev) |
| 19584 | return 0; |
| 19585 | ; |
| 19586 | return 0; |
| 19587 | } |
| 19588 | _ACEOF |
| 19589 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19590 | if { (ac_try="$ac_compile" |
| 19591 | case "(($ac_try" in |
| 19592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19593 | *) ac_try_echo=$ac_try;; |
| 19594 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19596 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19599 | rm -f conftest.er1 |
| 19600 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19602 | (exit $ac_status); } && { |
| 19603 | test -z "$ac_c_werror_flag" || |
| 19604 | test ! -s conftest.err |
| 19605 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19606 | ac_cv_member_struct_stat_st_rdev=yes |
| 19607 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19610 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19611 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19612 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19613 | |
| 19614 | 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] | 19615 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19616 | |
| 19617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19618 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19619 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 19620 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 19621 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19622 | |
| 19623 | cat >>confdefs.h <<_ACEOF |
| 19624 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 19625 | _ACEOF |
| 19626 | |
| 19627 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19628 | fi |
| 19629 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19630 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 19631 | 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] | 19632 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19636 | /* confdefs.h. */ |
| 19637 | _ACEOF |
| 19638 | cat confdefs.h >>conftest.$ac_ext |
| 19639 | cat >>conftest.$ac_ext <<_ACEOF |
| 19640 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19641 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19642 | int |
| 19643 | main () |
| 19644 | { |
| 19645 | static struct stat ac_aggr; |
| 19646 | if (ac_aggr.st_blksize) |
| 19647 | return 0; |
| 19648 | ; |
| 19649 | return 0; |
| 19650 | } |
| 19651 | _ACEOF |
| 19652 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19653 | if { (ac_try="$ac_compile" |
| 19654 | case "(($ac_try" in |
| 19655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19656 | *) ac_try_echo=$ac_try;; |
| 19657 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19659 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19660 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19662 | rm -f conftest.er1 |
| 19663 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19665 | (exit $ac_status); } && { |
| 19666 | test -z "$ac_c_werror_flag" || |
| 19667 | test ! -s conftest.err |
| 19668 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19669 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19670 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19671 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19673 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19675 | /* confdefs.h. */ |
| 19676 | _ACEOF |
| 19677 | cat confdefs.h >>conftest.$ac_ext |
| 19678 | cat >>conftest.$ac_ext <<_ACEOF |
| 19679 | /* end confdefs.h. */ |
| 19680 | $ac_includes_default |
| 19681 | int |
| 19682 | main () |
| 19683 | { |
| 19684 | static struct stat ac_aggr; |
| 19685 | if (sizeof ac_aggr.st_blksize) |
| 19686 | return 0; |
| 19687 | ; |
| 19688 | return 0; |
| 19689 | } |
| 19690 | _ACEOF |
| 19691 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19692 | if { (ac_try="$ac_compile" |
| 19693 | case "(($ac_try" in |
| 19694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19695 | *) ac_try_echo=$ac_try;; |
| 19696 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19698 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19699 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19701 | rm -f conftest.er1 |
| 19702 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19704 | (exit $ac_status); } && { |
| 19705 | test -z "$ac_c_werror_flag" || |
| 19706 | test ! -s conftest.err |
| 19707 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19708 | ac_cv_member_struct_stat_st_blksize=yes |
| 19709 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19712 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19713 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19714 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19715 | |
| 19716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19717 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19718 | |
| 19719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19720 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19721 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 19722 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 19723 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19725 | cat >>confdefs.h <<_ACEOF |
| 19726 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 19727 | _ACEOF |
| 19728 | |
| 19729 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19730 | fi |
| 19731 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19732 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 19733 | 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] | 19734 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19736 | else |
| 19737 | cat >conftest.$ac_ext <<_ACEOF |
| 19738 | /* confdefs.h. */ |
| 19739 | _ACEOF |
| 19740 | cat confdefs.h >>conftest.$ac_ext |
| 19741 | cat >>conftest.$ac_ext <<_ACEOF |
| 19742 | /* end confdefs.h. */ |
| 19743 | $ac_includes_default |
| 19744 | int |
| 19745 | main () |
| 19746 | { |
| 19747 | static struct stat ac_aggr; |
| 19748 | if (ac_aggr.st_flags) |
| 19749 | return 0; |
| 19750 | ; |
| 19751 | return 0; |
| 19752 | } |
| 19753 | _ACEOF |
| 19754 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19755 | if { (ac_try="$ac_compile" |
| 19756 | case "(($ac_try" in |
| 19757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19758 | *) ac_try_echo=$ac_try;; |
| 19759 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19761 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19762 | ac_status=$? |
| 19763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19764 | rm -f conftest.er1 |
| 19765 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19767 | (exit $ac_status); } && { |
| 19768 | test -z "$ac_c_werror_flag" || |
| 19769 | test ! -s conftest.err |
| 19770 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19771 | ac_cv_member_struct_stat_st_flags=yes |
| 19772 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19773 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19775 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19776 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19777 | /* confdefs.h. */ |
| 19778 | _ACEOF |
| 19779 | cat confdefs.h >>conftest.$ac_ext |
| 19780 | cat >>conftest.$ac_ext <<_ACEOF |
| 19781 | /* end confdefs.h. */ |
| 19782 | $ac_includes_default |
| 19783 | int |
| 19784 | main () |
| 19785 | { |
| 19786 | static struct stat ac_aggr; |
| 19787 | if (sizeof ac_aggr.st_flags) |
| 19788 | return 0; |
| 19789 | ; |
| 19790 | return 0; |
| 19791 | } |
| 19792 | _ACEOF |
| 19793 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19794 | if { (ac_try="$ac_compile" |
| 19795 | case "(($ac_try" in |
| 19796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19797 | *) ac_try_echo=$ac_try;; |
| 19798 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19800 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19801 | ac_status=$? |
| 19802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19803 | rm -f conftest.er1 |
| 19804 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19806 | (exit $ac_status); } && { |
| 19807 | test -z "$ac_c_werror_flag" || |
| 19808 | test ! -s conftest.err |
| 19809 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19810 | ac_cv_member_struct_stat_st_flags=yes |
| 19811 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19812 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19814 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19815 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19816 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19817 | |
| 19818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19819 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19820 | |
| 19821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19822 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19823 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 19824 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 19825 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19826 | |
| 19827 | cat >>confdefs.h <<_ACEOF |
| 19828 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 19829 | _ACEOF |
| 19830 | |
| 19831 | |
| 19832 | fi |
| 19833 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19834 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 19835 | 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] | 19836 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19838 | else |
| 19839 | cat >conftest.$ac_ext <<_ACEOF |
| 19840 | /* confdefs.h. */ |
| 19841 | _ACEOF |
| 19842 | cat confdefs.h >>conftest.$ac_ext |
| 19843 | cat >>conftest.$ac_ext <<_ACEOF |
| 19844 | /* end confdefs.h. */ |
| 19845 | $ac_includes_default |
| 19846 | int |
| 19847 | main () |
| 19848 | { |
| 19849 | static struct stat ac_aggr; |
| 19850 | if (ac_aggr.st_gen) |
| 19851 | return 0; |
| 19852 | ; |
| 19853 | return 0; |
| 19854 | } |
| 19855 | _ACEOF |
| 19856 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19857 | if { (ac_try="$ac_compile" |
| 19858 | case "(($ac_try" in |
| 19859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19860 | *) ac_try_echo=$ac_try;; |
| 19861 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19863 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19864 | ac_status=$? |
| 19865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19866 | rm -f conftest.er1 |
| 19867 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19869 | (exit $ac_status); } && { |
| 19870 | test -z "$ac_c_werror_flag" || |
| 19871 | test ! -s conftest.err |
| 19872 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19873 | ac_cv_member_struct_stat_st_gen=yes |
| 19874 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19875 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19877 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19878 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19879 | /* confdefs.h. */ |
| 19880 | _ACEOF |
| 19881 | cat confdefs.h >>conftest.$ac_ext |
| 19882 | cat >>conftest.$ac_ext <<_ACEOF |
| 19883 | /* end confdefs.h. */ |
| 19884 | $ac_includes_default |
| 19885 | int |
| 19886 | main () |
| 19887 | { |
| 19888 | static struct stat ac_aggr; |
| 19889 | if (sizeof ac_aggr.st_gen) |
| 19890 | return 0; |
| 19891 | ; |
| 19892 | return 0; |
| 19893 | } |
| 19894 | _ACEOF |
| 19895 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19896 | if { (ac_try="$ac_compile" |
| 19897 | case "(($ac_try" in |
| 19898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19899 | *) ac_try_echo=$ac_try;; |
| 19900 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19902 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19903 | ac_status=$? |
| 19904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19905 | rm -f conftest.er1 |
| 19906 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19908 | (exit $ac_status); } && { |
| 19909 | test -z "$ac_c_werror_flag" || |
| 19910 | test ! -s conftest.err |
| 19911 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19912 | ac_cv_member_struct_stat_st_gen=yes |
| 19913 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19914 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19917 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19918 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19919 | |
| 19920 | 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] | 19921 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19922 | |
| 19923 | 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] | 19924 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19925 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 19926 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 19927 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19928 | |
| 19929 | cat >>confdefs.h <<_ACEOF |
| 19930 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 19931 | _ACEOF |
| 19932 | |
| 19933 | |
| 19934 | fi |
| 19935 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19936 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 19937 | 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] | 19938 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19940 | else |
| 19941 | cat >conftest.$ac_ext <<_ACEOF |
| 19942 | /* confdefs.h. */ |
| 19943 | _ACEOF |
| 19944 | cat confdefs.h >>conftest.$ac_ext |
| 19945 | cat >>conftest.$ac_ext <<_ACEOF |
| 19946 | /* end confdefs.h. */ |
| 19947 | $ac_includes_default |
| 19948 | int |
| 19949 | main () |
| 19950 | { |
| 19951 | static struct stat ac_aggr; |
| 19952 | if (ac_aggr.st_birthtime) |
| 19953 | return 0; |
| 19954 | ; |
| 19955 | return 0; |
| 19956 | } |
| 19957 | _ACEOF |
| 19958 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19959 | if { (ac_try="$ac_compile" |
| 19960 | case "(($ac_try" in |
| 19961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19962 | *) ac_try_echo=$ac_try;; |
| 19963 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19965 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19966 | ac_status=$? |
| 19967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19968 | rm -f conftest.er1 |
| 19969 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19971 | (exit $ac_status); } && { |
| 19972 | test -z "$ac_c_werror_flag" || |
| 19973 | test ! -s conftest.err |
| 19974 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19975 | ac_cv_member_struct_stat_st_birthtime=yes |
| 19976 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 19977 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19980 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19981 | /* confdefs.h. */ |
| 19982 | _ACEOF |
| 19983 | cat confdefs.h >>conftest.$ac_ext |
| 19984 | cat >>conftest.$ac_ext <<_ACEOF |
| 19985 | /* end confdefs.h. */ |
| 19986 | $ac_includes_default |
| 19987 | int |
| 19988 | main () |
| 19989 | { |
| 19990 | static struct stat ac_aggr; |
| 19991 | if (sizeof ac_aggr.st_birthtime) |
| 19992 | return 0; |
| 19993 | ; |
| 19994 | return 0; |
| 19995 | } |
| 19996 | _ACEOF |
| 19997 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19998 | if { (ac_try="$ac_compile" |
| 19999 | case "(($ac_try" in |
| 20000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20001 | *) ac_try_echo=$ac_try;; |
| 20002 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20004 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20005 | ac_status=$? |
| 20006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20007 | rm -f conftest.er1 |
| 20008 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20010 | (exit $ac_status); } && { |
| 20011 | test -z "$ac_c_werror_flag" || |
| 20012 | test ! -s conftest.err |
| 20013 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20014 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20015 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20016 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20018 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20019 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20020 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20021 | |
| 20022 | 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] | 20023 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20024 | |
| 20025 | 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] | 20026 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20027 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 20028 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 20029 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20030 | |
| 20031 | cat >>confdefs.h <<_ACEOF |
| 20032 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 20033 | _ACEOF |
| 20034 | |
| 20035 | |
| 20036 | fi |
| 20037 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20038 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20039 | 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] | 20040 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20044 | /* confdefs.h. */ |
| 20045 | _ACEOF |
| 20046 | cat confdefs.h >>conftest.$ac_ext |
| 20047 | cat >>conftest.$ac_ext <<_ACEOF |
| 20048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20049 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20050 | int |
| 20051 | main () |
| 20052 | { |
| 20053 | static struct stat ac_aggr; |
| 20054 | if (ac_aggr.st_blocks) |
| 20055 | return 0; |
| 20056 | ; |
| 20057 | return 0; |
| 20058 | } |
| 20059 | _ACEOF |
| 20060 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20061 | if { (ac_try="$ac_compile" |
| 20062 | case "(($ac_try" in |
| 20063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20064 | *) ac_try_echo=$ac_try;; |
| 20065 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20067 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20070 | rm -f conftest.er1 |
| 20071 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20073 | (exit $ac_status); } && { |
| 20074 | test -z "$ac_c_werror_flag" || |
| 20075 | test ! -s conftest.err |
| 20076 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20078 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20079 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20081 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20083 | /* confdefs.h. */ |
| 20084 | _ACEOF |
| 20085 | cat confdefs.h >>conftest.$ac_ext |
| 20086 | cat >>conftest.$ac_ext <<_ACEOF |
| 20087 | /* end confdefs.h. */ |
| 20088 | $ac_includes_default |
| 20089 | int |
| 20090 | main () |
| 20091 | { |
| 20092 | static struct stat ac_aggr; |
| 20093 | if (sizeof ac_aggr.st_blocks) |
| 20094 | return 0; |
| 20095 | ; |
| 20096 | return 0; |
| 20097 | } |
| 20098 | _ACEOF |
| 20099 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20100 | if { (ac_try="$ac_compile" |
| 20101 | case "(($ac_try" in |
| 20102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20103 | *) ac_try_echo=$ac_try;; |
| 20104 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20106 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20109 | rm -f conftest.er1 |
| 20110 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20112 | (exit $ac_status); } && { |
| 20113 | test -z "$ac_c_werror_flag" || |
| 20114 | test ! -s conftest.err |
| 20115 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20116 | ac_cv_member_struct_stat_st_blocks=yes |
| 20117 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20120 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20121 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20122 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20123 | |
| 20124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20125 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20126 | |
| 20127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20128 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20129 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20130 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 20131 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20133 | cat >>confdefs.h <<_ACEOF |
| 20134 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20135 | _ACEOF |
| 20136 | |
| 20137 | |
| 20138 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20139 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20141 | |
| 20142 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20143 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20144 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20145 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 20146 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20147 | esac |
| 20148 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20149 | fi |
| 20150 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20152 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20153 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 20154 | 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] | 20155 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20159 | /* confdefs.h. */ |
| 20160 | _ACEOF |
| 20161 | cat confdefs.h >>conftest.$ac_ext |
| 20162 | cat >>conftest.$ac_ext <<_ACEOF |
| 20163 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20164 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20165 | int |
| 20166 | main () |
| 20167 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20168 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20169 | ; |
| 20170 | return 0; |
| 20171 | } |
| 20172 | _ACEOF |
| 20173 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20174 | if { (ac_try="$ac_compile" |
| 20175 | case "(($ac_try" in |
| 20176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20177 | *) ac_try_echo=$ac_try;; |
| 20178 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20180 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20181 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20183 | rm -f conftest.er1 |
| 20184 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20186 | (exit $ac_status); } && { |
| 20187 | test -z "$ac_c_werror_flag" || |
| 20188 | test ! -s conftest.err |
| 20189 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20190 | ac_cv_header_time_altzone=yes |
| 20191 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20194 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20195 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20196 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20199 | fi |
| 20200 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20201 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 20202 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20203 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20204 | |
| 20205 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20206 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20207 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20208 | |
| 20209 | fi |
| 20210 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20211 | was_it_defined=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20212 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 20213 | 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] | 20214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20215 | /* confdefs.h. */ |
| 20216 | _ACEOF |
| 20217 | cat confdefs.h >>conftest.$ac_ext |
| 20218 | cat >>conftest.$ac_ext <<_ACEOF |
| 20219 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20220 | |
| 20221 | #include <sys/types.h> |
| 20222 | #include <sys/select.h> |
| 20223 | #include <sys/time.h> |
| 20224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20225 | int |
| 20226 | main () |
| 20227 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20228 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20229 | ; |
| 20230 | return 0; |
| 20231 | } |
| 20232 | _ACEOF |
| 20233 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20234 | if { (ac_try="$ac_compile" |
| 20235 | case "(($ac_try" in |
| 20236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20237 | *) ac_try_echo=$ac_try;; |
| 20238 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20240 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20241 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20243 | rm -f conftest.er1 |
| 20244 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20246 | (exit $ac_status); } && { |
| 20247 | test -z "$ac_c_werror_flag" || |
| 20248 | test ! -s conftest.err |
| 20249 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20250 | |
| 20251 | |
| 20252 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20253 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20254 | _ACEOF |
| 20255 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20256 | was_it_defined=yes |
| 20257 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20258 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20261 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20262 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20263 | fi |
| 20264 | |
| 20265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20266 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 20267 | echo "${ECHO_T}$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20268 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20269 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 20270 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20271 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20275 | /* confdefs.h. */ |
| 20276 | _ACEOF |
| 20277 | cat confdefs.h >>conftest.$ac_ext |
| 20278 | cat >>conftest.$ac_ext <<_ACEOF |
| 20279 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20280 | |
| 20281 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | int |
| 20283 | main () |
| 20284 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20285 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20286 | ; |
| 20287 | return 0; |
| 20288 | } |
| 20289 | _ACEOF |
| 20290 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20291 | if { (ac_try="$ac_compile" |
| 20292 | case "(($ac_try" in |
| 20293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20294 | *) ac_try_echo=$ac_try;; |
| 20295 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20297 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20298 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20300 | rm -f conftest.er1 |
| 20301 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20303 | (exit $ac_status); } && { |
| 20304 | test -z "$ac_c_werror_flag" || |
| 20305 | test ! -s conftest.err |
| 20306 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20307 | ac_cv_struct_addrinfo=yes |
| 20308 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20311 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20312 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20313 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20314 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20316 | fi |
| 20317 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20318 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 20319 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20320 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20321 | |
| 20322 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20323 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20324 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20325 | |
| 20326 | fi |
| 20327 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20328 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 20329 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20330 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20334 | /* confdefs.h. */ |
| 20335 | _ACEOF |
| 20336 | cat confdefs.h >>conftest.$ac_ext |
| 20337 | cat >>conftest.$ac_ext <<_ACEOF |
| 20338 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20339 | |
| 20340 | # include <sys/types.h> |
| 20341 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20342 | int |
| 20343 | main () |
| 20344 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20345 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20346 | ; |
| 20347 | return 0; |
| 20348 | } |
| 20349 | _ACEOF |
| 20350 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20351 | if { (ac_try="$ac_compile" |
| 20352 | case "(($ac_try" in |
| 20353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20354 | *) ac_try_echo=$ac_try;; |
| 20355 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20357 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20360 | rm -f conftest.er1 |
| 20361 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20363 | (exit $ac_status); } && { |
| 20364 | test -z "$ac_c_werror_flag" || |
| 20365 | test ! -s conftest.err |
| 20366 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20367 | ac_cv_struct_sockaddr_storage=yes |
| 20368 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20371 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20372 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20373 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20374 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20376 | fi |
| 20377 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20378 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 20379 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20380 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20381 | |
| 20382 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20383 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20384 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20385 | |
| 20386 | fi |
| 20387 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20388 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20389 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20390 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20391 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 20392 | 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] | 20393 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20397 | /* confdefs.h. */ |
| 20398 | _ACEOF |
| 20399 | cat confdefs.h >>conftest.$ac_ext |
| 20400 | cat >>conftest.$ac_ext <<_ACEOF |
| 20401 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20402 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20403 | int |
| 20404 | main () |
| 20405 | { |
| 20406 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20407 | test_array [0] = 0 |
| 20408 | |
| 20409 | ; |
| 20410 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20411 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20412 | _ACEOF |
| 20413 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20414 | if { (ac_try="$ac_compile" |
| 20415 | case "(($ac_try" in |
| 20416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20417 | *) ac_try_echo=$ac_try;; |
| 20418 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20420 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20423 | rm -f conftest.er1 |
| 20424 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20426 | (exit $ac_status); } && { |
| 20427 | test -z "$ac_c_werror_flag" || |
| 20428 | test ! -s conftest.err |
| 20429 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20430 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20431 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20434 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20435 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20437 | |
| 20438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20439 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20440 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 20441 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20442 | 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] | 20443 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20444 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20445 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20446 | |
| 20447 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20448 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20449 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 20450 | 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] | 20451 | if test "${ac_cv_c_const+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20453 | else |
| 20454 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20455 | /* confdefs.h. */ |
| 20456 | _ACEOF |
| 20457 | cat confdefs.h >>conftest.$ac_ext |
| 20458 | cat >>conftest.$ac_ext <<_ACEOF |
| 20459 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20461 | int |
| 20462 | main () |
| 20463 | { |
| 20464 | /* FIXME: Include the comments suggested by Paul. */ |
| 20465 | #ifndef __cplusplus |
| 20466 | /* Ultrix mips cc rejects this. */ |
| 20467 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20468 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20469 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20470 | char const *const *pcpcc; |
| 20471 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20472 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 20473 | struct point {int x, y;}; |
| 20474 | static struct point const zero = {0,0}; |
| 20475 | /* AIX XL C 1.02.0.0 rejects this. |
| 20476 | It does not let you subtract one const X* pointer from another in |
| 20477 | an arm of an if-expression whose if-part is not a constant |
| 20478 | expression */ |
| 20479 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20480 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20481 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20482 | ++pcpcc; |
| 20483 | ppc = (char**) pcpcc; |
| 20484 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | { /* SCO 3.2v4 cc rejects this. */ |
| 20486 | char *t; |
| 20487 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20489 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20490 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20491 | } |
| 20492 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20493 | int x[] = {25, 17}; |
| 20494 | const int *foo = &x[0]; |
| 20495 | ++foo; |
| 20496 | } |
| 20497 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20498 | typedef const int *iptr; |
| 20499 | iptr p = 0; |
| 20500 | ++p; |
| 20501 | } |
| 20502 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20503 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20504 | struct s { int j; const int *ap[3]; }; |
| 20505 | struct s *b; b->j = 5; |
| 20506 | } |
| 20507 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20508 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20509 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20510 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20511 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20512 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20514 | ; |
| 20515 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20516 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20517 | _ACEOF |
| 20518 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20519 | if { (ac_try="$ac_compile" |
| 20520 | case "(($ac_try" in |
| 20521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20522 | *) ac_try_echo=$ac_try;; |
| 20523 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20525 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20526 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20528 | rm -f conftest.er1 |
| 20529 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20531 | (exit $ac_status); } && { |
| 20532 | test -z "$ac_c_werror_flag" || |
| 20533 | test ! -s conftest.err |
| 20534 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20535 | ac_cv_c_const=yes |
| 20536 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20539 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20540 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20541 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20542 | |
| 20543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20544 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20545 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20546 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20547 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20548 | |
| 20549 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20550 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20552 | |
| 20553 | fi |
| 20554 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20555 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20556 | works=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20557 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 20558 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20560 | /* confdefs.h. */ |
| 20561 | _ACEOF |
| 20562 | cat confdefs.h >>conftest.$ac_ext |
| 20563 | cat >>conftest.$ac_ext <<_ACEOF |
| 20564 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20566 | int |
| 20567 | main () |
| 20568 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20569 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20570 | ; |
| 20571 | return 0; |
| 20572 | } |
| 20573 | _ACEOF |
| 20574 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20575 | if { (ac_try="$ac_compile" |
| 20576 | case "(($ac_try" in |
| 20577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20578 | *) ac_try_echo=$ac_try;; |
| 20579 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20581 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20584 | rm -f conftest.er1 |
| 20585 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20587 | (exit $ac_status); } && { |
| 20588 | test -z "$ac_c_werror_flag" || |
| 20589 | test ! -s conftest.err |
| 20590 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20591 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20592 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20596 | |
| 20597 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20598 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20599 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20600 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20601 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20602 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20603 | |
| 20604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20605 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20606 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20607 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20608 | works=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20609 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 20610 | 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] | 20611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20612 | /* confdefs.h. */ |
| 20613 | _ACEOF |
| 20614 | cat confdefs.h >>conftest.$ac_ext |
| 20615 | cat >>conftest.$ac_ext <<_ACEOF |
| 20616 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20618 | int |
| 20619 | main () |
| 20620 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20621 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20622 | ; |
| 20623 | return 0; |
| 20624 | } |
| 20625 | _ACEOF |
| 20626 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20627 | if { (ac_try="$ac_compile" |
| 20628 | case "(($ac_try" in |
| 20629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20630 | *) ac_try_echo=$ac_try;; |
| 20631 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20633 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20636 | rm -f conftest.er1 |
| 20637 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20639 | (exit $ac_status); } && { |
| 20640 | test -z "$ac_c_werror_flag" || |
| 20641 | test ! -s conftest.err |
| 20642 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20643 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20644 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20645 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20648 | |
| 20649 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20650 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20651 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20652 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20653 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20654 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20655 | |
| 20656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20657 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20658 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20659 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20660 | have_prototypes=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20661 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 20662 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20663 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20664 | /* confdefs.h. */ |
| 20665 | _ACEOF |
| 20666 | cat confdefs.h >>conftest.$ac_ext |
| 20667 | cat >>conftest.$ac_ext <<_ACEOF |
| 20668 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20669 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | int |
| 20671 | main () |
| 20672 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20673 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20674 | ; |
| 20675 | return 0; |
| 20676 | } |
| 20677 | _ACEOF |
| 20678 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20679 | if { (ac_try="$ac_compile" |
| 20680 | case "(($ac_try" in |
| 20681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20682 | *) ac_try_echo=$ac_try;; |
| 20683 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20685 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20686 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20688 | rm -f conftest.er1 |
| 20689 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20691 | (exit $ac_status); } && { |
| 20692 | test -z "$ac_c_werror_flag" || |
| 20693 | test ! -s conftest.err |
| 20694 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20695 | |
| 20696 | |
| 20697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20698 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20699 | _ACEOF |
| 20700 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20701 | have_prototypes=yes |
| 20702 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20703 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20707 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20708 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20709 | |
| 20710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20711 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 20712 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20713 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20714 | works=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20715 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 20716 | 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] | 20717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20718 | /* confdefs.h. */ |
| 20719 | _ACEOF |
| 20720 | cat confdefs.h >>conftest.$ac_ext |
| 20721 | cat >>conftest.$ac_ext <<_ACEOF |
| 20722 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20723 | |
| 20724 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20725 | int foo(int x, ...) { |
| 20726 | va_list va; |
| 20727 | va_start(va, x); |
| 20728 | va_arg(va, int); |
| 20729 | va_arg(va, char *); |
| 20730 | va_arg(va, double); |
| 20731 | return 0; |
| 20732 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20734 | int |
| 20735 | main () |
| 20736 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20737 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | ; |
| 20739 | return 0; |
| 20740 | } |
| 20741 | _ACEOF |
| 20742 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20743 | if { (ac_try="$ac_compile" |
| 20744 | case "(($ac_try" in |
| 20745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20746 | *) ac_try_echo=$ac_try;; |
| 20747 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20749 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20752 | rm -f conftest.er1 |
| 20753 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20755 | (exit $ac_status); } && { |
| 20756 | test -z "$ac_c_werror_flag" || |
| 20757 | test ! -s conftest.err |
| 20758 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20759 | |
| 20760 | |
| 20761 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20762 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20763 | _ACEOF |
| 20764 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20765 | works=yes |
| 20766 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20767 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20771 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20772 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20773 | |
| 20774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20775 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20776 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20777 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20778 | # check for socketpair |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20779 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 20780 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20781 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20782 | /* confdefs.h. */ |
| 20783 | _ACEOF |
| 20784 | cat confdefs.h >>conftest.$ac_ext |
| 20785 | cat >>conftest.$ac_ext <<_ACEOF |
| 20786 | /* end confdefs.h. */ |
| 20787 | |
| 20788 | #include <sys/types.h> |
| 20789 | #include <sys/socket.h> |
| 20790 | |
| 20791 | int |
| 20792 | main () |
| 20793 | { |
| 20794 | void *x=socketpair |
| 20795 | ; |
| 20796 | return 0; |
| 20797 | } |
| 20798 | _ACEOF |
| 20799 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20800 | if { (ac_try="$ac_compile" |
| 20801 | case "(($ac_try" in |
| 20802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20803 | *) ac_try_echo=$ac_try;; |
| 20804 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20806 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20809 | rm -f conftest.er1 |
| 20810 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20812 | (exit $ac_status); } && { |
| 20813 | test -z "$ac_c_werror_flag" || |
| 20814 | test ! -s conftest.err |
| 20815 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20816 | |
| 20817 | cat >>confdefs.h <<\_ACEOF |
| 20818 | #define HAVE_SOCKETPAIR 1 |
| 20819 | _ACEOF |
| 20820 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20821 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20822 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20823 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20824 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20826 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20827 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20828 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20829 | |
| 20830 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20831 | |
| 20832 | 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] | 20833 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20834 | # check if sockaddr has sa_len member |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20835 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 20836 | 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] | 20837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20838 | /* confdefs.h. */ |
| 20839 | _ACEOF |
| 20840 | cat confdefs.h >>conftest.$ac_ext |
| 20841 | cat >>conftest.$ac_ext <<_ACEOF |
| 20842 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20843 | #include <sys/types.h> |
| 20844 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20845 | int |
| 20846 | main () |
| 20847 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20848 | struct sockaddr x; |
| 20849 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20850 | ; |
| 20851 | return 0; |
| 20852 | } |
| 20853 | _ACEOF |
| 20854 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20855 | if { (ac_try="$ac_compile" |
| 20856 | case "(($ac_try" in |
| 20857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20858 | *) ac_try_echo=$ac_try;; |
| 20859 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20861 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20862 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20864 | rm -f conftest.er1 |
| 20865 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20867 | (exit $ac_status); } && { |
| 20868 | test -z "$ac_c_werror_flag" || |
| 20869 | test ! -s conftest.err |
| 20870 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20871 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20872 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20873 | |
| 20874 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20875 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20876 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20877 | |
| 20878 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20881 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20882 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20883 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20884 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20885 | |
| 20886 | 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] | 20887 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20888 | va_list_is_array=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20889 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 20890 | 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] | 20891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20892 | /* confdefs.h. */ |
| 20893 | _ACEOF |
| 20894 | cat confdefs.h >>conftest.$ac_ext |
| 20895 | cat >>conftest.$ac_ext <<_ACEOF |
| 20896 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20897 | |
| 20898 | #ifdef HAVE_STDARG_PROTOTYPES |
| 20899 | #include <stdarg.h> |
| 20900 | #else |
| 20901 | #include <varargs.h> |
| 20902 | #endif |
| 20903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20904 | int |
| 20905 | main () |
| 20906 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20907 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20908 | ; |
| 20909 | return 0; |
| 20910 | } |
| 20911 | _ACEOF |
| 20912 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20913 | if { (ac_try="$ac_compile" |
| 20914 | case "(($ac_try" in |
| 20915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20916 | *) ac_try_echo=$ac_try;; |
| 20917 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20919 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20922 | rm -f conftest.er1 |
| 20923 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20925 | (exit $ac_status); } && { |
| 20926 | test -z "$ac_c_werror_flag" || |
| 20927 | test ! -s conftest.err |
| 20928 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20929 | : |
| 20930 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20934 | |
| 20935 | |
| 20936 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20937 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20938 | _ACEOF |
| 20939 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20940 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20941 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20942 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20943 | |
| 20944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20945 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 20946 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20947 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20948 | # 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] | 20949 | |
| 20950 | |
| 20951 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20952 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 20953 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20954 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 20955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20958 | /* confdefs.h. */ |
| 20959 | _ACEOF |
| 20960 | cat confdefs.h >>conftest.$ac_ext |
| 20961 | cat >>conftest.$ac_ext <<_ACEOF |
| 20962 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20963 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 20964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20965 | #define gethostbyname_r innocuous_gethostbyname_r |
| 20966 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20967 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20968 | which can conflict with char gethostbyname_r (); below. |
| 20969 | 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] | 20970 | <limits.h> exists even on freestanding compilers. */ |
| 20971 | |
| 20972 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20973 | # include <limits.h> |
| 20974 | #else |
| 20975 | # include <assert.h> |
| 20976 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20977 | |
| 20978 | #undef gethostbyname_r |
| 20979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20980 | /* Override any GCC internal prototype to avoid an error. |
| 20981 | Use char because int might match the return type of a GCC |
| 20982 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20983 | #ifdef __cplusplus |
| 20984 | extern "C" |
| 20985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20986 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20987 | /* The GNU C library defines this for functions which it implements |
| 20988 | to always fail with ENOSYS. Some functions are actually named |
| 20989 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20990 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20991 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20992 | #endif |
| 20993 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20994 | int |
| 20995 | main () |
| 20996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20997 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20998 | ; |
| 20999 | return 0; |
| 21000 | } |
| 21001 | _ACEOF |
| 21002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21003 | if { (ac_try="$ac_link" |
| 21004 | case "(($ac_try" in |
| 21005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21006 | *) ac_try_echo=$ac_try;; |
| 21007 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21009 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21012 | rm -f conftest.er1 |
| 21013 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21015 | (exit $ac_status); } && { |
| 21016 | test -z "$ac_c_werror_flag" || |
| 21017 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21018 | } && test -s conftest$ac_exeext && |
| 21019 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21020 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21021 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 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 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21029 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21030 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21031 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 21032 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 21033 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21035 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21036 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21037 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21038 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21039 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 21040 | 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] | 21041 | OLD_CFLAGS=$CFLAGS |
| 21042 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21044 | /* confdefs.h. */ |
| 21045 | _ACEOF |
| 21046 | cat confdefs.h >>conftest.$ac_ext |
| 21047 | cat >>conftest.$ac_ext <<_ACEOF |
| 21048 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21049 | |
| 21050 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21052 | int |
| 21053 | main () |
| 21054 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21055 | |
| 21056 | char *name; |
| 21057 | struct hostent *he, *res; |
| 21058 | char buffer[2048]; |
| 21059 | int buflen = 2048; |
| 21060 | int h_errnop; |
| 21061 | |
| 21062 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21063 | |
| 21064 | ; |
| 21065 | return 0; |
| 21066 | } |
| 21067 | _ACEOF |
| 21068 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21069 | if { (ac_try="$ac_compile" |
| 21070 | case "(($ac_try" in |
| 21071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21072 | *) ac_try_echo=$ac_try;; |
| 21073 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21075 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21078 | rm -f conftest.er1 |
| 21079 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21081 | (exit $ac_status); } && { |
| 21082 | test -z "$ac_c_werror_flag" || |
| 21083 | test ! -s conftest.err |
| 21084 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21085 | |
| 21086 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21087 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21088 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21090 | |
| 21091 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21092 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21093 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21094 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21095 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21096 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21097 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21098 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21099 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21102 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21103 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21104 | echo "${ECHO_T}no" >&6; } |
| 21105 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 21106 | 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] | 21107 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21108 | /* confdefs.h. */ |
| 21109 | _ACEOF |
| 21110 | cat confdefs.h >>conftest.$ac_ext |
| 21111 | cat >>conftest.$ac_ext <<_ACEOF |
| 21112 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21113 | |
| 21114 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21116 | int |
| 21117 | main () |
| 21118 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21119 | |
| 21120 | char *name; |
| 21121 | struct hostent *he; |
| 21122 | char buffer[2048]; |
| 21123 | int buflen = 2048; |
| 21124 | int h_errnop; |
| 21125 | |
| 21126 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21127 | |
| 21128 | ; |
| 21129 | return 0; |
| 21130 | } |
| 21131 | _ACEOF |
| 21132 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21133 | if { (ac_try="$ac_compile" |
| 21134 | case "(($ac_try" in |
| 21135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21136 | *) ac_try_echo=$ac_try;; |
| 21137 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21139 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21142 | rm -f conftest.er1 |
| 21143 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21145 | (exit $ac_status); } && { |
| 21146 | test -z "$ac_c_werror_flag" || |
| 21147 | test ! -s conftest.err |
| 21148 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21149 | |
| 21150 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21151 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21152 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21154 | |
| 21155 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21156 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21157 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21158 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21159 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21160 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21161 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21162 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21166 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21167 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21168 | echo "${ECHO_T}no" >&6; } |
| 21169 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 21170 | 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] | 21171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21172 | /* confdefs.h. */ |
| 21173 | _ACEOF |
| 21174 | cat confdefs.h >>conftest.$ac_ext |
| 21175 | cat >>conftest.$ac_ext <<_ACEOF |
| 21176 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21177 | |
| 21178 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | int |
| 21181 | main () |
| 21182 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21183 | |
| 21184 | char *name; |
| 21185 | struct hostent *he; |
| 21186 | struct hostent_data data; |
| 21187 | |
| 21188 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21189 | |
| 21190 | ; |
| 21191 | return 0; |
| 21192 | } |
| 21193 | _ACEOF |
| 21194 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21195 | if { (ac_try="$ac_compile" |
| 21196 | case "(($ac_try" in |
| 21197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21198 | *) ac_try_echo=$ac_try;; |
| 21199 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21201 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21202 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21204 | rm -f conftest.er1 |
| 21205 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21207 | (exit $ac_status); } && { |
| 21208 | test -z "$ac_c_werror_flag" || |
| 21209 | test ! -s conftest.err |
| 21210 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21211 | |
| 21212 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21213 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21214 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21216 | |
| 21217 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21218 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21219 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21220 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21221 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21222 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21224 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21228 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21229 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21230 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21231 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21232 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21233 | |
| 21234 | 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] | 21235 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21236 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21237 | |
| 21238 | 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] | 21239 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21241 | |
| 21242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21243 | CFLAGS=$OLD_CFLAGS |
| 21244 | |
| 21245 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21247 | |
| 21248 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21249 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21251 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21256 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21257 | /* confdefs.h. */ |
| 21258 | _ACEOF |
| 21259 | cat confdefs.h >>conftest.$ac_ext |
| 21260 | cat >>conftest.$ac_ext <<_ACEOF |
| 21261 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21264 | #define $ac_func innocuous_$ac_func |
| 21265 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21266 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21267 | which can conflict with char $ac_func (); below. |
| 21268 | 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] | 21269 | <limits.h> exists even on freestanding compilers. */ |
| 21270 | |
| 21271 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21272 | # include <limits.h> |
| 21273 | #else |
| 21274 | # include <assert.h> |
| 21275 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21276 | |
| 21277 | #undef $ac_func |
| 21278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21279 | /* Override any GCC internal prototype to avoid an error. |
| 21280 | Use char because int might match the return type of a GCC |
| 21281 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | #ifdef __cplusplus |
| 21283 | extern "C" |
| 21284 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21285 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21286 | /* The GNU C library defines this for functions which it implements |
| 21287 | to always fail with ENOSYS. Some functions are actually named |
| 21288 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21290 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21291 | #endif |
| 21292 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21293 | int |
| 21294 | main () |
| 21295 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21296 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21297 | ; |
| 21298 | return 0; |
| 21299 | } |
| 21300 | _ACEOF |
| 21301 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21302 | if { (ac_try="$ac_link" |
| 21303 | case "(($ac_try" in |
| 21304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21305 | *) ac_try_echo=$ac_try;; |
| 21306 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21308 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21309 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21311 | rm -f conftest.er1 |
| 21312 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21314 | (exit $ac_status); } && { |
| 21315 | test -z "$ac_c_werror_flag" || |
| 21316 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21317 | } && test -s conftest$ac_exeext && |
| 21318 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21319 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21320 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21324 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21325 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21326 | |
| 21327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21328 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21329 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21330 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21331 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21332 | echo "${ECHO_T}$ac_res" >&6; } |
| 21333 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21334 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21336 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21337 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21338 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21339 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21340 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21341 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21342 | fi |
| 21343 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21344 | |
| 21345 | |
| 21346 | |
| 21347 | |
| 21348 | |
| 21349 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21350 | # checks for system services |
| 21351 | # (none yet) |
| 21352 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21353 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21354 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 21355 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21356 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21360 | /* confdefs.h. */ |
| 21361 | _ACEOF |
| 21362 | cat confdefs.h >>conftest.$ac_ext |
| 21363 | cat >>conftest.$ac_ext <<_ACEOF |
| 21364 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21365 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 21366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21367 | #define __fpu_control innocuous___fpu_control |
| 21368 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21369 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21370 | which can conflict with char __fpu_control (); below. |
| 21371 | 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] | 21372 | <limits.h> exists even on freestanding compilers. */ |
| 21373 | |
| 21374 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21375 | # include <limits.h> |
| 21376 | #else |
| 21377 | # include <assert.h> |
| 21378 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21379 | |
| 21380 | #undef __fpu_control |
| 21381 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21382 | /* Override any GCC internal prototype to avoid an error. |
| 21383 | Use char because int might match the return type of a GCC |
| 21384 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21385 | #ifdef __cplusplus |
| 21386 | extern "C" |
| 21387 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21388 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21389 | /* The GNU C library defines this for functions which it implements |
| 21390 | to always fail with ENOSYS. Some functions are actually named |
| 21391 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21392 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21393 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21394 | #endif |
| 21395 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21396 | int |
| 21397 | main () |
| 21398 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21399 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21400 | ; |
| 21401 | return 0; |
| 21402 | } |
| 21403 | _ACEOF |
| 21404 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21405 | if { (ac_try="$ac_link" |
| 21406 | case "(($ac_try" in |
| 21407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21408 | *) ac_try_echo=$ac_try;; |
| 21409 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21411 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21412 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21414 | rm -f conftest.er1 |
| 21415 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21417 | (exit $ac_status); } && { |
| 21418 | test -z "$ac_c_werror_flag" || |
| 21419 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21420 | } && test -s conftest$ac_exeext && |
| 21421 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21422 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21423 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21426 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21427 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21428 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21429 | |
| 21430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21431 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21432 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21433 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 21434 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 21435 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21436 | : |
| 21437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21439 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 21440 | 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] | 21441 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21444 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21445 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21447 | /* confdefs.h. */ |
| 21448 | _ACEOF |
| 21449 | cat confdefs.h >>conftest.$ac_ext |
| 21450 | cat >>conftest.$ac_ext <<_ACEOF |
| 21451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21452 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21453 | /* Override any GCC internal prototype to avoid an error. |
| 21454 | Use char because int might match the return type of a GCC |
| 21455 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21456 | #ifdef __cplusplus |
| 21457 | extern "C" |
| 21458 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21459 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21460 | int |
| 21461 | main () |
| 21462 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21463 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21464 | ; |
| 21465 | return 0; |
| 21466 | } |
| 21467 | _ACEOF |
| 21468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21469 | if { (ac_try="$ac_link" |
| 21470 | case "(($ac_try" in |
| 21471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21472 | *) ac_try_echo=$ac_try;; |
| 21473 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21475 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21478 | rm -f conftest.er1 |
| 21479 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21481 | (exit $ac_status); } && { |
| 21482 | test -z "$ac_c_werror_flag" || |
| 21483 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21484 | } && test -s conftest$ac_exeext && |
| 21485 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21486 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21487 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21490 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21491 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21492 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21493 | |
| 21494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21495 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21496 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21497 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21498 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 21499 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 21500 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21501 | cat >>confdefs.h <<_ACEOF |
| 21502 | #define HAVE_LIBIEEE 1 |
| 21503 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21504 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21505 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21506 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21507 | fi |
| 21508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21509 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21510 | fi |
| 21511 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21512 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21513 | # Check for --with-fpectl |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21514 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 21515 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21516 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21517 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21518 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21519 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21520 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21521 | then |
| 21522 | |
| 21523 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21524 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21525 | _ACEOF |
| 21526 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21527 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21528 | echo "${ECHO_T}yes" >&6; } |
| 21529 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 21530 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21531 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21532 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21533 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21534 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21535 | fi |
| 21536 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21537 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21538 | # check for --with-libm=... |
| 21539 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21540 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21541 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21542 | *) LIBM=-lm |
| 21543 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21544 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 21545 | 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] | 21546 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21547 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21548 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21549 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21550 | if test "$withval" = no |
| 21551 | then LIBM= |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21552 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 21553 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21554 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21555 | then LIBM=$withval |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21556 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 21557 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 21558 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 21559 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21560 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21561 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21562 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21563 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 21564 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21565 | fi |
| 21566 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21567 | |
| 21568 | # check for --with-libc=... |
| 21569 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21570 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 21571 | 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] | 21572 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21573 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21574 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21575 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21576 | if test "$withval" = no |
| 21577 | then LIBC= |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21578 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 21579 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21580 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21581 | then LIBC=$withval |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21582 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 21583 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 21584 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 21585 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21586 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21587 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21588 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21589 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 21590 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21591 | fi |
| 21592 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21593 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21594 | # ************************************ |
| 21595 | # * Check for mathematical functions * |
| 21596 | # ************************************ |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21597 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21598 | LIBS_SAVE=$LIBS |
| 21599 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21600 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21601 | # Detect whether system arithmetic is subject to x87-style double |
| 21602 | # rounding issues. The result of this test has little meaning on non |
| 21603 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 21604 | # mode is round-to-nearest and double rounding issues are present, and |
| 21605 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21606 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 21607 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21608 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21610 | else |
| 21611 | |
| 21612 | if test "$cross_compiling" = yes; then |
| 21613 | ac_cv_x87_double_rounding=no |
| 21614 | else |
| 21615 | cat >conftest.$ac_ext <<_ACEOF |
| 21616 | /* confdefs.h. */ |
| 21617 | _ACEOF |
| 21618 | cat confdefs.h >>conftest.$ac_ext |
| 21619 | cat >>conftest.$ac_ext <<_ACEOF |
| 21620 | /* end confdefs.h. */ |
| 21621 | |
| 21622 | #include <stdlib.h> |
| 21623 | #include <math.h> |
| 21624 | int main() { |
| 21625 | volatile double x, y, z; |
| 21626 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 21627 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 21628 | y = 1./x; |
| 21629 | if (y != 1.) |
| 21630 | exit(0); |
| 21631 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 21632 | x = 1e16; |
| 21633 | y = 2.99999; |
| 21634 | z = x + y; |
| 21635 | if (z != 1e16+4.) |
| 21636 | exit(0); |
| 21637 | /* both tests show evidence of double rounding */ |
| 21638 | exit(1); |
| 21639 | } |
| 21640 | |
| 21641 | _ACEOF |
| 21642 | rm -f conftest$ac_exeext |
| 21643 | if { (ac_try="$ac_link" |
| 21644 | case "(($ac_try" in |
| 21645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21646 | *) ac_try_echo=$ac_try;; |
| 21647 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21649 | (eval "$ac_link") 2>&5 |
| 21650 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21652 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21653 | { (case "(($ac_try" in |
| 21654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21655 | *) ac_try_echo=$ac_try;; |
| 21656 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21658 | (eval "$ac_try") 2>&5 |
| 21659 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21661 | (exit $ac_status); }; }; then |
| 21662 | ac_cv_x87_double_rounding=no |
| 21663 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21664 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21665 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21667 | |
| 21668 | ( exit $ac_status ) |
| 21669 | ac_cv_x87_double_rounding=yes |
| 21670 | fi |
| 21671 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21672 | fi |
| 21673 | |
| 21674 | |
| 21675 | fi |
| 21676 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21677 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 21678 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21679 | if test "$ac_cv_x87_double_rounding" = yes |
| 21680 | then |
| 21681 | |
| 21682 | cat >>confdefs.h <<\_ACEOF |
| 21683 | #define X87_DOUBLE_ROUNDING 1 |
| 21684 | _ACEOF |
| 21685 | |
| 21686 | fi |
| 21687 | |
| 21688 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21689 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 21690 | # -0. on some architectures. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21691 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 21692 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21693 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21695 | else |
| 21696 | |
| 21697 | if test "$cross_compiling" = yes; then |
| 21698 | ac_cv_tanh_preserves_zero_sign=no |
| 21699 | else |
| 21700 | cat >conftest.$ac_ext <<_ACEOF |
| 21701 | /* confdefs.h. */ |
| 21702 | _ACEOF |
| 21703 | cat confdefs.h >>conftest.$ac_ext |
| 21704 | cat >>conftest.$ac_ext <<_ACEOF |
| 21705 | /* end confdefs.h. */ |
| 21706 | |
| 21707 | #include <math.h> |
| 21708 | #include <stdlib.h> |
| 21709 | int main() { |
| 21710 | /* return 0 if either negative zeros don't exist |
| 21711 | on this platform or if negative zeros exist |
| 21712 | and tanh(-0.) == -0. */ |
| 21713 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 21714 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 21715 | else exit(1); |
| 21716 | } |
| 21717 | |
| 21718 | _ACEOF |
| 21719 | rm -f conftest$ac_exeext |
| 21720 | if { (ac_try="$ac_link" |
| 21721 | case "(($ac_try" in |
| 21722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21723 | *) ac_try_echo=$ac_try;; |
| 21724 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21726 | (eval "$ac_link") 2>&5 |
| 21727 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21730 | { (case "(($ac_try" in |
| 21731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21732 | *) ac_try_echo=$ac_try;; |
| 21733 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21735 | (eval "$ac_try") 2>&5 |
| 21736 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21738 | (exit $ac_status); }; }; then |
| 21739 | ac_cv_tanh_preserves_zero_sign=yes |
| 21740 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21741 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21742 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21744 | |
| 21745 | ( exit $ac_status ) |
| 21746 | ac_cv_tanh_preserves_zero_sign=no |
| 21747 | fi |
| 21748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21749 | fi |
| 21750 | |
| 21751 | |
| 21752 | fi |
| 21753 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21754 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 21755 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21756 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 21757 | then |
| 21758 | |
| 21759 | cat >>confdefs.h <<\_ACEOF |
| 21760 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 21761 | _ACEOF |
| 21762 | |
| 21763 | fi |
| 21764 | |
| 21765 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 21766 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21767 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21768 | |
| 21769 | |
| 21770 | |
| 21771 | |
| 21772 | |
Mark Dickinson | 0f63257 | 2009-01-05 17:10:09 +0000 | [diff] [blame] | 21773 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21774 | do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21775 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21776 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21777 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21778 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21780 | else |
| 21781 | cat >conftest.$ac_ext <<_ACEOF |
| 21782 | /* confdefs.h. */ |
| 21783 | _ACEOF |
| 21784 | cat confdefs.h >>conftest.$ac_ext |
| 21785 | cat >>conftest.$ac_ext <<_ACEOF |
| 21786 | /* end confdefs.h. */ |
| 21787 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21789 | #define $ac_func innocuous_$ac_func |
| 21790 | |
| 21791 | /* System header to define __stub macros and hopefully few prototypes, |
| 21792 | which can conflict with char $ac_func (); below. |
| 21793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21794 | <limits.h> exists even on freestanding compilers. */ |
| 21795 | |
| 21796 | #ifdef __STDC__ |
| 21797 | # include <limits.h> |
| 21798 | #else |
| 21799 | # include <assert.h> |
| 21800 | #endif |
| 21801 | |
| 21802 | #undef $ac_func |
| 21803 | |
| 21804 | /* Override any GCC internal prototype to avoid an error. |
| 21805 | Use char because int might match the return type of a GCC |
| 21806 | builtin and then its argument prototype would still apply. */ |
| 21807 | #ifdef __cplusplus |
| 21808 | extern "C" |
| 21809 | #endif |
| 21810 | char $ac_func (); |
| 21811 | /* The GNU C library defines this for functions which it implements |
| 21812 | to always fail with ENOSYS. Some functions are actually named |
| 21813 | something starting with __ and the normal name is an alias. */ |
| 21814 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21815 | choke me |
| 21816 | #endif |
| 21817 | |
| 21818 | int |
| 21819 | main () |
| 21820 | { |
| 21821 | return $ac_func (); |
| 21822 | ; |
| 21823 | return 0; |
| 21824 | } |
| 21825 | _ACEOF |
| 21826 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21827 | if { (ac_try="$ac_link" |
| 21828 | case "(($ac_try" in |
| 21829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21830 | *) ac_try_echo=$ac_try;; |
| 21831 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21833 | (eval "$ac_link") 2>conftest.er1 |
| 21834 | ac_status=$? |
| 21835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21836 | rm -f conftest.er1 |
| 21837 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21839 | (exit $ac_status); } && { |
| 21840 | test -z "$ac_c_werror_flag" || |
| 21841 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21842 | } && test -s conftest$ac_exeext && |
| 21843 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21844 | eval "$as_ac_var=yes" |
| 21845 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21846 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21848 | |
| 21849 | eval "$as_ac_var=no" |
| 21850 | fi |
| 21851 | |
| 21852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21853 | conftest$ac_exeext conftest.$ac_ext |
| 21854 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21855 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21857 | echo "${ECHO_T}$ac_res" >&6; } |
| 21858 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21859 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21861 | _ACEOF |
| 21862 | |
| 21863 | fi |
| 21864 | done |
| 21865 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21866 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 21867 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21868 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21870 | else |
| 21871 | cat >conftest.$ac_ext <<_ACEOF |
| 21872 | /* confdefs.h. */ |
| 21873 | _ACEOF |
| 21874 | cat confdefs.h >>conftest.$ac_ext |
| 21875 | cat >>conftest.$ac_ext <<_ACEOF |
| 21876 | /* end confdefs.h. */ |
| 21877 | #include <math.h> |
| 21878 | |
| 21879 | int |
| 21880 | main () |
| 21881 | { |
| 21882 | #ifndef isinf |
| 21883 | (void) isinf; |
| 21884 | #endif |
| 21885 | |
| 21886 | ; |
| 21887 | return 0; |
| 21888 | } |
| 21889 | _ACEOF |
| 21890 | rm -f conftest.$ac_objext |
| 21891 | if { (ac_try="$ac_compile" |
| 21892 | case "(($ac_try" in |
| 21893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21894 | *) ac_try_echo=$ac_try;; |
| 21895 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21897 | (eval "$ac_compile") 2>conftest.er1 |
| 21898 | ac_status=$? |
| 21899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21900 | rm -f conftest.er1 |
| 21901 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21903 | (exit $ac_status); } && { |
| 21904 | test -z "$ac_c_werror_flag" || |
| 21905 | test ! -s conftest.err |
| 21906 | } && test -s conftest.$ac_objext; then |
| 21907 | ac_cv_have_decl_isinf=yes |
| 21908 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21909 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21911 | |
| 21912 | ac_cv_have_decl_isinf=no |
| 21913 | fi |
| 21914 | |
| 21915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21916 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21917 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 21918 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 21919 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21920 | |
| 21921 | cat >>confdefs.h <<_ACEOF |
| 21922 | #define HAVE_DECL_ISINF 1 |
| 21923 | _ACEOF |
| 21924 | |
| 21925 | |
| 21926 | else |
| 21927 | cat >>confdefs.h <<_ACEOF |
| 21928 | #define HAVE_DECL_ISINF 0 |
| 21929 | _ACEOF |
| 21930 | |
| 21931 | |
| 21932 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21933 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 21934 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21935 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21937 | else |
| 21938 | cat >conftest.$ac_ext <<_ACEOF |
| 21939 | /* confdefs.h. */ |
| 21940 | _ACEOF |
| 21941 | cat confdefs.h >>conftest.$ac_ext |
| 21942 | cat >>conftest.$ac_ext <<_ACEOF |
| 21943 | /* end confdefs.h. */ |
| 21944 | #include <math.h> |
| 21945 | |
| 21946 | int |
| 21947 | main () |
| 21948 | { |
| 21949 | #ifndef isnan |
| 21950 | (void) isnan; |
| 21951 | #endif |
| 21952 | |
| 21953 | ; |
| 21954 | return 0; |
| 21955 | } |
| 21956 | _ACEOF |
| 21957 | rm -f conftest.$ac_objext |
| 21958 | if { (ac_try="$ac_compile" |
| 21959 | case "(($ac_try" in |
| 21960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21961 | *) ac_try_echo=$ac_try;; |
| 21962 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21964 | (eval "$ac_compile") 2>conftest.er1 |
| 21965 | ac_status=$? |
| 21966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21967 | rm -f conftest.er1 |
| 21968 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21970 | (exit $ac_status); } && { |
| 21971 | test -z "$ac_c_werror_flag" || |
| 21972 | test ! -s conftest.err |
| 21973 | } && test -s conftest.$ac_objext; then |
| 21974 | ac_cv_have_decl_isnan=yes |
| 21975 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21976 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21978 | |
| 21979 | ac_cv_have_decl_isnan=no |
| 21980 | fi |
| 21981 | |
| 21982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21983 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 21984 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 21985 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 21986 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21987 | |
| 21988 | cat >>confdefs.h <<_ACEOF |
| 21989 | #define HAVE_DECL_ISNAN 1 |
| 21990 | _ACEOF |
| 21991 | |
| 21992 | |
| 21993 | else |
| 21994 | cat >>confdefs.h <<_ACEOF |
| 21995 | #define HAVE_DECL_ISNAN 0 |
| 21996 | _ACEOF |
| 21997 | |
| 21998 | |
| 21999 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22000 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 22001 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22002 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22004 | else |
| 22005 | cat >conftest.$ac_ext <<_ACEOF |
| 22006 | /* confdefs.h. */ |
| 22007 | _ACEOF |
| 22008 | cat confdefs.h >>conftest.$ac_ext |
| 22009 | cat >>conftest.$ac_ext <<_ACEOF |
| 22010 | /* end confdefs.h. */ |
| 22011 | #include <math.h> |
| 22012 | |
| 22013 | int |
| 22014 | main () |
| 22015 | { |
| 22016 | #ifndef isfinite |
| 22017 | (void) isfinite; |
| 22018 | #endif |
| 22019 | |
| 22020 | ; |
| 22021 | return 0; |
| 22022 | } |
| 22023 | _ACEOF |
| 22024 | rm -f conftest.$ac_objext |
| 22025 | if { (ac_try="$ac_compile" |
| 22026 | case "(($ac_try" in |
| 22027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22028 | *) ac_try_echo=$ac_try;; |
| 22029 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22031 | (eval "$ac_compile") 2>conftest.er1 |
| 22032 | ac_status=$? |
| 22033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22034 | rm -f conftest.er1 |
| 22035 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22037 | (exit $ac_status); } && { |
| 22038 | test -z "$ac_c_werror_flag" || |
| 22039 | test ! -s conftest.err |
| 22040 | } && test -s conftest.$ac_objext; then |
| 22041 | ac_cv_have_decl_isfinite=yes |
| 22042 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22043 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22045 | |
| 22046 | ac_cv_have_decl_isfinite=no |
| 22047 | fi |
| 22048 | |
| 22049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22050 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22051 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 22052 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 22053 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22054 | |
| 22055 | cat >>confdefs.h <<_ACEOF |
| 22056 | #define HAVE_DECL_ISFINITE 1 |
| 22057 | _ACEOF |
| 22058 | |
| 22059 | |
| 22060 | else |
| 22061 | cat >>confdefs.h <<_ACEOF |
| 22062 | #define HAVE_DECL_ISFINITE 0 |
| 22063 | _ACEOF |
| 22064 | |
| 22065 | |
| 22066 | fi |
| 22067 | |
| 22068 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22069 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 22070 | LIBS=$LIBS_SAVE |
| 22071 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 22072 | # determine what size digit to use for Python's longs |
| 22073 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 22074 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
| 22075 | # Check whether --enable-big-digits was given. |
| 22076 | if test "${enable_big_digits+set}" = set; then |
| 22077 | enableval=$enable_big_digits; case $enable_big_digits in |
| 22078 | yes) |
| 22079 | enable_big_digits=30 ;; |
| 22080 | no) |
| 22081 | enable_big_digits=15 ;; |
| 22082 | 15|30) |
| 22083 | ;; |
| 22084 | *) |
| 22085 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 22086 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
| 22087 | { (exit 1); exit 1; }; } ;; |
| 22088 | esac |
| 22089 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 22090 | echo "${ECHO_T}$enable_big_digits" >&6; } |
| 22091 | |
| 22092 | cat >>confdefs.h <<_ACEOF |
| 22093 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 22094 | _ACEOF |
| 22095 | |
| 22096 | |
| 22097 | else |
| 22098 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 22099 | echo "${ECHO_T}no value specified" >&6; } |
| 22100 | fi |
| 22101 | |
| 22102 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22103 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22104 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22105 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22106 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22107 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22109 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22110 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22111 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22113 | # Is the header compilable? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22114 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 22115 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22116 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22117 | /* confdefs.h. */ |
| 22118 | _ACEOF |
| 22119 | cat confdefs.h >>conftest.$ac_ext |
| 22120 | cat >>conftest.$ac_ext <<_ACEOF |
| 22121 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22122 | $ac_includes_default |
| 22123 | #include <wchar.h> |
| 22124 | _ACEOF |
| 22125 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22126 | if { (ac_try="$ac_compile" |
| 22127 | case "(($ac_try" in |
| 22128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22129 | *) ac_try_echo=$ac_try;; |
| 22130 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22132 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22133 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22135 | rm -f conftest.er1 |
| 22136 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22138 | (exit $ac_status); } && { |
| 22139 | test -z "$ac_c_werror_flag" || |
| 22140 | test ! -s conftest.err |
| 22141 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22142 | ac_header_compiler=yes |
| 22143 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22146 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22147 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22148 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22149 | |
| 22150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22151 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22152 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22153 | |
| 22154 | # Is the header present? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22155 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 22156 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22158 | /* confdefs.h. */ |
| 22159 | _ACEOF |
| 22160 | cat confdefs.h >>conftest.$ac_ext |
| 22161 | cat >>conftest.$ac_ext <<_ACEOF |
| 22162 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22163 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22164 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22165 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22166 | case "(($ac_try" in |
| 22167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22168 | *) ac_try_echo=$ac_try;; |
| 22169 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22172 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22173 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22174 | rm -f conftest.er1 |
| 22175 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22177 | (exit $ac_status); } >/dev/null && { |
| 22178 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22179 | test ! -s conftest.err |
| 22180 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22181 | ac_header_preproc=yes |
| 22182 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22186 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22187 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22189 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22190 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22191 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22192 | |
| 22193 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22195 | yes:no: ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22196 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22197 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22198 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 22199 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22200 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22201 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22202 | no:yes:* ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22203 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 22204 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 22205 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 22206 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 22207 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 22208 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 22209 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22210 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22211 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 22212 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 22213 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 22214 | 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] | 22215 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22216 | ## ------------------------------------------------ ## |
| 22217 | ## Report this to http://www.python.org/python-bugs ## |
| 22218 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22219 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22220 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22221 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22222 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22223 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22224 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22225 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22227 | else |
| 22228 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22229 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22230 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22231 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22232 | |
| 22233 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22234 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22235 | |
| 22236 | |
| 22237 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22238 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22239 | _ACEOF |
| 22240 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22241 | wchar_h="yes" |
| 22242 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22244 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22245 | |
| 22246 | fi |
| 22247 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22249 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22250 | # determine wchar_t size |
| 22251 | if test "$wchar_h" = yes |
| 22252 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22253 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 22254 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 22255 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 22256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22257 | else |
| 22258 | cat >conftest.$ac_ext <<_ACEOF |
| 22259 | /* confdefs.h. */ |
| 22260 | _ACEOF |
| 22261 | cat confdefs.h >>conftest.$ac_ext |
| 22262 | cat >>conftest.$ac_ext <<_ACEOF |
| 22263 | /* end confdefs.h. */ |
| 22264 | #include <wchar.h> |
| 22265 | |
| 22266 | typedef wchar_t ac__type_new_; |
| 22267 | int |
| 22268 | main () |
| 22269 | { |
| 22270 | if ((ac__type_new_ *) 0) |
| 22271 | return 0; |
| 22272 | if (sizeof (ac__type_new_)) |
| 22273 | return 0; |
| 22274 | ; |
| 22275 | return 0; |
| 22276 | } |
| 22277 | _ACEOF |
| 22278 | rm -f conftest.$ac_objext |
| 22279 | if { (ac_try="$ac_compile" |
| 22280 | case "(($ac_try" in |
| 22281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22282 | *) ac_try_echo=$ac_try;; |
| 22283 | esac |
| 22284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22285 | (eval "$ac_compile") 2>conftest.er1 |
| 22286 | ac_status=$? |
| 22287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22288 | rm -f conftest.er1 |
| 22289 | cat conftest.err >&5 |
| 22290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22291 | (exit $ac_status); } && { |
| 22292 | test -z "$ac_c_werror_flag" || |
| 22293 | test ! -s conftest.err |
| 22294 | } && test -s conftest.$ac_objext; then |
| 22295 | ac_cv_type_wchar_t=yes |
| 22296 | else |
| 22297 | echo "$as_me: failed program was:" >&5 |
| 22298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22299 | |
| 22300 | ac_cv_type_wchar_t=no |
| 22301 | fi |
| 22302 | |
| 22303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22304 | fi |
| 22305 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 22306 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 22307 | |
| 22308 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22309 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 22310 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 22311 | # This bug is HP SR number 8606223364. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22312 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 22313 | 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] | 22314 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22317 | if test "$cross_compiling" = yes; then |
| 22318 | # Depending upon the size, compute the lo and hi bounds. |
| 22319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22325 | #include <wchar.h> |
| 22326 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22327 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22328 | int |
| 22329 | main () |
| 22330 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22331 | 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] | 22332 | test_array [0] = 0 |
| 22333 | |
| 22334 | ; |
| 22335 | return 0; |
| 22336 | } |
| 22337 | _ACEOF |
| 22338 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22339 | if { (ac_try="$ac_compile" |
| 22340 | case "(($ac_try" in |
| 22341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22342 | *) ac_try_echo=$ac_try;; |
| 22343 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22345 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22346 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22348 | rm -f conftest.er1 |
| 22349 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22351 | (exit $ac_status); } && { |
| 22352 | test -z "$ac_c_werror_flag" || |
| 22353 | test ! -s conftest.err |
| 22354 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22355 | ac_lo=0 ac_mid=0 |
| 22356 | while :; do |
| 22357 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | /* confdefs.h. */ |
| 22359 | _ACEOF |
| 22360 | cat confdefs.h >>conftest.$ac_ext |
| 22361 | cat >>conftest.$ac_ext <<_ACEOF |
| 22362 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22363 | #include <wchar.h> |
| 22364 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22365 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22366 | int |
| 22367 | main () |
| 22368 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22369 | 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] | 22370 | test_array [0] = 0 |
| 22371 | |
| 22372 | ; |
| 22373 | return 0; |
| 22374 | } |
| 22375 | _ACEOF |
| 22376 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22377 | if { (ac_try="$ac_compile" |
| 22378 | case "(($ac_try" in |
| 22379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22380 | *) ac_try_echo=$ac_try;; |
| 22381 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22383 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22384 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22386 | rm -f conftest.er1 |
| 22387 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22389 | (exit $ac_status); } && { |
| 22390 | test -z "$ac_c_werror_flag" || |
| 22391 | test ! -s conftest.err |
| 22392 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22393 | ac_hi=$ac_mid; break |
| 22394 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22395 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22397 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22398 | ac_lo=`expr $ac_mid + 1` |
| 22399 | if test $ac_lo -le $ac_mid; then |
| 22400 | ac_lo= ac_hi= |
| 22401 | break |
| 22402 | fi |
| 22403 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22404 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22405 | |
| 22406 | 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] | 22407 | done |
| 22408 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22411 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22413 | /* confdefs.h. */ |
| 22414 | _ACEOF |
| 22415 | cat confdefs.h >>conftest.$ac_ext |
| 22416 | cat >>conftest.$ac_ext <<_ACEOF |
| 22417 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22418 | #include <wchar.h> |
| 22419 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22420 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22421 | int |
| 22422 | main () |
| 22423 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22424 | 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] | 22425 | test_array [0] = 0 |
| 22426 | |
| 22427 | ; |
| 22428 | return 0; |
| 22429 | } |
| 22430 | _ACEOF |
| 22431 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22432 | if { (ac_try="$ac_compile" |
| 22433 | case "(($ac_try" in |
| 22434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22435 | *) ac_try_echo=$ac_try;; |
| 22436 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22438 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22439 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22441 | rm -f conftest.er1 |
| 22442 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22444 | (exit $ac_status); } && { |
| 22445 | test -z "$ac_c_werror_flag" || |
| 22446 | test ! -s conftest.err |
| 22447 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22448 | ac_hi=-1 ac_mid=-1 |
| 22449 | while :; do |
| 22450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22451 | /* confdefs.h. */ |
| 22452 | _ACEOF |
| 22453 | cat confdefs.h >>conftest.$ac_ext |
| 22454 | cat >>conftest.$ac_ext <<_ACEOF |
| 22455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22456 | #include <wchar.h> |
| 22457 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22458 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22459 | int |
| 22460 | main () |
| 22461 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22462 | 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] | 22463 | test_array [0] = 0 |
| 22464 | |
| 22465 | ; |
| 22466 | return 0; |
| 22467 | } |
| 22468 | _ACEOF |
| 22469 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22470 | if { (ac_try="$ac_compile" |
| 22471 | case "(($ac_try" in |
| 22472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22473 | *) ac_try_echo=$ac_try;; |
| 22474 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22479 | rm -f conftest.er1 |
| 22480 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22482 | (exit $ac_status); } && { |
| 22483 | test -z "$ac_c_werror_flag" || |
| 22484 | test ! -s conftest.err |
| 22485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22486 | ac_lo=$ac_mid; break |
| 22487 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22490 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22491 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 22492 | if test $ac_mid -le $ac_hi; then |
| 22493 | ac_lo= ac_hi= |
| 22494 | break |
| 22495 | fi |
| 22496 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22497 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22498 | |
| 22499 | 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] | 22500 | done |
| 22501 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22504 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22505 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22506 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22507 | |
| 22508 | 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] | 22509 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22510 | |
| 22511 | 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] | 22512 | # Binary search between lo and hi bounds. |
| 22513 | while test "x$ac_lo" != "x$ac_hi"; do |
| 22514 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 22515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22516 | /* confdefs.h. */ |
| 22517 | _ACEOF |
| 22518 | cat confdefs.h >>conftest.$ac_ext |
| 22519 | cat >>conftest.$ac_ext <<_ACEOF |
| 22520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22521 | #include <wchar.h> |
| 22522 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22523 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22524 | int |
| 22525 | main () |
| 22526 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22527 | 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] | 22528 | test_array [0] = 0 |
| 22529 | |
| 22530 | ; |
| 22531 | return 0; |
| 22532 | } |
| 22533 | _ACEOF |
| 22534 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22535 | if { (ac_try="$ac_compile" |
| 22536 | case "(($ac_try" in |
| 22537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22538 | *) ac_try_echo=$ac_try;; |
| 22539 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22541 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22542 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22544 | rm -f conftest.er1 |
| 22545 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22547 | (exit $ac_status); } && { |
| 22548 | test -z "$ac_c_werror_flag" || |
| 22549 | test ! -s conftest.err |
| 22550 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22551 | ac_hi=$ac_mid |
| 22552 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22556 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22557 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22558 | |
| 22559 | 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] | 22560 | done |
| 22561 | case $ac_lo in |
| 22562 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22563 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22564 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22565 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22566 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22567 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22568 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22569 | else |
| 22570 | ac_cv_sizeof_wchar_t=0 |
| 22571 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22572 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22575 | /* confdefs.h. */ |
| 22576 | _ACEOF |
| 22577 | cat confdefs.h >>conftest.$ac_ext |
| 22578 | cat >>conftest.$ac_ext <<_ACEOF |
| 22579 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | #include <wchar.h> |
| 22581 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22582 | typedef wchar_t ac__type_sizeof_; |
| 22583 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 22584 | 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] | 22585 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22586 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22587 | int |
| 22588 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22589 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22590 | |
| 22591 | FILE *f = fopen ("conftest.val", "w"); |
| 22592 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22593 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22594 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22595 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22596 | long int i = longval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22597 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22598 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22599 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22600 | } |
| 22601 | else |
| 22602 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22603 | unsigned long int i = ulongval (); |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22604 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22605 | return 1; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22606 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22607 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22608 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22609 | |
| 22610 | ; |
| 22611 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22612 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22613 | _ACEOF |
| 22614 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22615 | if { (ac_try="$ac_link" |
| 22616 | case "(($ac_try" in |
| 22617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22618 | *) ac_try_echo=$ac_try;; |
| 22619 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22621 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22622 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22625 | { (case "(($ac_try" in |
| 22626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22627 | *) ac_try_echo=$ac_try;; |
| 22628 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22630 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22631 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22633 | (exit $ac_status); }; }; then |
| 22634 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22635 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22636 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22640 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22641 | if test "$ac_cv_type_wchar_t" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22642 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22643 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22644 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22645 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22646 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22647 | else |
| 22648 | ac_cv_sizeof_wchar_t=0 |
| 22649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22650 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22651 | 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] | 22652 | fi |
| 22653 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22654 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22655 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 22656 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22657 | |
| 22658 | |
| 22659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22660 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22661 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22662 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22663 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22664 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22665 | fi |
| 22666 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22667 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 22668 | 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] | 22669 | have_ucs4_tcl=no |
| 22670 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22671 | /* confdefs.h. */ |
| 22672 | _ACEOF |
| 22673 | cat confdefs.h >>conftest.$ac_ext |
| 22674 | cat >>conftest.$ac_ext <<_ACEOF |
| 22675 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22676 | |
| 22677 | #include <tcl.h> |
| 22678 | #if TCL_UTF_MAX != 6 |
| 22679 | # error "NOT UCS4_TCL" |
| 22680 | #endif |
| 22681 | int |
| 22682 | main () |
| 22683 | { |
| 22684 | |
| 22685 | ; |
| 22686 | return 0; |
| 22687 | } |
| 22688 | _ACEOF |
| 22689 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22690 | if { (ac_try="$ac_compile" |
| 22691 | case "(($ac_try" in |
| 22692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22693 | *) ac_try_echo=$ac_try;; |
| 22694 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22696 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22699 | rm -f conftest.er1 |
| 22700 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22702 | (exit $ac_status); } && { |
| 22703 | test -z "$ac_c_werror_flag" || |
| 22704 | test ! -s conftest.err |
| 22705 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22706 | |
| 22707 | |
| 22708 | cat >>confdefs.h <<\_ACEOF |
| 22709 | #define HAVE_UCS4_TCL 1 |
| 22710 | _ACEOF |
| 22711 | |
| 22712 | have_ucs4_tcl=yes |
| 22713 | |
| 22714 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22718 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22719 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22720 | |
| 22721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22722 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 22723 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22724 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22725 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22726 | if test "$wchar_h" = yes |
| 22727 | then |
| 22728 | # check whether wchar_t is signed or not |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22729 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 22730 | 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] | 22731 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22733 | else |
| 22734 | |
| 22735 | if test "$cross_compiling" = yes; then |
| 22736 | ac_cv_wchar_t_signed=yes |
| 22737 | else |
| 22738 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22739 | /* confdefs.h. */ |
| 22740 | _ACEOF |
| 22741 | cat confdefs.h >>conftest.$ac_ext |
| 22742 | cat >>conftest.$ac_ext <<_ACEOF |
| 22743 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22744 | |
| 22745 | #include <wchar.h> |
| 22746 | int main() |
| 22747 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 22748 | /* Success: exit code 0 */ |
| 22749 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22750 | } |
| 22751 | |
| 22752 | _ACEOF |
| 22753 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22754 | if { (ac_try="$ac_link" |
| 22755 | case "(($ac_try" in |
| 22756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22757 | *) ac_try_echo=$ac_try;; |
| 22758 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22760 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22761 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22764 | { (case "(($ac_try" in |
| 22765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22766 | *) ac_try_echo=$ac_try;; |
| 22767 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22769 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22770 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22772 | (exit $ac_status); }; }; then |
| 22773 | ac_cv_wchar_t_signed=yes |
| 22774 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22775 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22778 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22779 | ( exit $ac_status ) |
| 22780 | ac_cv_wchar_t_signed=no |
| 22781 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22782 | 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] | 22783 | fi |
| 22784 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22785 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22786 | fi |
| 22787 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22788 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 22789 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22790 | fi |
| 22791 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22792 | { echo "$as_me:$LINENO: checking what type to use for str" >&5 |
| 22793 | echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22794 | |
| 22795 | # Check whether --with-wide-unicode was given. |
| 22796 | if test "${with_wide_unicode+set}" = set; then |
| 22797 | withval=$with_wide_unicode; |
| 22798 | if test "$withval" != no |
| 22799 | then unicode_size="4" |
| 22800 | else unicode_size="2" |
| 22801 | fi |
| 22802 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22803 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22804 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22805 | case "$have_ucs4_tcl" in |
| 22806 | yes) unicode_size="4" ;; |
| 22807 | *) unicode_size="2" ;; |
| 22808 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22809 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22810 | fi |
| 22811 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 22812 | |
| 22813 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22814 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22815 | case "$unicode_size" in |
| 22816 | 4) cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22817 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22818 | _ACEOF |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22819 | ;; |
| 22820 | *) cat >>confdefs.h <<\_ACEOF |
| 22821 | #define Py_UNICODE_SIZE 2 |
| 22822 | _ACEOF |
| 22823 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22824 | esac |
| 22825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22827 | |
| 22828 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22829 | # wchar_t is only usable if it maps to an unsigned type |
| 22830 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 22831 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22832 | then |
| 22833 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22835 | cat >>confdefs.h <<\_ACEOF |
| 22836 | #define HAVE_USABLE_WCHAR_T 1 |
| 22837 | _ACEOF |
| 22838 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22839 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22840 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22841 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22842 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22843 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 22844 | then |
| 22845 | PY_UNICODE_TYPE="unsigned short" |
| 22846 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22847 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22848 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22849 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22850 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 22851 | then |
| 22852 | PY_UNICODE_TYPE="unsigned long" |
| 22853 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22854 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22855 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22856 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22857 | else |
| 22858 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22859 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22860 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 22861 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22862 | |
| 22863 | # check for endianness |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22864 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 22865 | 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] | 22866 | if test "${ac_cv_c_bigendian+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22868 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22869 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 22870 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22871 | /* confdefs.h. */ |
| 22872 | _ACEOF |
| 22873 | cat confdefs.h >>conftest.$ac_ext |
| 22874 | cat >>conftest.$ac_ext <<_ACEOF |
| 22875 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22876 | #include <sys/types.h> |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22877 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22879 | int |
| 22880 | main () |
| 22881 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22882 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 22883 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 22884 | bogus endian macros |
| 22885 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22886 | |
| 22887 | ; |
| 22888 | return 0; |
| 22889 | } |
| 22890 | _ACEOF |
| 22891 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22892 | if { (ac_try="$ac_compile" |
| 22893 | case "(($ac_try" in |
| 22894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22895 | *) ac_try_echo=$ac_try;; |
| 22896 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22898 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22901 | rm -f conftest.er1 |
| 22902 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22904 | (exit $ac_status); } && { |
| 22905 | test -z "$ac_c_werror_flag" || |
| 22906 | test ! -s conftest.err |
| 22907 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22908 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22910 | /* confdefs.h. */ |
| 22911 | _ACEOF |
| 22912 | cat confdefs.h >>conftest.$ac_ext |
| 22913 | cat >>conftest.$ac_ext <<_ACEOF |
| 22914 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22915 | #include <sys/types.h> |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22916 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22918 | int |
| 22919 | main () |
| 22920 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22921 | #if BYTE_ORDER != BIG_ENDIAN |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22922 | not big endian |
| 22923 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22924 | |
| 22925 | ; |
| 22926 | return 0; |
| 22927 | } |
| 22928 | _ACEOF |
| 22929 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22930 | if { (ac_try="$ac_compile" |
| 22931 | case "(($ac_try" in |
| 22932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22933 | *) ac_try_echo=$ac_try;; |
| 22934 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22936 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22937 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22939 | rm -f conftest.er1 |
| 22940 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22942 | (exit $ac_status); } && { |
| 22943 | test -z "$ac_c_werror_flag" || |
| 22944 | test ! -s conftest.err |
| 22945 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22946 | ac_cv_c_bigendian=yes |
| 22947 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22950 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22951 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22952 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22953 | |
| 22954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22955 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22958 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22959 | # It does not; compile a test program. |
| 22960 | if test "$cross_compiling" = yes; then |
| 22961 | # try to guess the endianness by grepping values into an object file |
| 22962 | ac_cv_c_bigendian=unknown |
| 22963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22964 | /* confdefs.h. */ |
| 22965 | _ACEOF |
| 22966 | cat confdefs.h >>conftest.$ac_ext |
| 22967 | cat >>conftest.$ac_ext <<_ACEOF |
| 22968 | /* end confdefs.h. */ |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22969 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22970 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 22971 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 22972 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22973 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 22974 | 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] | 22975 | int |
| 22976 | main () |
| 22977 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22978 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22979 | ; |
| 22980 | return 0; |
| 22981 | } |
| 22982 | _ACEOF |
| 22983 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22984 | if { (ac_try="$ac_compile" |
| 22985 | case "(($ac_try" in |
| 22986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22987 | *) ac_try_echo=$ac_try;; |
| 22988 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22993 | rm -f conftest.er1 |
| 22994 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 22995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22996 | (exit $ac_status); } && { |
| 22997 | test -z "$ac_c_werror_flag" || |
| 22998 | test ! -s conftest.err |
| 22999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23000 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23001 | ac_cv_c_bigendian=yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23002 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23003 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 23004 | if test "$ac_cv_c_bigendian" = unknown; then |
| 23005 | ac_cv_c_bigendian=no |
| 23006 | else |
| 23007 | # finding both strings is unlikely to happen, but who knows? |
| 23008 | ac_cv_c_bigendian=unknown |
| 23009 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23010 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23011 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23012 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23014 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23016 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23017 | |
| 23018 | 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] | 23019 | else |
| 23020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23021 | /* confdefs.h. */ |
| 23022 | _ACEOF |
| 23023 | cat confdefs.h >>conftest.$ac_ext |
| 23024 | cat >>conftest.$ac_ext <<_ACEOF |
| 23025 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23026 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23027 | int |
| 23028 | main () |
| 23029 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23030 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23031 | /* Are we little or big endian? From Harbison&Steele. */ |
| 23032 | union |
| 23033 | { |
| 23034 | long int l; |
| 23035 | char c[sizeof (long int)]; |
| 23036 | } u; |
| 23037 | u.l = 1; |
| 23038 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23039 | |
| 23040 | ; |
| 23041 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23042 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23043 | _ACEOF |
| 23044 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23045 | if { (ac_try="$ac_link" |
| 23046 | case "(($ac_try" in |
| 23047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23048 | *) ac_try_echo=$ac_try;; |
| 23049 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23051 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23052 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23055 | { (case "(($ac_try" in |
| 23056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23057 | *) ac_try_echo=$ac_try;; |
| 23058 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23060 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23061 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23063 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23064 | ac_cv_c_bigendian=no |
| 23065 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23066 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23070 | ( exit $ac_status ) |
| 23071 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23072 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23073 | 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] | 23074 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23075 | |
| 23076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23077 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23078 | |
| 23079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23080 | fi |
| 23081 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 23082 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 23083 | case $ac_cv_c_bigendian in |
| 23084 | yes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23085 | |
| 23086 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23087 | #define WORDS_BIGENDIAN 1 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23088 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23089 | ;; |
| 23090 | no) |
| 23091 | ;; |
| 23092 | *) |
| 23093 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 23094 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 23095 | echo "$as_me: error: unknown endianness |
| 23096 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23097 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23098 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23100 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23101 | # Check whether right shifting a negative integer extends the sign bit |
| 23102 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23103 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 23104 | 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] | 23105 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23108 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23109 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23110 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23113 | /* confdefs.h. */ |
| 23114 | _ACEOF |
| 23115 | cat confdefs.h >>conftest.$ac_ext |
| 23116 | cat >>conftest.$ac_ext <<_ACEOF |
| 23117 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23118 | |
| 23119 | int main() |
| 23120 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23121 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23122 | } |
| 23123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23124 | _ACEOF |
| 23125 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23126 | if { (ac_try="$ac_link" |
| 23127 | case "(($ac_try" in |
| 23128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23129 | *) ac_try_echo=$ac_try;; |
| 23130 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23132 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23133 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23136 | { (case "(($ac_try" in |
| 23137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23138 | *) ac_try_echo=$ac_try;; |
| 23139 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23141 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23142 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23144 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23145 | ac_cv_rshift_extends_sign=yes |
| 23146 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23147 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23151 | ( exit $ac_status ) |
| 23152 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23153 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23154 | 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] | 23155 | fi |
| 23156 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23157 | |
| 23158 | fi |
| 23159 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23160 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 23161 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23162 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23163 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23164 | |
| 23165 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23166 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23167 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23168 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23169 | fi |
| 23170 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23171 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23172 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 23173 | 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] | 23174 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23177 | |
| 23178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23179 | /* confdefs.h. */ |
| 23180 | _ACEOF |
| 23181 | cat confdefs.h >>conftest.$ac_ext |
| 23182 | cat >>conftest.$ac_ext <<_ACEOF |
| 23183 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23184 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | int |
| 23186 | main () |
| 23187 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23188 | |
| 23189 | FILE *f = fopen("/dev/null", "r"); |
| 23190 | flockfile(f); |
| 23191 | getc_unlocked(f); |
| 23192 | funlockfile(f); |
| 23193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23194 | ; |
| 23195 | return 0; |
| 23196 | } |
| 23197 | _ACEOF |
| 23198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23199 | if { (ac_try="$ac_link" |
| 23200 | case "(($ac_try" in |
| 23201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23202 | *) ac_try_echo=$ac_try;; |
| 23203 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23205 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23208 | rm -f conftest.er1 |
| 23209 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23211 | (exit $ac_status); } && { |
| 23212 | test -z "$ac_c_werror_flag" || |
| 23213 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23214 | } && test -s conftest$ac_exeext && |
| 23215 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23216 | ac_cv_have_getc_unlocked=yes |
| 23217 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23221 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23222 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23223 | |
| 23224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23225 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23226 | fi |
| 23227 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23228 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 23229 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23230 | if test "$ac_cv_have_getc_unlocked" = yes |
| 23231 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23232 | |
| 23233 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23234 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23235 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23236 | |
| 23237 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23238 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23239 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23240 | # save the value of LIBS so we don't actually link Python with readline |
| 23241 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23242 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23243 | # On some systems we need to link readline to a termcap compatible |
| 23244 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 23245 | # with setup.py. |
| 23246 | py_cv_lib_readline=no |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23247 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 23248 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23249 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 23250 | if test -z "$py_libtermcap"; then |
| 23251 | READLINE_LIBS="-lreadline" |
| 23252 | else |
| 23253 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 23254 | fi |
| 23255 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 23256 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23257 | /* confdefs.h. */ |
| 23258 | _ACEOF |
| 23259 | cat confdefs.h >>conftest.$ac_ext |
| 23260 | cat >>conftest.$ac_ext <<_ACEOF |
| 23261 | /* end confdefs.h. */ |
| 23262 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23263 | /* Override any GCC internal prototype to avoid an error. |
| 23264 | Use char because int might match the return type of a GCC |
| 23265 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23266 | #ifdef __cplusplus |
| 23267 | extern "C" |
| 23268 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23269 | char readline (); |
| 23270 | int |
| 23271 | main () |
| 23272 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23273 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23274 | ; |
| 23275 | return 0; |
| 23276 | } |
| 23277 | _ACEOF |
| 23278 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23279 | if { (ac_try="$ac_link" |
| 23280 | case "(($ac_try" in |
| 23281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23282 | *) ac_try_echo=$ac_try;; |
| 23283 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23285 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23286 | ac_status=$? |
| 23287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23288 | rm -f conftest.er1 |
| 23289 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23291 | (exit $ac_status); } && { |
| 23292 | test -z "$ac_c_werror_flag" || |
| 23293 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23294 | } && test -s conftest$ac_exeext && |
| 23295 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23296 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23297 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23298 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23300 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23301 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23303 | |
| 23304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23305 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23306 | if test $py_cv_lib_readline = yes; then |
| 23307 | break |
| 23308 | fi |
| 23309 | done |
| 23310 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 23311 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 23312 | if test $py_cv_lib_readline = no; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23313 | { echo "$as_me:$LINENO: result: none" >&5 |
| 23314 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23315 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23316 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 23317 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23318 | |
| 23319 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23320 | #define HAVE_LIBREADLINE 1 |
| 23321 | _ACEOF |
| 23322 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23323 | fi |
| 23324 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23325 | # check for readline 2.1 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23326 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 23327 | 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] | 23328 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23330 | else |
| 23331 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23332 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23333 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23334 | /* confdefs.h. */ |
| 23335 | _ACEOF |
| 23336 | cat confdefs.h >>conftest.$ac_ext |
| 23337 | cat >>conftest.$ac_ext <<_ACEOF |
| 23338 | /* end confdefs.h. */ |
| 23339 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23340 | /* Override any GCC internal prototype to avoid an error. |
| 23341 | Use char because int might match the return type of a GCC |
| 23342 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23343 | #ifdef __cplusplus |
| 23344 | extern "C" |
| 23345 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23346 | char rl_callback_handler_install (); |
| 23347 | int |
| 23348 | main () |
| 23349 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23350 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23351 | ; |
| 23352 | return 0; |
| 23353 | } |
| 23354 | _ACEOF |
| 23355 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23356 | if { (ac_try="$ac_link" |
| 23357 | case "(($ac_try" in |
| 23358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23359 | *) ac_try_echo=$ac_try;; |
| 23360 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23362 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23365 | rm -f conftest.er1 |
| 23366 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23368 | (exit $ac_status); } && { |
| 23369 | test -z "$ac_c_werror_flag" || |
| 23370 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23371 | } && test -s conftest$ac_exeext && |
| 23372 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23373 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 23374 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23375 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23377 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23378 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23379 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23380 | |
| 23381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23382 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23383 | LIBS=$ac_check_lib_save_LIBS |
| 23384 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23385 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 23386 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 23387 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23388 | |
| 23389 | cat >>confdefs.h <<\_ACEOF |
| 23390 | #define HAVE_RL_CALLBACK 1 |
| 23391 | _ACEOF |
| 23392 | |
| 23393 | fi |
| 23394 | |
| 23395 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23396 | # check for readline 2.2 |
| 23397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23398 | /* confdefs.h. */ |
| 23399 | _ACEOF |
| 23400 | cat confdefs.h >>conftest.$ac_ext |
| 23401 | cat >>conftest.$ac_ext <<_ACEOF |
| 23402 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23403 | #include <readline/readline.h> |
| 23404 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23405 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23406 | case "(($ac_try" in |
| 23407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23408 | *) ac_try_echo=$ac_try;; |
| 23409 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23412 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23413 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23414 | rm -f conftest.er1 |
| 23415 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23417 | (exit $ac_status); } >/dev/null && { |
| 23418 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23419 | test ! -s conftest.err |
| 23420 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23421 | have_readline=yes |
| 23422 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23425 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23426 | have_readline=no |
| 23427 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23428 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23429 | rm -f conftest.err conftest.$ac_ext |
| 23430 | if test $have_readline = yes |
| 23431 | then |
| 23432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23433 | /* confdefs.h. */ |
| 23434 | _ACEOF |
| 23435 | cat confdefs.h >>conftest.$ac_ext |
| 23436 | cat >>conftest.$ac_ext <<_ACEOF |
| 23437 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23438 | #include <readline/readline.h> |
| 23439 | |
| 23440 | _ACEOF |
| 23441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23442 | $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] | 23443 | |
| 23444 | cat >>confdefs.h <<\_ACEOF |
| 23445 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 23446 | _ACEOF |
| 23447 | |
| 23448 | fi |
| 23449 | rm -f conftest* |
| 23450 | |
| 23451 | fi |
| 23452 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23453 | # check for readline 4.0 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23454 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 23455 | 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] | 23456 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23459 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23460 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23462 | /* confdefs.h. */ |
| 23463 | _ACEOF |
| 23464 | cat confdefs.h >>conftest.$ac_ext |
| 23465 | cat >>conftest.$ac_ext <<_ACEOF |
| 23466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23467 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23468 | /* Override any GCC internal prototype to avoid an error. |
| 23469 | Use char because int might match the return type of a GCC |
| 23470 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23471 | #ifdef __cplusplus |
| 23472 | extern "C" |
| 23473 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23474 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23475 | int |
| 23476 | main () |
| 23477 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23478 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | ; |
| 23480 | return 0; |
| 23481 | } |
| 23482 | _ACEOF |
| 23483 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23484 | if { (ac_try="$ac_link" |
| 23485 | case "(($ac_try" in |
| 23486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23487 | *) ac_try_echo=$ac_try;; |
| 23488 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23490 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23493 | rm -f conftest.er1 |
| 23494 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23496 | (exit $ac_status); } && { |
| 23497 | test -z "$ac_c_werror_flag" || |
| 23498 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23499 | } && test -s conftest$ac_exeext && |
| 23500 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23501 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23502 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23503 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23505 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23506 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23507 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23508 | |
| 23509 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23510 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23511 | LIBS=$ac_check_lib_save_LIBS |
| 23512 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23513 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 23514 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 23515 | 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] | 23516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23517 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23518 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23519 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23520 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23521 | fi |
| 23522 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23523 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23524 | # also in 4.0 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23525 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 23526 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23527 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23529 | else |
| 23530 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23531 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23532 | cat >conftest.$ac_ext <<_ACEOF |
| 23533 | /* confdefs.h. */ |
| 23534 | _ACEOF |
| 23535 | cat confdefs.h >>conftest.$ac_ext |
| 23536 | cat >>conftest.$ac_ext <<_ACEOF |
| 23537 | /* end confdefs.h. */ |
| 23538 | |
| 23539 | /* Override any GCC internal prototype to avoid an error. |
| 23540 | Use char because int might match the return type of a GCC |
| 23541 | builtin and then its argument prototype would still apply. */ |
| 23542 | #ifdef __cplusplus |
| 23543 | extern "C" |
| 23544 | #endif |
| 23545 | char rl_completion_display_matches_hook (); |
| 23546 | int |
| 23547 | main () |
| 23548 | { |
| 23549 | return rl_completion_display_matches_hook (); |
| 23550 | ; |
| 23551 | return 0; |
| 23552 | } |
| 23553 | _ACEOF |
| 23554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23555 | if { (ac_try="$ac_link" |
| 23556 | case "(($ac_try" in |
| 23557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23558 | *) ac_try_echo=$ac_try;; |
| 23559 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23561 | (eval "$ac_link") 2>conftest.er1 |
| 23562 | ac_status=$? |
| 23563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23564 | rm -f conftest.er1 |
| 23565 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23567 | (exit $ac_status); } && { |
| 23568 | test -z "$ac_c_werror_flag" || |
| 23569 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23570 | } && test -s conftest$ac_exeext && |
| 23571 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23572 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 23573 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23574 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23576 | |
| 23577 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 23578 | fi |
| 23579 | |
| 23580 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23581 | conftest$ac_exeext conftest.$ac_ext |
| 23582 | LIBS=$ac_check_lib_save_LIBS |
| 23583 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23584 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 23585 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 23586 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23587 | |
| 23588 | cat >>confdefs.h <<\_ACEOF |
| 23589 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 23590 | _ACEOF |
| 23591 | |
| 23592 | fi |
| 23593 | |
| 23594 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23595 | # check for readline 4.2 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23596 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 23597 | 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] | 23598 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23601 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23602 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23604 | /* confdefs.h. */ |
| 23605 | _ACEOF |
| 23606 | cat confdefs.h >>conftest.$ac_ext |
| 23607 | cat >>conftest.$ac_ext <<_ACEOF |
| 23608 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23609 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23610 | /* Override any GCC internal prototype to avoid an error. |
| 23611 | Use char because int might match the return type of a GCC |
| 23612 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23613 | #ifdef __cplusplus |
| 23614 | extern "C" |
| 23615 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23616 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23617 | int |
| 23618 | main () |
| 23619 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23620 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23621 | ; |
| 23622 | return 0; |
| 23623 | } |
| 23624 | _ACEOF |
| 23625 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23626 | if { (ac_try="$ac_link" |
| 23627 | case "(($ac_try" in |
| 23628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23629 | *) ac_try_echo=$ac_try;; |
| 23630 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23632 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23635 | rm -f conftest.er1 |
| 23636 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23638 | (exit $ac_status); } && { |
| 23639 | test -z "$ac_c_werror_flag" || |
| 23640 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23641 | } && test -s conftest$ac_exeext && |
| 23642 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23643 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23644 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23645 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23647 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23648 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23649 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23650 | |
| 23651 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23652 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23653 | LIBS=$ac_check_lib_save_LIBS |
| 23654 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23655 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 23656 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 23657 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23659 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23660 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23661 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23662 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23663 | fi |
| 23664 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23665 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23666 | # also in readline 4.2 |
| 23667 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23668 | /* confdefs.h. */ |
| 23669 | _ACEOF |
| 23670 | cat confdefs.h >>conftest.$ac_ext |
| 23671 | cat >>conftest.$ac_ext <<_ACEOF |
| 23672 | /* end confdefs.h. */ |
| 23673 | #include <readline/readline.h> |
| 23674 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23675 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23676 | case "(($ac_try" in |
| 23677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23678 | *) ac_try_echo=$ac_try;; |
| 23679 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23682 | ac_status=$? |
| 23683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23684 | rm -f conftest.er1 |
| 23685 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23687 | (exit $ac_status); } >/dev/null && { |
| 23688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23689 | test ! -s conftest.err |
| 23690 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23691 | have_readline=yes |
| 23692 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23693 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23695 | |
| 23696 | have_readline=no |
| 23697 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23698 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23699 | rm -f conftest.err conftest.$ac_ext |
| 23700 | if test $have_readline = yes |
| 23701 | then |
| 23702 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23703 | /* confdefs.h. */ |
| 23704 | _ACEOF |
| 23705 | cat confdefs.h >>conftest.$ac_ext |
| 23706 | cat >>conftest.$ac_ext <<_ACEOF |
| 23707 | /* end confdefs.h. */ |
| 23708 | #include <readline/readline.h> |
| 23709 | |
| 23710 | _ACEOF |
| 23711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23712 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 23713 | |
| 23714 | cat >>confdefs.h <<\_ACEOF |
| 23715 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 23716 | _ACEOF |
| 23717 | |
| 23718 | fi |
| 23719 | rm -f conftest* |
| 23720 | |
| 23721 | fi |
| 23722 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23723 | # End of readline checks: restore LIBS |
| 23724 | LIBS=$LIBS_no_readline |
| 23725 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23726 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 23727 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23728 | if test "${ac_cv_broken_nice+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23731 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23732 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23733 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23736 | /* confdefs.h. */ |
| 23737 | _ACEOF |
| 23738 | cat confdefs.h >>conftest.$ac_ext |
| 23739 | cat >>conftest.$ac_ext <<_ACEOF |
| 23740 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23741 | |
| 23742 | int main() |
| 23743 | { |
| 23744 | int val1 = nice(1); |
| 23745 | if (val1 != -1 && val1 == nice(2)) |
| 23746 | exit(0); |
| 23747 | exit(1); |
| 23748 | } |
| 23749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23750 | _ACEOF |
| 23751 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23752 | if { (ac_try="$ac_link" |
| 23753 | case "(($ac_try" in |
| 23754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23755 | *) ac_try_echo=$ac_try;; |
| 23756 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23758 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23759 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23762 | { (case "(($ac_try" in |
| 23763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23764 | *) ac_try_echo=$ac_try;; |
| 23765 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23767 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23768 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23770 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23771 | ac_cv_broken_nice=yes |
| 23772 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23773 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23777 | ( exit $ac_status ) |
| 23778 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23779 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23780 | 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] | 23781 | fi |
| 23782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23783 | |
| 23784 | fi |
| 23785 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23786 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 23787 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23788 | if test "$ac_cv_broken_nice" = yes |
| 23789 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23790 | |
| 23791 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23792 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23793 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23794 | |
| 23795 | fi |
| 23796 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23797 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 23798 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23799 | if test "$cross_compiling" = yes; then |
| 23800 | ac_cv_broken_poll=no |
| 23801 | else |
| 23802 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23803 | /* confdefs.h. */ |
| 23804 | _ACEOF |
| 23805 | cat confdefs.h >>conftest.$ac_ext |
| 23806 | cat >>conftest.$ac_ext <<_ACEOF |
| 23807 | /* end confdefs.h. */ |
| 23808 | |
| 23809 | #include <poll.h> |
| 23810 | |
| 23811 | int main (void) |
| 23812 | { |
| 23813 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 23814 | |
| 23815 | close (42); |
| 23816 | |
| 23817 | int poll_test = poll (&poll_struct, 1, 0); |
| 23818 | |
| 23819 | if (poll_test < 0) |
| 23820 | { |
| 23821 | exit(0); |
| 23822 | } |
| 23823 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 23824 | { |
| 23825 | exit(0); |
| 23826 | } |
| 23827 | else |
| 23828 | { |
| 23829 | exit(1); |
| 23830 | } |
| 23831 | } |
| 23832 | |
| 23833 | _ACEOF |
| 23834 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23835 | if { (ac_try="$ac_link" |
| 23836 | case "(($ac_try" in |
| 23837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23838 | *) ac_try_echo=$ac_try;; |
| 23839 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23841 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23842 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23845 | { (case "(($ac_try" in |
| 23846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23847 | *) ac_try_echo=$ac_try;; |
| 23848 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23850 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23851 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23853 | (exit $ac_status); }; }; then |
| 23854 | ac_cv_broken_poll=yes |
| 23855 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23856 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23857 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23859 | |
| 23860 | ( exit $ac_status ) |
| 23861 | ac_cv_broken_poll=no |
| 23862 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23863 | 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] | 23864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23865 | |
| 23866 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23867 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 23868 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23869 | if test "$ac_cv_broken_poll" = yes |
| 23870 | then |
| 23871 | |
| 23872 | cat >>confdefs.h <<\_ACEOF |
| 23873 | #define HAVE_BROKEN_POLL 1 |
| 23874 | _ACEOF |
| 23875 | |
| 23876 | fi |
| 23877 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23878 | # 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] | 23879 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 23880 | # tzname[] |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23881 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 23882 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23883 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23885 | else |
| 23886 | cat >conftest.$ac_ext <<_ACEOF |
| 23887 | /* confdefs.h. */ |
| 23888 | _ACEOF |
| 23889 | cat confdefs.h >>conftest.$ac_ext |
| 23890 | cat >>conftest.$ac_ext <<_ACEOF |
| 23891 | /* end confdefs.h. */ |
| 23892 | #include <sys/types.h> |
| 23893 | #include <$ac_cv_struct_tm> |
| 23894 | |
| 23895 | |
| 23896 | int |
| 23897 | main () |
| 23898 | { |
| 23899 | static struct tm ac_aggr; |
| 23900 | if (ac_aggr.tm_zone) |
| 23901 | return 0; |
| 23902 | ; |
| 23903 | return 0; |
| 23904 | } |
| 23905 | _ACEOF |
| 23906 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23907 | if { (ac_try="$ac_compile" |
| 23908 | case "(($ac_try" in |
| 23909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23910 | *) ac_try_echo=$ac_try;; |
| 23911 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23913 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23914 | ac_status=$? |
| 23915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23916 | rm -f conftest.er1 |
| 23917 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23919 | (exit $ac_status); } && { |
| 23920 | test -z "$ac_c_werror_flag" || |
| 23921 | test ! -s conftest.err |
| 23922 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23923 | ac_cv_member_struct_tm_tm_zone=yes |
| 23924 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23925 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23928 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23929 | /* confdefs.h. */ |
| 23930 | _ACEOF |
| 23931 | cat confdefs.h >>conftest.$ac_ext |
| 23932 | cat >>conftest.$ac_ext <<_ACEOF |
| 23933 | /* end confdefs.h. */ |
| 23934 | #include <sys/types.h> |
| 23935 | #include <$ac_cv_struct_tm> |
| 23936 | |
| 23937 | |
| 23938 | int |
| 23939 | main () |
| 23940 | { |
| 23941 | static struct tm ac_aggr; |
| 23942 | if (sizeof ac_aggr.tm_zone) |
| 23943 | return 0; |
| 23944 | ; |
| 23945 | return 0; |
| 23946 | } |
| 23947 | _ACEOF |
| 23948 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23949 | if { (ac_try="$ac_compile" |
| 23950 | case "(($ac_try" in |
| 23951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23952 | *) ac_try_echo=$ac_try;; |
| 23953 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23955 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23956 | ac_status=$? |
| 23957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23958 | rm -f conftest.er1 |
| 23959 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23961 | (exit $ac_status); } && { |
| 23962 | test -z "$ac_c_werror_flag" || |
| 23963 | test ! -s conftest.err |
| 23964 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23965 | ac_cv_member_struct_tm_tm_zone=yes |
| 23966 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23967 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23969 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23970 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23971 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23972 | |
| 23973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23974 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23975 | |
| 23976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23977 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23978 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 23979 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 23980 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23981 | |
| 23982 | cat >>confdefs.h <<_ACEOF |
| 23983 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 23984 | _ACEOF |
| 23985 | |
| 23986 | |
| 23987 | fi |
| 23988 | |
| 23989 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 23990 | |
| 23991 | cat >>confdefs.h <<\_ACEOF |
| 23992 | #define HAVE_TM_ZONE 1 |
| 23993 | _ACEOF |
| 23994 | |
| 23995 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23996 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 23997 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23998 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 23999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24000 | else |
| 24001 | cat >conftest.$ac_ext <<_ACEOF |
| 24002 | /* confdefs.h. */ |
| 24003 | _ACEOF |
| 24004 | cat confdefs.h >>conftest.$ac_ext |
| 24005 | cat >>conftest.$ac_ext <<_ACEOF |
| 24006 | /* end confdefs.h. */ |
| 24007 | #include <time.h> |
| 24008 | |
| 24009 | int |
| 24010 | main () |
| 24011 | { |
| 24012 | #ifndef tzname |
| 24013 | (void) tzname; |
| 24014 | #endif |
| 24015 | |
| 24016 | ; |
| 24017 | return 0; |
| 24018 | } |
| 24019 | _ACEOF |
| 24020 | rm -f conftest.$ac_objext |
| 24021 | if { (ac_try="$ac_compile" |
| 24022 | case "(($ac_try" in |
| 24023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24024 | *) ac_try_echo=$ac_try;; |
| 24025 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24027 | (eval "$ac_compile") 2>conftest.er1 |
| 24028 | ac_status=$? |
| 24029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24030 | rm -f conftest.er1 |
| 24031 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24033 | (exit $ac_status); } && { |
| 24034 | test -z "$ac_c_werror_flag" || |
| 24035 | test ! -s conftest.err |
| 24036 | } && test -s conftest.$ac_objext; then |
| 24037 | ac_cv_have_decl_tzname=yes |
| 24038 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24039 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24041 | |
| 24042 | ac_cv_have_decl_tzname=no |
| 24043 | fi |
| 24044 | |
| 24045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24046 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24047 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 24048 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 24049 | if test $ac_cv_have_decl_tzname = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24050 | |
| 24051 | cat >>confdefs.h <<_ACEOF |
| 24052 | #define HAVE_DECL_TZNAME 1 |
| 24053 | _ACEOF |
| 24054 | |
| 24055 | |
| 24056 | else |
| 24057 | cat >>confdefs.h <<_ACEOF |
| 24058 | #define HAVE_DECL_TZNAME 0 |
| 24059 | _ACEOF |
| 24060 | |
| 24061 | |
| 24062 | fi |
| 24063 | |
| 24064 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24065 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 24066 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24067 | if test "${ac_cv_var_tzname+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24069 | else |
| 24070 | cat >conftest.$ac_ext <<_ACEOF |
| 24071 | /* confdefs.h. */ |
| 24072 | _ACEOF |
| 24073 | cat confdefs.h >>conftest.$ac_ext |
| 24074 | cat >>conftest.$ac_ext <<_ACEOF |
| 24075 | /* end confdefs.h. */ |
| 24076 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24077 | #if !HAVE_DECL_TZNAME |
| 24078 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24079 | #endif |
| 24080 | |
| 24081 | int |
| 24082 | main () |
| 24083 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24084 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24085 | ; |
| 24086 | return 0; |
| 24087 | } |
| 24088 | _ACEOF |
| 24089 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24090 | if { (ac_try="$ac_link" |
| 24091 | case "(($ac_try" in |
| 24092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24093 | *) ac_try_echo=$ac_try;; |
| 24094 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24096 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24097 | ac_status=$? |
| 24098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24099 | rm -f conftest.er1 |
| 24100 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24102 | (exit $ac_status); } && { |
| 24103 | test -z "$ac_c_werror_flag" || |
| 24104 | test ! -s conftest.err |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24105 | } && test -s conftest$ac_exeext && |
| 24106 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24107 | ac_cv_var_tzname=yes |
| 24108 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24109 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24111 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24112 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24113 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24114 | |
| 24115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24116 | conftest$ac_exeext conftest.$ac_ext |
| 24117 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24118 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 24119 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24120 | if test $ac_cv_var_tzname = yes; then |
| 24121 | |
| 24122 | cat >>confdefs.h <<\_ACEOF |
| 24123 | #define HAVE_TZNAME 1 |
| 24124 | _ACEOF |
| 24125 | |
| 24126 | fi |
| 24127 | fi |
| 24128 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24129 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24130 | # check tzset(3) exists and works like we expect it to |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24131 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 24132 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24133 | if test "${ac_cv_working_tzset+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24135 | else |
| 24136 | |
| 24137 | if test "$cross_compiling" = yes; then |
| 24138 | ac_cv_working_tzset=no |
| 24139 | else |
| 24140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24141 | /* confdefs.h. */ |
| 24142 | _ACEOF |
| 24143 | cat confdefs.h >>conftest.$ac_ext |
| 24144 | cat >>conftest.$ac_ext <<_ACEOF |
| 24145 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24146 | |
| 24147 | #include <stdlib.h> |
| 24148 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24149 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24150 | |
| 24151 | #if HAVE_TZNAME |
| 24152 | extern char *tzname[]; |
| 24153 | #endif |
| 24154 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24155 | int main() |
| 24156 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24157 | /* Note that we need to ensure that not only does tzset(3) |
| 24158 | do 'something' with localtime, but it works as documented |
| 24159 | 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] | 24160 | This includes making sure that tzname is set properly if |
| 24161 | tm->tm_zone does not exist since it is the alternative way |
| 24162 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24163 | |
| 24164 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24165 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24166 | */ |
| 24167 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24168 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24169 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 24170 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24171 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24172 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24173 | if (localtime(&groundhogday)->tm_hour != 0) |
| 24174 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24175 | #if HAVE_TZNAME |
| 24176 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 24177 | if (strcmp(tzname[0], "UTC") || |
| 24178 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 24179 | exit(1); |
| 24180 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24181 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24182 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24183 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24184 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24185 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24186 | #if HAVE_TZNAME |
| 24187 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 24188 | exit(1); |
| 24189 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24190 | |
| 24191 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 24192 | tzset(); |
| 24193 | if (localtime(&groundhogday)->tm_hour != 11) |
| 24194 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24195 | #if HAVE_TZNAME |
| 24196 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 24197 | exit(1); |
| 24198 | #endif |
| 24199 | |
| 24200 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24201 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 24202 | exit(1); |
| 24203 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 24204 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24205 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24206 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24207 | exit(0); |
| 24208 | } |
| 24209 | |
| 24210 | _ACEOF |
| 24211 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24212 | if { (ac_try="$ac_link" |
| 24213 | case "(($ac_try" in |
| 24214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24215 | *) ac_try_echo=$ac_try;; |
| 24216 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24218 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24219 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24222 | { (case "(($ac_try" in |
| 24223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24224 | *) ac_try_echo=$ac_try;; |
| 24225 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24227 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24228 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24230 | (exit $ac_status); }; }; then |
| 24231 | ac_cv_working_tzset=yes |
| 24232 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24236 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24237 | ( exit $ac_status ) |
| 24238 | ac_cv_working_tzset=no |
| 24239 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24240 | 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] | 24241 | fi |
| 24242 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24243 | |
| 24244 | fi |
| 24245 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24246 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 24247 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24248 | if test "$ac_cv_working_tzset" = yes |
| 24249 | then |
| 24250 | |
| 24251 | cat >>confdefs.h <<\_ACEOF |
| 24252 | #define HAVE_WORKING_TZSET 1 |
| 24253 | _ACEOF |
| 24254 | |
| 24255 | fi |
| 24256 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24257 | # Look for subsecond timestamps in struct stat |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24258 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 24259 | 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] | 24260 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24262 | else |
| 24263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24264 | /* confdefs.h. */ |
| 24265 | _ACEOF |
| 24266 | cat confdefs.h >>conftest.$ac_ext |
| 24267 | cat >>conftest.$ac_ext <<_ACEOF |
| 24268 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24269 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24270 | int |
| 24271 | main () |
| 24272 | { |
| 24273 | |
| 24274 | struct stat st; |
| 24275 | st.st_mtim.tv_nsec = 1; |
| 24276 | |
| 24277 | ; |
| 24278 | return 0; |
| 24279 | } |
| 24280 | _ACEOF |
| 24281 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24282 | if { (ac_try="$ac_compile" |
| 24283 | case "(($ac_try" in |
| 24284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24285 | *) ac_try_echo=$ac_try;; |
| 24286 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24288 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24289 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24291 | rm -f conftest.er1 |
| 24292 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24294 | (exit $ac_status); } && { |
| 24295 | test -z "$ac_c_werror_flag" || |
| 24296 | test ! -s conftest.err |
| 24297 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 24298 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24299 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24303 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24304 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24305 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24307 | fi |
| 24308 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24309 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 24310 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24311 | if test "$ac_cv_stat_tv_nsec" = yes |
| 24312 | then |
| 24313 | |
| 24314 | cat >>confdefs.h <<\_ACEOF |
| 24315 | #define HAVE_STAT_TV_NSEC 1 |
| 24316 | _ACEOF |
| 24317 | |
| 24318 | fi |
| 24319 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24320 | # Look for BSD style subsecond timestamps in struct stat |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24321 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 24322 | 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] | 24323 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24325 | else |
| 24326 | cat >conftest.$ac_ext <<_ACEOF |
| 24327 | /* confdefs.h. */ |
| 24328 | _ACEOF |
| 24329 | cat confdefs.h >>conftest.$ac_ext |
| 24330 | cat >>conftest.$ac_ext <<_ACEOF |
| 24331 | /* end confdefs.h. */ |
| 24332 | #include <sys/stat.h> |
| 24333 | int |
| 24334 | main () |
| 24335 | { |
| 24336 | |
| 24337 | struct stat st; |
| 24338 | st.st_mtimespec.tv_nsec = 1; |
| 24339 | |
| 24340 | ; |
| 24341 | return 0; |
| 24342 | } |
| 24343 | _ACEOF |
| 24344 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24345 | if { (ac_try="$ac_compile" |
| 24346 | case "(($ac_try" in |
| 24347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24348 | *) ac_try_echo=$ac_try;; |
| 24349 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24351 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24352 | ac_status=$? |
| 24353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24354 | rm -f conftest.er1 |
| 24355 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24357 | (exit $ac_status); } && { |
| 24358 | test -z "$ac_c_werror_flag" || |
| 24359 | test ! -s conftest.err |
| 24360 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24361 | ac_cv_stat_tv_nsec2=yes |
| 24362 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24363 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24366 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24367 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24370 | fi |
| 24371 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24372 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 24373 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24374 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 24375 | then |
| 24376 | |
| 24377 | cat >>confdefs.h <<\_ACEOF |
| 24378 | #define HAVE_STAT_TV_NSEC2 1 |
| 24379 | _ACEOF |
| 24380 | |
| 24381 | fi |
| 24382 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24383 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24384 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 24385 | 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] | 24386 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24390 | /* confdefs.h. */ |
| 24391 | _ACEOF |
| 24392 | cat confdefs.h >>conftest.$ac_ext |
| 24393 | cat >>conftest.$ac_ext <<_ACEOF |
| 24394 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24395 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24396 | int |
| 24397 | main () |
| 24398 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24399 | |
| 24400 | int rtn; |
| 24401 | rtn = mvwdelch(0,0,0); |
| 24402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24403 | ; |
| 24404 | return 0; |
| 24405 | } |
| 24406 | _ACEOF |
| 24407 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24408 | if { (ac_try="$ac_compile" |
| 24409 | case "(($ac_try" in |
| 24410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24411 | *) ac_try_echo=$ac_try;; |
| 24412 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24414 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24415 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24417 | rm -f conftest.er1 |
| 24418 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24420 | (exit $ac_status); } && { |
| 24421 | test -z "$ac_c_werror_flag" || |
| 24422 | test ! -s conftest.err |
| 24423 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24424 | ac_cv_mvwdelch_is_expression=yes |
| 24425 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24426 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24428 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24429 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24430 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24433 | fi |
| 24434 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24435 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 24436 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24437 | |
| 24438 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 24439 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24440 | |
| 24441 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24442 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24443 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24444 | |
| 24445 | fi |
| 24446 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24447 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 24448 | 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] | 24449 | if test "${ac_cv_window_has_flags+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24453 | /* confdefs.h. */ |
| 24454 | _ACEOF |
| 24455 | cat confdefs.h >>conftest.$ac_ext |
| 24456 | cat >>conftest.$ac_ext <<_ACEOF |
| 24457 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24458 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24459 | int |
| 24460 | main () |
| 24461 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24462 | |
| 24463 | WINDOW *w; |
| 24464 | w->_flags = 0; |
| 24465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24466 | ; |
| 24467 | return 0; |
| 24468 | } |
| 24469 | _ACEOF |
| 24470 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24471 | if { (ac_try="$ac_compile" |
| 24472 | case "(($ac_try" in |
| 24473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24474 | *) ac_try_echo=$ac_try;; |
| 24475 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24477 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24478 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24480 | rm -f conftest.er1 |
| 24481 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24483 | (exit $ac_status); } && { |
| 24484 | test -z "$ac_c_werror_flag" || |
| 24485 | test ! -s conftest.err |
| 24486 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24487 | ac_cv_window_has_flags=yes |
| 24488 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24491 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24492 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24493 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24494 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24496 | fi |
| 24497 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24498 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 24499 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24500 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24501 | |
| 24502 | if test "$ac_cv_window_has_flags" = yes |
| 24503 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24504 | |
| 24505 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24506 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24507 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24508 | |
| 24509 | fi |
| 24510 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24511 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 24512 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24513 | cat >conftest.$ac_ext <<_ACEOF |
| 24514 | /* confdefs.h. */ |
| 24515 | _ACEOF |
| 24516 | cat confdefs.h >>conftest.$ac_ext |
| 24517 | cat >>conftest.$ac_ext <<_ACEOF |
| 24518 | /* end confdefs.h. */ |
| 24519 | #include <curses.h> |
| 24520 | int |
| 24521 | main () |
| 24522 | { |
| 24523 | void *x=is_term_resized |
| 24524 | ; |
| 24525 | return 0; |
| 24526 | } |
| 24527 | _ACEOF |
| 24528 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24529 | if { (ac_try="$ac_compile" |
| 24530 | case "(($ac_try" in |
| 24531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24532 | *) ac_try_echo=$ac_try;; |
| 24533 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24535 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24536 | ac_status=$? |
| 24537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24538 | rm -f conftest.er1 |
| 24539 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24541 | (exit $ac_status); } && { |
| 24542 | test -z "$ac_c_werror_flag" || |
| 24543 | test ! -s conftest.err |
| 24544 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24545 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24546 | cat >>confdefs.h <<\_ACEOF |
| 24547 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 24548 | _ACEOF |
| 24549 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24550 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24551 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24552 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24553 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24555 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24556 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24557 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24558 | |
| 24559 | fi |
| 24560 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24562 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24563 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 24564 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24565 | cat >conftest.$ac_ext <<_ACEOF |
| 24566 | /* confdefs.h. */ |
| 24567 | _ACEOF |
| 24568 | cat confdefs.h >>conftest.$ac_ext |
| 24569 | cat >>conftest.$ac_ext <<_ACEOF |
| 24570 | /* end confdefs.h. */ |
| 24571 | #include <curses.h> |
| 24572 | int |
| 24573 | main () |
| 24574 | { |
| 24575 | void *x=resize_term |
| 24576 | ; |
| 24577 | return 0; |
| 24578 | } |
| 24579 | _ACEOF |
| 24580 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24581 | if { (ac_try="$ac_compile" |
| 24582 | case "(($ac_try" in |
| 24583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24584 | *) ac_try_echo=$ac_try;; |
| 24585 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24587 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24588 | ac_status=$? |
| 24589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24590 | rm -f conftest.er1 |
| 24591 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24593 | (exit $ac_status); } && { |
| 24594 | test -z "$ac_c_werror_flag" || |
| 24595 | test ! -s conftest.err |
| 24596 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24597 | |
| 24598 | cat >>confdefs.h <<\_ACEOF |
| 24599 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 24600 | _ACEOF |
| 24601 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24602 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24603 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24604 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24605 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24607 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24608 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24609 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24610 | |
| 24611 | fi |
| 24612 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24614 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24615 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 24616 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24617 | cat >conftest.$ac_ext <<_ACEOF |
| 24618 | /* confdefs.h. */ |
| 24619 | _ACEOF |
| 24620 | cat confdefs.h >>conftest.$ac_ext |
| 24621 | cat >>conftest.$ac_ext <<_ACEOF |
| 24622 | /* end confdefs.h. */ |
| 24623 | #include <curses.h> |
| 24624 | int |
| 24625 | main () |
| 24626 | { |
| 24627 | void *x=resizeterm |
| 24628 | ; |
| 24629 | return 0; |
| 24630 | } |
| 24631 | _ACEOF |
| 24632 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24633 | if { (ac_try="$ac_compile" |
| 24634 | case "(($ac_try" in |
| 24635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24636 | *) ac_try_echo=$ac_try;; |
| 24637 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24639 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24640 | ac_status=$? |
| 24641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24642 | rm -f conftest.er1 |
| 24643 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24645 | (exit $ac_status); } && { |
| 24646 | test -z "$ac_c_werror_flag" || |
| 24647 | test ! -s conftest.err |
| 24648 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24649 | |
| 24650 | cat >>confdefs.h <<\_ACEOF |
| 24651 | #define HAVE_CURSES_RESIZETERM 1 |
| 24652 | _ACEOF |
| 24653 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24654 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24655 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24656 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24657 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24659 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24660 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24661 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24662 | |
| 24663 | fi |
| 24664 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24666 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24667 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 24668 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24669 | |
| 24670 | if test -r /dev/ptmx |
| 24671 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24672 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24673 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24674 | |
| 24675 | cat >>confdefs.h <<\_ACEOF |
| 24676 | #define HAVE_DEV_PTMX 1 |
| 24677 | _ACEOF |
| 24678 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24679 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24680 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24681 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24682 | fi |
| 24683 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24684 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 24685 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24686 | |
| 24687 | if test -r /dev/ptc |
| 24688 | then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24689 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24690 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 24691 | |
| 24692 | cat >>confdefs.h <<\_ACEOF |
| 24693 | #define HAVE_DEV_PTC 1 |
| 24694 | _ACEOF |
| 24695 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24696 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24698 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 24699 | fi |
| 24700 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24701 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 24702 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24703 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24704 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24705 | See \`config.log' for more details." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24706 | echo "$as_me: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24707 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24708 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24709 | else |
| 24710 | cat >conftest.$ac_ext <<_ACEOF |
| 24711 | /* confdefs.h. */ |
| 24712 | _ACEOF |
| 24713 | cat confdefs.h >>conftest.$ac_ext |
| 24714 | cat >>conftest.$ac_ext <<_ACEOF |
| 24715 | /* end confdefs.h. */ |
| 24716 | #include <stdio.h> |
| 24717 | #include <stddef.h> |
| 24718 | #include <string.h> |
| 24719 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 24720 | #ifdef HAVE_SYS_TYPES_H |
| 24721 | #include <sys/types.h> |
| 24722 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24723 | |
| 24724 | #ifdef HAVE_SSIZE_T |
| 24725 | typedef ssize_t Py_ssize_t; |
| 24726 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 24727 | typedef long Py_ssize_t; |
| 24728 | #else |
| 24729 | typedef int Py_ssize_t; |
| 24730 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24731 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 24732 | int main() |
| 24733 | { |
| 24734 | char buffer[256]; |
| 24735 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24736 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 24737 | return 1; |
| 24738 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24739 | if (strcmp(buffer, "123")) |
| 24740 | return 1; |
| 24741 | |
| 24742 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 24743 | return 1; |
| 24744 | |
| 24745 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24746 | return 1; |
| 24747 | |
| 24748 | return 0; |
| 24749 | } |
| 24750 | _ACEOF |
| 24751 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24752 | if { (ac_try="$ac_link" |
| 24753 | case "(($ac_try" in |
| 24754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24755 | *) ac_try_echo=$ac_try;; |
| 24756 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24758 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24759 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24762 | { (case "(($ac_try" in |
| 24763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24764 | *) ac_try_echo=$ac_try;; |
| 24765 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24767 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24768 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24770 | (exit $ac_status); }; }; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24771 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24772 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24773 | |
| 24774 | cat >>confdefs.h <<\_ACEOF |
| 24775 | #define PY_FORMAT_SIZE_T "z" |
| 24776 | _ACEOF |
| 24777 | |
| 24778 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24779 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24780 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24782 | |
| 24783 | ( exit $ac_status ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24785 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24786 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24787 | 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] | 24788 | fi |
| 24789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24790 | |
| 24791 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24792 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 24793 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24794 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24798 | /* confdefs.h. */ |
| 24799 | _ACEOF |
| 24800 | cat confdefs.h >>conftest.$ac_ext |
| 24801 | cat >>conftest.$ac_ext <<_ACEOF |
| 24802 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 24803 | |
| 24804 | #ifdef HAVE_SYS_TYPES_H |
| 24805 | #include <sys/types.h> |
| 24806 | #endif |
| 24807 | #ifdef HAVE_SYS_SOCKET_H |
| 24808 | #include <sys/socket.h> |
| 24809 | #endif |
| 24810 | |
| 24811 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24812 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24813 | int |
| 24814 | main () |
| 24815 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24816 | if ((ac__type_new_ *) 0) |
| 24817 | return 0; |
| 24818 | if (sizeof (ac__type_new_)) |
| 24819 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24820 | ; |
| 24821 | return 0; |
| 24822 | } |
| 24823 | _ACEOF |
| 24824 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24825 | if { (ac_try="$ac_compile" |
| 24826 | case "(($ac_try" in |
| 24827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24828 | *) ac_try_echo=$ac_try;; |
| 24829 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24831 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24834 | rm -f conftest.er1 |
| 24835 | cat conftest.err >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24837 | (exit $ac_status); } && { |
| 24838 | test -z "$ac_c_werror_flag" || |
| 24839 | test ! -s conftest.err |
| 24840 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24841 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24842 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24845 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24846 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24847 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24848 | |
| 24849 | 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] | 24850 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24851 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 24852 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 24853 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24854 | : |
| 24855 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24856 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 24857 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24858 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24859 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24860 | |
| 24861 | fi |
| 24862 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24863 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24864 | { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5 |
| 24865 | echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24866 | if test "$cross_compiling" = yes; then |
| 24867 | ac_cv_broken_mbstowcs=no |
| 24868 | else |
| 24869 | cat >conftest.$ac_ext <<_ACEOF |
| 24870 | /* confdefs.h. */ |
| 24871 | _ACEOF |
| 24872 | cat confdefs.h >>conftest.$ac_ext |
| 24873 | cat >>conftest.$ac_ext <<_ACEOF |
| 24874 | /* end confdefs.h. */ |
| 24875 | |
| 24876 | #include<stdlib.h> |
| 24877 | int main() { |
| 24878 | size_t len = -1; |
| 24879 | const char *str = "text"; |
| 24880 | len = mbstowcs(NULL, str, 0); |
| 24881 | return (len != 4); |
| 24882 | } |
| 24883 | |
| 24884 | _ACEOF |
| 24885 | rm -f conftest$ac_exeext |
| 24886 | if { (ac_try="$ac_link" |
| 24887 | case "(($ac_try" in |
| 24888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24889 | *) ac_try_echo=$ac_try;; |
| 24890 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24892 | (eval "$ac_link") 2>&5 |
| 24893 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24896 | { (case "(($ac_try" in |
| 24897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24898 | *) ac_try_echo=$ac_try;; |
| 24899 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24901 | (eval "$ac_try") 2>&5 |
| 24902 | ac_status=$? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24904 | (exit $ac_status); }; }; then |
| 24905 | ac_cv_broken_mbstowcs=no |
| 24906 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24907 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24908 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24910 | |
| 24911 | ( exit $ac_status ) |
| 24912 | ac_cv_broken_mbstowcs=yes |
| 24913 | fi |
| 24914 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24915 | fi |
| 24916 | |
| 24917 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24918 | { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5 |
| 24919 | echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 24920 | if test "$ac_cv_broken_mbstowcs" = yes |
| 24921 | then |
| 24922 | |
| 24923 | cat >>confdefs.h <<\_ACEOF |
| 24924 | #define HAVE_BROKEN_MBSTOWCS 1 |
| 24925 | _ACEOF |
| 24926 | |
| 24927 | fi |
| 24928 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24929 | # Check for --with-computed-gotos |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24930 | { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5 |
| 24931 | echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24932 | |
| 24933 | # Check whether --with-computed-gotos was given. |
| 24934 | if test "${with_computed_gotos+set}" = set; then |
| 24935 | withval=$with_computed_gotos; |
| 24936 | if test "$withval" != no |
| 24937 | then |
| 24938 | |
| 24939 | cat >>confdefs.h <<\_ACEOF |
| 24940 | #define USE_COMPUTED_GOTOS 1 |
| 24941 | _ACEOF |
| 24942 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24943 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24944 | echo "${ECHO_T}yes" >&6; } |
| 24945 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 24946 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24947 | fi |
| 24948 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24949 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24950 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24951 | fi |
| 24952 | |
| 24953 | |
| 24954 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24955 | |
| 24956 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 24957 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 24958 | do |
| 24959 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 24960 | done |
| 24961 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24962 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 24963 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24964 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 24965 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 24966 | for dir in $SRCDIRS; do |
| 24967 | if test ! -d $dir; then |
| 24968 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 24969 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 24970 | done |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24971 | { echo "$as_me:$LINENO: result: done" >&5 |
| 24972 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 24973 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24974 | # generate output files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24975 | 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] | 24976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24977 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24978 | # This file is a shell script that caches the results of configure |
| 24979 | # 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] | 24980 | # scripts and configure runs, see configure's option --config-cache. |
| 24981 | # It is not useful on other systems. If it contains results you don't |
| 24982 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24983 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24984 | # config.status only pays attention to the cache file if you give it |
| 24985 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24986 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24987 | # `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] | 24988 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24989 | # following values. |
| 24990 | |
| 24991 | _ACEOF |
| 24992 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 24993 | # The following way of writing the cache mishandles newlines in values, |
| 24994 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24995 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 24996 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24997 | # 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] | 24998 | ( |
| 24999 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25000 | eval ac_val=\$$ac_var |
| 25001 | case $ac_val in #( |
| 25002 | *${as_nl}*) |
| 25003 | case $ac_var in #( |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25004 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 25005 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25006 | esac |
| 25007 | case $ac_var in #( |
| 25008 | _ | IFS | as_nl) ;; #( |
| 25009 | *) $as_unset $ac_var ;; |
| 25010 | esac ;; |
| 25011 | esac |
| 25012 | done |
| 25013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25014 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25015 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25016 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25017 | # `set' does not quote correctly, so add quotes (double-quote |
| 25018 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 25019 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25020 | "s/'/'\\\\''/g; |
| 25021 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25022 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25023 | *) |
| 25024 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25025 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25026 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25027 | esac | |
| 25028 | sort |
| 25029 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25030 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25031 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25032 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25033 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25034 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25035 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25036 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25037 | :end' >>confcache |
| 25038 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25039 | if test -w "$cache_file"; then |
| 25040 | test "x$cache_file" != "x/dev/null" && |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25041 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 25042 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25043 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25044 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25045 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 25046 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25047 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25048 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25049 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25050 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25051 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25052 | # Let make expand exec_prefix. |
| 25053 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25054 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25055 | DEFS=-DHAVE_CONFIG_H |
| 25056 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25057 | ac_libobjs= |
| 25058 | ac_ltlibobjs= |
| 25059 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25060 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25061 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25062 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25063 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25064 | # will be set to the directory where LIBOBJS objects are built. |
| 25065 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25066 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25067 | done |
| 25068 | LIBOBJS=$ac_libobjs |
| 25069 | |
| 25070 | LTLIBOBJS=$ac_ltlibobjs |
| 25071 | |
| 25072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25073 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25074 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25075 | ac_clean_files_save=$ac_clean_files |
| 25076 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25077 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 25078 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25079 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25080 | #! $SHELL |
| 25081 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25082 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25083 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25084 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25086 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25087 | ac_cs_recheck=false |
| 25088 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25089 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25090 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25091 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25092 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25093 | ## --------------------- ## |
| 25094 | ## M4sh Initialization. ## |
| 25095 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25096 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25097 | # Be more Bourne compatible |
| 25098 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25099 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25100 | emulate sh |
| 25101 | NULLCMD=: |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25102 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25103 | # is contrary to our usage. Disable this feature. |
| 25104 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25105 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25106 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25107 | case `(set -o) 2>/dev/null` in |
| 25108 | *posix*) set -o posix ;; |
| 25109 | esac |
| 25110 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25111 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25112 | |
| 25113 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25114 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25116 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25117 | # Avoid depending upon Character Ranges. |
| 25118 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25119 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25120 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25121 | as_cr_digits='0123456789' |
| 25122 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25123 | |
| 25124 | # The user is always right. |
| 25125 | if test "${PATH_SEPARATOR+set}" != set; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25126 | echo "#! /bin/sh" >conf$$.sh |
| 25127 | echo "exit 0" >>conf$$.sh |
| 25128 | chmod +x conf$$.sh |
| 25129 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 25130 | PATH_SEPARATOR=';' |
| 25131 | else |
| 25132 | PATH_SEPARATOR=: |
| 25133 | fi |
| 25134 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25135 | fi |
| 25136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25137 | # Support unset when possible. |
| 25138 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 25139 | as_unset=unset |
| 25140 | else |
| 25141 | as_unset=false |
| 25142 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25143 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25144 | |
| 25145 | # IFS |
| 25146 | # We need space, tab and new line, in precisely that order. Quoting is |
| 25147 | # there to prevent editors from complaining about space-tab. |
| 25148 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25149 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25150 | as_nl=' |
| 25151 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25152 | IFS=" "" $as_nl" |
| 25153 | |
| 25154 | # Find who we are. Look in the path if we contain no directory separator. |
| 25155 | case $0 in |
| 25156 | *[\\/]* ) as_myself=$0 ;; |
| 25157 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25158 | for as_dir in $PATH |
| 25159 | do |
| 25160 | IFS=$as_save_IFS |
| 25161 | test -z "$as_dir" && as_dir=. |
| 25162 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25163 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25164 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25165 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25166 | ;; |
| 25167 | esac |
| 25168 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25169 | # in which case we are not to be found in the path. |
| 25170 | if test "x$as_myself" = x; then |
| 25171 | as_myself=$0 |
| 25172 | fi |
| 25173 | if test ! -f "$as_myself"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25174 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25175 | { (exit 1); exit 1; } |
| 25176 | fi |
| 25177 | |
| 25178 | # Work around bugs in pre-3.0 UWIN ksh. |
| 25179 | for as_var in ENV MAIL MAILPATH |
| 25180 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25181 | done |
| 25182 | PS1='$ ' |
| 25183 | PS2='> ' |
| 25184 | PS4='+ ' |
| 25185 | |
| 25186 | # NLS nuisances. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25187 | for as_var in \ |
| 25188 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 25189 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 25190 | LC_TELEPHONE LC_TIME |
| 25191 | do |
| 25192 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 25193 | eval $as_var=C; export $as_var |
| 25194 | else |
| 25195 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25196 | fi |
| 25197 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25198 | |
| 25199 | # Required to use basename. |
| 25200 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25201 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25202 | as_expr=expr |
| 25203 | else |
| 25204 | as_expr=false |
| 25205 | fi |
| 25206 | |
| 25207 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25208 | as_basename=basename |
| 25209 | else |
| 25210 | as_basename=false |
| 25211 | fi |
| 25212 | |
| 25213 | |
| 25214 | # Name of the executable. |
| 25215 | as_me=`$as_basename -- "$0" || |
| 25216 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25217 | X"$0" : 'X\(//\)$' \| \ |
| 25218 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25219 | echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25220 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25221 | s//\1/ |
| 25222 | q |
| 25223 | } |
| 25224 | /^X\/\(\/\/\)$/{ |
| 25225 | s//\1/ |
| 25226 | q |
| 25227 | } |
| 25228 | /^X\/\(\/\).*/{ |
| 25229 | s//\1/ |
| 25230 | q |
| 25231 | } |
| 25232 | s/.*/./; q'` |
| 25233 | |
| 25234 | # CDPATH. |
| 25235 | $as_unset CDPATH |
| 25236 | |
| 25237 | |
| 25238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25239 | as_lineno_1=$LINENO |
| 25240 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25241 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25242 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25244 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25245 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25246 | # line-number line after each line using $LINENO; the second 'sed' |
| 25247 | # does the real work. The second script uses 'N' to pair each |
| 25248 | # line-number line with the line containing $LINENO, and appends |
| 25249 | # trailing '-' during substitution so that $LINENO is not a special |
| 25250 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25251 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25252 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 25253 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 25254 | sed -n ' |
| 25255 | p |
| 25256 | /[$]LINENO/= |
| 25257 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25258 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25259 | s/[$]LINENO.*/&-/ |
| 25260 | t lineno |
| 25261 | b |
| 25262 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25263 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25264 | :loop |
| 25265 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25266 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25267 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25268 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25269 | chmod +x "$as_me.lineno" || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25270 | { 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] | 25271 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25273 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25274 | # (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] | 25275 | # original and so on. Autoconf is especially sensitive to this). |
| 25276 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25277 | # Exit status is that of the last command. |
| 25278 | exit |
| 25279 | } |
| 25280 | |
| 25281 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25282 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25283 | as_dirname=dirname |
| 25284 | else |
| 25285 | as_dirname=false |
| 25286 | fi |
| 25287 | |
| 25288 | ECHO_C= ECHO_N= ECHO_T= |
| 25289 | case `echo -n x` in |
| 25290 | -n*) |
| 25291 | case `echo 'x\c'` in |
| 25292 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25293 | *) ECHO_C='\c';; |
| 25294 | esac;; |
| 25295 | *) |
| 25296 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25297 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25298 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25299 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25300 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25301 | as_expr=expr |
| 25302 | else |
| 25303 | as_expr=false |
| 25304 | fi |
| 25305 | |
| 25306 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25307 | if test -d conf$$.dir; then |
| 25308 | rm -f conf$$.dir/conf$$.file |
| 25309 | else |
| 25310 | rm -f conf$$.dir |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25311 | mkdir conf$$.dir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25312 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25313 | echo >conf$$.file |
| 25314 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25315 | as_ln_s='ln -s' |
| 25316 | # ... but there are two gotchas: |
| 25317 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25318 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25319 | # In both cases, we have to default to `cp -p'. |
| 25320 | 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] | 25321 | as_ln_s='cp -p' |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25322 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25323 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25324 | else |
| 25325 | as_ln_s='cp -p' |
| 25326 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25327 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25328 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25329 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25330 | if mkdir -p . 2>/dev/null; then |
| 25331 | as_mkdir_p=: |
| 25332 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25333 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25334 | as_mkdir_p=false |
| 25335 | fi |
| 25336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25337 | if test -x / >/dev/null 2>&1; then |
| 25338 | as_test_x='test -x' |
| 25339 | else |
| 25340 | if ls -dL / >/dev/null 2>&1; then |
| 25341 | as_ls_L_option=L |
| 25342 | else |
| 25343 | as_ls_L_option= |
| 25344 | fi |
| 25345 | as_test_x=' |
| 25346 | eval sh -c '\'' |
| 25347 | if test -d "$1"; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25348 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25349 | else |
| 25350 | case $1 in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25351 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25352 | esac; |
| 25353 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 25354 | ???[sx]*):;;*)false;;esac;fi |
| 25355 | '\'' sh |
| 25356 | ' |
| 25357 | fi |
| 25358 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25359 | |
| 25360 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25361 | 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] | 25362 | |
| 25363 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25364 | 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] | 25365 | |
| 25366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25367 | exec 6>&1 |
| 25368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25369 | # 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] | 25370 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25371 | # values after options handling. |
| 25372 | ac_log=" |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 25373 | This file was extended by python $as_me 3.1, which was |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25374 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25375 | |
| 25376 | CONFIG_FILES = $CONFIG_FILES |
| 25377 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25378 | CONFIG_LINKS = $CONFIG_LINKS |
| 25379 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25380 | $ $0 $@ |
| 25381 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25382 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25383 | " |
| 25384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25385 | _ACEOF |
| 25386 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25387 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25388 | # Files that config.status was made for. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25389 | config_files="$ac_config_files" |
| 25390 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25391 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25392 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25393 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25394 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25395 | ac_cs_usage="\ |
| 25396 | \`$as_me' instantiates files from templates according to the |
| 25397 | current configuration. |
| 25398 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25399 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25400 | |
| 25401 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25402 | -V, --version print version number and configuration settings, then exit |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25403 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25404 | -d, --debug don't remove temporary files |
| 25405 | --recheck update $as_me by reconfiguring in the same conditions |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25406 | --file=FILE[:TEMPLATE] |
| 25407 | instantiate the configuration file FILE |
| 25408 | --header=FILE[:TEMPLATE] |
| 25409 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25410 | |
| 25411 | Configuration files: |
| 25412 | $config_files |
| 25413 | |
| 25414 | Configuration headers: |
| 25415 | $config_headers |
| 25416 | |
| 25417 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25418 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25419 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25420 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25421 | ac_cs_version="\\ |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 25422 | python config.status 3.1 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25423 | configured by $0, generated by GNU Autoconf 2.61, |
| 25424 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25425 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25426 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25427 | This config.status script is free software; the Free Software Foundation |
| 25428 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25429 | |
| 25430 | ac_pwd='$ac_pwd' |
| 25431 | srcdir='$srcdir' |
| 25432 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25433 | _ACEOF |
| 25434 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25435 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25436 | # If no file are specified by the user, then we need to provide default |
| 25437 | # value. By we need to know if files were specified by the user. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25438 | ac_need_defaults=: |
| 25439 | while test $# != 0 |
| 25440 | do |
| 25441 | case $1 in |
| 25442 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25443 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25444 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25445 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25446 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25447 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25448 | ac_option=$1 |
| 25449 | ac_optarg=$2 |
| 25450 | ac_shift=shift |
| 25451 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25452 | esac |
| 25453 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25454 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25455 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25456 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25457 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25458 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25459 | echo "$ac_cs_version"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25460 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25461 | debug=: ;; |
| 25462 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25463 | $ac_shift |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25464 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25465 | ac_need_defaults=false;; |
| 25466 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25467 | $ac_shift |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25468 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25469 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25470 | --he | --h) |
| 25471 | # Conflict between --help and --header |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25472 | { echo "$as_me: error: ambiguous option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25473 | Try \`$0 --help' for more information." >&2 |
| 25474 | { (exit 1); exit 1; }; };; |
| 25475 | --help | --hel | -h ) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25476 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25477 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25478 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25479 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25480 | |
| 25481 | # This is an error. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25482 | -*) { echo "$as_me: error: unrecognized option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25483 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25484 | { (exit 1); exit 1; }; } ;; |
| 25485 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25486 | *) ac_config_targets="$ac_config_targets $1" |
| 25487 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25488 | |
| 25489 | esac |
| 25490 | shift |
| 25491 | done |
| 25492 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25493 | ac_configure_extra_args= |
| 25494 | |
| 25495 | if $ac_cs_silent; then |
| 25496 | exec 6>/dev/null |
| 25497 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25498 | fi |
| 25499 | |
| 25500 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25501 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25502 | if \$ac_cs_recheck; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25503 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 25504 | CONFIG_SHELL=$SHELL |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25505 | export CONFIG_SHELL |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25506 | 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] | 25507 | fi |
| 25508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25509 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25510 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25511 | exec 5>>config.log |
| 25512 | { |
| 25513 | echo |
| 25514 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25515 | ## Running $as_me. ## |
| 25516 | _ASBOX |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25517 | echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25518 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25520 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25521 | cat >>$CONFIG_STATUS <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25522 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25523 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25524 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25525 | |
| 25526 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25527 | for ac_config_target in $ac_config_targets |
| 25528 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25529 | case $ac_config_target in |
| 25530 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 25531 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 25532 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 25533 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 25534 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25535 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 25536 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 25537 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25538 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 25539 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25540 | { (exit 1); exit 1; }; };; |
| 25541 | esac |
| 25542 | done |
| 25543 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25545 | # If the user did not use the arguments to specify the items to instantiate, |
| 25546 | # then the envvar interface is used. Set only those that are not. |
| 25547 | # We use the long form for the default assignment because of an extremely |
| 25548 | # bizarre bug on SunOS 4.1.3. |
| 25549 | if $ac_need_defaults; then |
| 25550 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25551 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25552 | fi |
| 25553 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25554 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25555 | # 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] | 25556 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25557 | # Hook for its removal unless debugging. |
| 25558 | # Note that there is a small window in which the directory will not be cleaned: |
| 25559 | # 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] | 25560 | $debug || |
| 25561 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25562 | tmp= |
| 25563 | trap 'exit_status=$? |
| 25564 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25565 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25566 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25567 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25568 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25570 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25571 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25572 | test -n "$tmp" && test -d "$tmp" |
| 25573 | } || |
| 25574 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25575 | tmp=./conf$$-$RANDOM |
| 25576 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25577 | } || |
| 25578 | { |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25579 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25580 | { (exit 1); exit 1; } |
| 25581 | } |
| 25582 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25583 | # |
| 25584 | # Set up the sed scripts for CONFIG_FILES section. |
| 25585 | # |
| 25586 | |
| 25587 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25588 | # This happens for instance when ./config.status config.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25589 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25590 | |
| 25591 | _ACEOF |
| 25592 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25593 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25594 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25595 | ac_delim='%!_!# ' |
| 25596 | for ac_last_try in false false false false false :; do |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25597 | cat >conf$$subs.sed <<_ACEOF |
| 25598 | SHELL!$SHELL$ac_delim |
| 25599 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 25600 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 25601 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 25602 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 25603 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 25604 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 25605 | exec_prefix!$exec_prefix$ac_delim |
| 25606 | prefix!$prefix$ac_delim |
| 25607 | program_transform_name!$program_transform_name$ac_delim |
| 25608 | bindir!$bindir$ac_delim |
| 25609 | sbindir!$sbindir$ac_delim |
| 25610 | libexecdir!$libexecdir$ac_delim |
| 25611 | datarootdir!$datarootdir$ac_delim |
| 25612 | datadir!$datadir$ac_delim |
| 25613 | sysconfdir!$sysconfdir$ac_delim |
| 25614 | sharedstatedir!$sharedstatedir$ac_delim |
| 25615 | localstatedir!$localstatedir$ac_delim |
| 25616 | includedir!$includedir$ac_delim |
| 25617 | oldincludedir!$oldincludedir$ac_delim |
| 25618 | docdir!$docdir$ac_delim |
| 25619 | infodir!$infodir$ac_delim |
| 25620 | htmldir!$htmldir$ac_delim |
| 25621 | dvidir!$dvidir$ac_delim |
| 25622 | pdfdir!$pdfdir$ac_delim |
| 25623 | psdir!$psdir$ac_delim |
| 25624 | libdir!$libdir$ac_delim |
| 25625 | localedir!$localedir$ac_delim |
| 25626 | mandir!$mandir$ac_delim |
| 25627 | DEFS!$DEFS$ac_delim |
| 25628 | ECHO_C!$ECHO_C$ac_delim |
| 25629 | ECHO_N!$ECHO_N$ac_delim |
| 25630 | ECHO_T!$ECHO_T$ac_delim |
| 25631 | LIBS!$LIBS$ac_delim |
| 25632 | build_alias!$build_alias$ac_delim |
| 25633 | host_alias!$host_alias$ac_delim |
| 25634 | target_alias!$target_alias$ac_delim |
| 25635 | VERSION!$VERSION$ac_delim |
| 25636 | SOVERSION!$SOVERSION$ac_delim |
| 25637 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 25638 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 25639 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 25640 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 25641 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 25642 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 25643 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 25644 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 25645 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 25646 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 25647 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 25648 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 25649 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 25650 | MACHDEP!$MACHDEP$ac_delim |
| 25651 | SGI_ABI!$SGI_ABI$ac_delim |
| 25652 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 25653 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 25654 | CC!$CC$ac_delim |
| 25655 | CFLAGS!$CFLAGS$ac_delim |
| 25656 | LDFLAGS!$LDFLAGS$ac_delim |
| 25657 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 25658 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 25659 | EXEEXT!$EXEEXT$ac_delim |
| 25660 | OBJEXT!$OBJEXT$ac_delim |
| 25661 | CXX!$CXX$ac_delim |
| 25662 | MAINCC!$MAINCC$ac_delim |
| 25663 | CPP!$CPP$ac_delim |
| 25664 | GREP!$GREP$ac_delim |
| 25665 | EGREP!$EGREP$ac_delim |
| 25666 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 25667 | LIBRARY!$LIBRARY$ac_delim |
| 25668 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 25669 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 25670 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 25671 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 25672 | INSTSONAME!$INSTSONAME$ac_delim |
| 25673 | RUNSHARED!$RUNSHARED$ac_delim |
| 25674 | LINKCC!$LINKCC$ac_delim |
| 25675 | RANLIB!$RANLIB$ac_delim |
| 25676 | AR!$AR$ac_delim |
| 25677 | SVNVERSION!$SVNVERSION$ac_delim |
| 25678 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 25679 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 25680 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 25681 | LN!$LN$ac_delim |
| 25682 | OPT!$OPT$ac_delim |
| 25683 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 25684 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 25685 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 25686 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 25687 | SO!$SO$ac_delim |
| 25688 | LDSHARED!$LDSHARED$ac_delim |
| 25689 | BLDSHARED!$BLDSHARED$ac_delim |
| 25690 | CCSHARED!$CCSHARED$ac_delim |
| 25691 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 25692 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 25693 | SHLIBS!$SHLIBS$ac_delim |
| 25694 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 25695 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25696 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25697 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25698 | break |
| 25699 | elif $ac_last_try; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25700 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25701 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25702 | { (exit 1); exit 1; }; } |
| 25703 | else |
| 25704 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25705 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25706 | done |
| 25707 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25708 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25709 | if test -n "$ac_eof"; then |
| 25710 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25711 | ac_eof=`expr $ac_eof + 1` |
| 25712 | fi |
| 25713 | |
| 25714 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25715 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 25716 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25717 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25718 | sed ' |
| 25719 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25720 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25721 | :n |
| 25722 | t n |
| 25723 | s/'"$ac_delim"'$/,g/; t |
| 25724 | s/$/\\/; p |
| 25725 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25726 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25727 | rm -f conf$$subs.sed |
| 25728 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25729 | CEOF$ac_eof |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25730 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25731 | |
| 25732 | |
| 25733 | ac_delim='%!_!# ' |
| 25734 | for ac_last_try in false false false false false :; do |
| 25735 | cat >conf$$subs.sed <<_ACEOF |
| 25736 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 25737 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 25738 | LDLAST!$LDLAST$ac_delim |
| 25739 | THREADOBJ!$THREADOBJ$ac_delim |
| 25740 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 25741 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 25742 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 25743 | TRUE!$TRUE$ac_delim |
| 25744 | LIBOBJS!$LIBOBJS$ac_delim |
| 25745 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 25746 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 25747 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 25748 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 25749 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 25750 | LIBM!$LIBM$ac_delim |
| 25751 | LIBC!$LIBC$ac_delim |
| 25752 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 25753 | SRCDIRS!$SRCDIRS$ac_delim |
| 25754 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25755 | _ACEOF |
| 25756 | |
| 25757 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
| 25758 | break |
| 25759 | elif $ac_last_try; then |
| 25760 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25761 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25762 | { (exit 1); exit 1; }; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25763 | else |
| 25764 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25765 | fi |
| 25766 | done |
| 25767 | |
| 25768 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25769 | if test -n "$ac_eof"; then |
| 25770 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25771 | ac_eof=`expr $ac_eof + 1` |
| 25772 | fi |
| 25773 | |
| 25774 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25775 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 25776 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25777 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25778 | sed ' |
| 25779 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25780 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25781 | :n |
| 25782 | t n |
| 25783 | s/'"$ac_delim"'$/,g/; t |
| 25784 | s/$/\\/; p |
| 25785 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25786 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25787 | rm -f conf$$subs.sed |
| 25788 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25789 | :end |
| 25790 | s/|#_!!_#|//g |
| 25791 | CEOF$ac_eof |
| 25792 | _ACEOF |
| 25793 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25794 | |
| 25795 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25796 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25797 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25798 | # (actually we leave an empty line to preserve line numbers). |
| 25799 | if test "x$srcdir" = x.; then |
| 25800 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25801 | s/:*\$(srcdir):*/:/ |
| 25802 | s/:*\${srcdir}:*/:/ |
| 25803 | s/:*@srcdir@:*/:/ |
| 25804 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25805 | s/:*$// |
| 25806 | s/^[^=]*=[ ]*$// |
| 25807 | }' |
| 25808 | fi |
| 25809 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25810 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25811 | fi # test -n "$CONFIG_FILES" |
| 25812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25813 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25814 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25815 | do |
| 25816 | case $ac_tag in |
| 25817 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25818 | esac |
| 25819 | case $ac_mode$ac_tag in |
| 25820 | :[FHL]*:*);; |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25821 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 25822 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25823 | { (exit 1); exit 1; }; };; |
| 25824 | :[FH]-) ac_tag=-:-;; |
| 25825 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25826 | esac |
| 25827 | ac_save_IFS=$IFS |
| 25828 | IFS=: |
| 25829 | set x $ac_tag |
| 25830 | IFS=$ac_save_IFS |
| 25831 | shift |
| 25832 | ac_file=$1 |
| 25833 | shift |
| 25834 | |
| 25835 | case $ac_mode in |
| 25836 | :L) ac_source=$1;; |
| 25837 | :[FH]) |
| 25838 | ac_file_inputs= |
| 25839 | for ac_f |
| 25840 | do |
| 25841 | case $ac_f in |
| 25842 | -) ac_f="$tmp/stdin";; |
| 25843 | *) # Look for the file first in the build tree, then in the source tree |
| 25844 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25845 | # because $ac_f cannot contain `:'. |
| 25846 | test -f "$ac_f" || |
| 25847 | case $ac_f in |
| 25848 | [\\/$]*) false;; |
| 25849 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25850 | esac || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25851 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 25852 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25853 | { (exit 1); exit 1; }; };; |
| 25854 | esac |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25855 | ac_file_inputs="$ac_file_inputs $ac_f" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25856 | done |
| 25857 | |
| 25858 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25859 | # use $as_me), people would be surprised to read: |
| 25860 | # /* config.h. Generated by config.status. */ |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25861 | configure_input="Generated from "`IFS=: |
| 25862 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25863 | if test x"$ac_file" != x-; then |
| 25864 | configure_input="$ac_file. $configure_input" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25865 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25866 | echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25867 | fi |
| 25868 | |
| 25869 | case $ac_tag in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25870 | *:-:* | *:-) cat >"$tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25871 | esac |
| 25872 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25873 | esac |
| 25874 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25875 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25876 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25877 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25878 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25879 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25880 | echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25881 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25882 | s//\1/ |
| 25883 | q |
| 25884 | } |
| 25885 | /^X\(\/\/\)[^/].*/{ |
| 25886 | s//\1/ |
| 25887 | q |
| 25888 | } |
| 25889 | /^X\(\/\/\)$/{ |
| 25890 | s//\1/ |
| 25891 | q |
| 25892 | } |
| 25893 | /^X\(\/\).*/{ |
| 25894 | s//\1/ |
| 25895 | q |
| 25896 | } |
| 25897 | s/.*/./; q'` |
| 25898 | { as_dir="$ac_dir" |
| 25899 | case $as_dir in #( |
| 25900 | -*) as_dir=./$as_dir;; |
| 25901 | esac |
| 25902 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25903 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25904 | while :; do |
| 25905 | case $as_dir in #( |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25906 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25907 | *) as_qdir=$as_dir;; |
| 25908 | esac |
| 25909 | as_dirs="'$as_qdir' $as_dirs" |
| 25910 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25911 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25912 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25913 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25914 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25915 | echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25917 | s//\1/ |
| 25918 | q |
| 25919 | } |
| 25920 | /^X\(\/\/\)[^/].*/{ |
| 25921 | s//\1/ |
| 25922 | q |
| 25923 | } |
| 25924 | /^X\(\/\/\)$/{ |
| 25925 | s//\1/ |
| 25926 | q |
| 25927 | } |
| 25928 | /^X\(\/\).*/{ |
| 25929 | s//\1/ |
| 25930 | q |
| 25931 | } |
| 25932 | s/.*/./; q'` |
| 25933 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25934 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25935 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25936 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 25937 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25938 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25939 | ac_builddir=. |
| 25940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25941 | case "$ac_dir" in |
| 25942 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25943 | *) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25944 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25945 | # A ".." for each directory in $ac_dir_suffix. |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25946 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25947 | case $ac_top_builddir_sub in |
| 25948 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25949 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25950 | esac ;; |
| 25951 | esac |
| 25952 | ac_abs_top_builddir=$ac_pwd |
| 25953 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25954 | # for backward compatibility: |
| 25955 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25956 | |
| 25957 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25958 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25959 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25960 | ac_top_srcdir=$ac_top_builddir_sub |
| 25961 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25962 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25963 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25964 | ac_top_srcdir=$srcdir |
| 25965 | ac_abs_top_srcdir=$srcdir ;; |
| 25966 | *) # Relative name. |
| 25967 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25968 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25969 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25970 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25971 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25974 | case $ac_mode in |
| 25975 | :F) |
| 25976 | # |
| 25977 | # CONFIG_FILE |
| 25978 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25979 | |
| 25980 | case $INSTALL in |
| 25981 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25982 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25983 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25984 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25985 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25986 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25987 | # If the template does not know about datarootdir, expand it. |
| 25988 | # FIXME: This hack should be removed a few years after 2.60. |
| 25989 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 25990 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 25991 | case `sed -n '/datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25992 | p |
| 25993 | q |
| 25994 | } |
| 25995 | /@datadir@/p |
| 25996 | /@docdir@/p |
| 25997 | /@infodir@/p |
| 25998 | /@localedir@/p |
| 25999 | /@mandir@/p |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26000 | ' $ac_file_inputs` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26001 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 26002 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26003 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26004 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26005 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26006 | cat >>$CONFIG_STATUS <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26007 | ac_datarootdir_hack=' |
| 26008 | s&@datadir@&$datadir&g |
| 26009 | s&@docdir@&$docdir&g |
| 26010 | s&@infodir@&$infodir&g |
| 26011 | s&@localedir@&$localedir&g |
| 26012 | s&@mandir@&$mandir&g |
| 26013 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26014 | esac |
| 26015 | _ACEOF |
| 26016 | |
| 26017 | # Neutralize VPATH when `$srcdir' = `.'. |
| 26018 | # Shell code in configure.ac might set extrasub. |
| 26019 | # FIXME: do we really want to maintain this feature? |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26020 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26021 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26022 | $extrasub |
| 26023 | _ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26024 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26025 | :t |
| 26026 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26027 | s&@configure_input@&$configure_input&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26028 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26029 | s&@srcdir@&$ac_srcdir&;t t |
| 26030 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26031 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26032 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26033 | s&@builddir@&$ac_builddir&;t t |
| 26034 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26035 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26036 | s&@INSTALL@&$ac_INSTALL&;t t |
| 26037 | $ac_datarootdir_hack |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26038 | " $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] | 26039 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26040 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26041 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 26042 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26043 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26044 | which seems to be undefined. Please make sure it is defined." >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26045 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26046 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 26047 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26048 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26049 | case $ac_file in |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26050 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 26051 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 26052 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26053 | ;; |
| 26054 | :H) |
| 26055 | # |
| 26056 | # CONFIG_HEADER |
| 26057 | # |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26058 | _ACEOF |
| 26059 | |
| 26060 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 26061 | # substitutes the proper values into config.h.in to produce config.h. |
| 26062 | rm -f conftest.defines conftest.tail |
| 26063 | # First, append a space to every undef/define line, to ease matching. |
| 26064 | echo 's/$/ /' >conftest.defines |
| 26065 | # Then, protect against being on the right side of a sed subst, or in |
| 26066 | # an unquoted here document, in config.status. If some macros were |
| 26067 | # called several times there might be several #defines for the same |
| 26068 | # symbol, which is useless. But do not sort them, since the last |
| 26069 | # AC_DEFINE must be honored. |
| 26070 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26071 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 26072 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 26073 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 26074 | # just an empty string. |
| 26075 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 26076 | ac_dB='\\)[ (].*,\\1define\\2' |
| 26077 | ac_dC=' ' |
| 26078 | ac_dD=' ,' |
| 26079 | |
| 26080 | uniq confdefs.h | |
| 26081 | sed -n ' |
| 26082 | t rset |
| 26083 | :rset |
| 26084 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 26085 | t ok |
| 26086 | d |
| 26087 | :ok |
| 26088 | s/[\\&,]/\\&/g |
| 26089 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 26090 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 26091 | ' >>conftest.defines |
| 26092 | |
| 26093 | # Remove the space that was appended to ease matching. |
| 26094 | # Then replace #undef with comments. This is necessary, for |
| 26095 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 26096 | # on some systems where configure will not decide to define it. |
| 26097 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 26098 | echo 's/ $// |
| 26099 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 26100 | |
| 26101 | # Break up conftest.defines: |
| 26102 | ac_max_sed_lines=50 |
| 26103 | |
| 26104 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 26105 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 26106 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 26107 | # et cetera. |
| 26108 | ac_in='$ac_file_inputs' |
| 26109 | ac_out='"$tmp/out1"' |
| 26110 | ac_nxt='"$tmp/out2"' |
| 26111 | |
| 26112 | while : |
| 26113 | do |
| 26114 | # Write a here document: |
| 26115 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26116 | # First, check the format of the line: |
| 26117 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 26118 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 26119 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 26120 | b |
| 26121 | :def |
| 26122 | _ACEOF |
| 26123 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 26124 | echo 'CEOF |
| 26125 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 26126 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 26127 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 26128 | grep . conftest.tail >/dev/null || break |
| 26129 | rm -f conftest.defines |
| 26130 | mv conftest.tail conftest.defines |
| 26131 | done |
| 26132 | rm -f conftest.defines conftest.tail |
| 26133 | |
| 26134 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 26135 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26136 | if test x"$ac_file" != x-; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26137 | echo "/* $configure_input */" >"$tmp/config.h" |
| 26138 | cat "$ac_result" >>"$tmp/config.h" |
| 26139 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 26140 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26141 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26142 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26143 | rm -f $ac_file |
| 26144 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26145 | fi |
| 26146 | else |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26147 | echo "/* $configure_input */" |
| 26148 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26149 | fi |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 26150 | rm -f "$tmp/out12" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26151 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 26152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26153 | |
| 26154 | esac |
| 26155 | |
| 26156 | done # for ac_tag |
| 26157 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26159 | { (exit 0); exit 0; } |
| 26160 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26161 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26162 | ac_clean_files=$ac_clean_files_save |
| 26163 | |
| 26164 | |
| 26165 | # configure is writing to config.log, and then calls config.status. |
| 26166 | # config.status does its own redirection, appending to config.log. |
| 26167 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26168 | # by configure, so config.status won't be able to write to it; its |
| 26169 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26170 | # effectively closing config.log, so it can be properly (re)opened and |
| 26171 | # appended to by config.status. When coming back to configure, we |
| 26172 | # need to make the FD available again. |
| 26173 | if test "$no_create" != yes; then |
| 26174 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26175 | ac_config_status_args= |
| 26176 | test "$silent" = yes && |
| 26177 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26178 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26179 | $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] | 26180 | exec 5>>config.log |
| 26181 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26182 | # would make configure fail if this is the last instruction. |
| 26183 | $ac_cs_success || { (exit 1); exit 1; } |
| 26184 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26185 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26186 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 26187 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26188 | if test ! -f Modules/Setup |
| 26189 | then |
| 26190 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 26191 | fi |
| 26192 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 26193 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26194 | if test ! -f Modules/Setup.local |
| 26195 | then |
| 26196 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 26197 | fi |
| 26198 | |
| 26199 | echo "creating Makefile" |
| 26200 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 26201 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 26202 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 26203 | mv config.c Modules |