Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 74072 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
| 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 | EXTRAPLATDIR |
| 674 | EXTRAMACHDEPPATH |
| 675 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CC |
| 678 | CFLAGS |
| 679 | LDFLAGS |
| 680 | CPPFLAGS |
| 681 | ac_ct_CC |
| 682 | EXEEXT |
| 683 | OBJEXT |
| 684 | CXX |
| 685 | MAINCC |
| 686 | CPP |
| 687 | GREP |
| 688 | EGREP |
| 689 | BUILDEXEEXT |
| 690 | LIBRARY |
| 691 | LDLIBRARY |
| 692 | DLLLIBRARY |
| 693 | BLDLIBRARY |
| 694 | LDLIBRARYDIR |
| 695 | INSTSONAME |
| 696 | RUNSHARED |
| 697 | LINKCC |
| 698 | GNULD |
| 699 | RANLIB |
| 700 | AR |
| 701 | ARFLAGS |
| 702 | SVNVERSION |
| 703 | INSTALL_PROGRAM |
| 704 | INSTALL_SCRIPT |
| 705 | INSTALL_DATA |
| 706 | LN |
| 707 | OPT |
| 708 | BASECFLAGS |
| 709 | UNIVERSAL_ARCH_FLAGS |
| 710 | OTHER_LIBTOOL_OPT |
| 711 | LIBTOOL_CRUFT |
| 712 | SO |
| 713 | LDSHARED |
| 714 | BLDSHARED |
| 715 | CCSHARED |
| 716 | LINKFORSHARED |
| 717 | CFLAGSFORSHARED |
| 718 | SHLIBS |
| 719 | USE_SIGNAL_MODULE |
| 720 | SIGNAL_OBJS |
| 721 | USE_THREAD_MODULE |
| 722 | LDLAST |
| 723 | THREADOBJ |
| 724 | DLINCLDIR |
| 725 | DYNLOADFILE |
| 726 | MACHDEP_OBJS |
| 727 | TRUE |
| 728 | LIBOBJS |
| 729 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 730 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 731 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 732 | HAVE_GETHOSTBYNAME_R |
| 733 | HAVE_GETHOSTBYNAME |
| 734 | LIBM |
| 735 | LIBC |
| 736 | UNICODE_OBJS |
| 737 | THREADHEADERS |
| 738 | SRCDIRS |
| 739 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 741 | ac_precious_vars='build_alias |
| 742 | host_alias |
| 743 | target_alias |
| 744 | CC |
| 745 | CFLAGS |
| 746 | LDFLAGS |
| 747 | LIBS |
| 748 | CPPFLAGS |
| 749 | CPP' |
| 750 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 751 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 753 | ac_init_help= |
| 754 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # The variables have the same names as the options, with |
| 756 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 758 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 759 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | no_recursion= |
| 761 | prefix=NONE |
| 762 | program_prefix=NONE |
| 763 | program_suffix=NONE |
| 764 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 767 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | x_includes=NONE |
| 770 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 771 | |
| 772 | # Installation directory options. |
| 773 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 774 | # and all the variables that are supposed to be based on exec_prefix |
| 775 | # by default will actually change. |
| 776 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 777 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | bindir='${exec_prefix}/bin' |
| 779 | sbindir='${exec_prefix}/sbin' |
| 780 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 781 | datarootdir='${prefix}/share' |
| 782 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | sysconfdir='${prefix}/etc' |
| 784 | sharedstatedir='${prefix}/com' |
| 785 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | includedir='${prefix}/include' |
| 787 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 788 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 789 | infodir='${datarootdir}/info' |
| 790 | htmldir='${docdir}' |
| 791 | dvidir='${docdir}' |
| 792 | pdfdir='${docdir}' |
| 793 | psdir='${docdir}' |
| 794 | libdir='${exec_prefix}/lib' |
| 795 | localedir='${datarootdir}/locale' |
| 796 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 797 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 799 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | # If the previous option needs an argument, assign it. |
| 803 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | ac_prev= |
| 806 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 807 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | case $ac_option in |
| 810 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 811 | *) ac_optarg=yes ;; |
| 812 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 816 | case $ac_dashdash$ac_option in |
| 817 | --) |
| 818 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 821 | ac_prev=bindir ;; |
| 822 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | |
| 825 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 828 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 832 | ac_prev=cache_file ;; |
| 833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 835 | cache_file=$ac_optarg ;; |
| 836 | |
| 837 | --config-cache | -C) |
| 838 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 842 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 846 | | --dataroo | --dataro | --datar) |
| 847 | ac_prev=datarootdir ;; |
| 848 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 849 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 850 | datarootdir=$ac_optarg ;; |
| 851 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 853 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 854 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 855 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 856 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 859 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | |
| 861 | -docdir | --docdir | --docdi | --doc | --do) |
| 862 | ac_prev=docdir ;; |
| 863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 864 | docdir=$ac_optarg ;; |
| 865 | |
| 866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 867 | ac_prev=dvidir ;; |
| 868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 869 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | |
| 871 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 872 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 874 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 875 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 878 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 881 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 882 | | --exec | --exe | --ex) |
| 883 | ac_prev=exec_prefix ;; |
| 884 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 885 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 886 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 887 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 | |
| 889 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 | # Obsolete; use --with-gas. |
| 891 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 893 | -help | --help | --hel | --he | -h) |
| 894 | ac_init_help=long ;; |
| 895 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 896 | ac_init_help=recursive ;; |
| 897 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 898 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
| 900 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 903 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 905 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 906 | ac_prev=htmldir ;; |
| 907 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 908 | | --ht=*) |
| 909 | htmldir=$ac_optarg ;; |
| 910 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | -includedir | --includedir | --includedi | --included | --include \ |
| 912 | | --includ | --inclu | --incl | --inc) |
| 913 | ac_prev=includedir ;; |
| 914 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 915 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 919 | ac_prev=infodir ;; |
| 920 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libdir | --libdir | --libdi | --libd) |
| 924 | ac_prev=libdir ;; |
| 925 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | |
| 928 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 929 | | --libexe | --libex | --libe) |
| 930 | ac_prev=libexecdir ;; |
| 931 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 932 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 935 | -localedir | --localedir | --localedi | --localed | --locale) |
| 936 | ac_prev=localedir ;; |
| 937 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 938 | localedir=$ac_optarg ;; |
| 939 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 940 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 941 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 942 | ac_prev=localstatedir ;; |
| 943 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
| 947 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 948 | ac_prev=mandir ;; |
| 949 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | # Obsolete; use --without-fp. |
| 954 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | |
| 956 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | no_create=yes ;; |
| 959 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 961 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 962 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 965 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 966 | | --oldin | --oldi | --old | --ol | --o) |
| 967 | ac_prev=oldincludedir ;; |
| 968 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 969 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 970 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 972 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 974 | ac_prev=prefix ;; |
| 975 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
| 978 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 979 | | --program-pre | --program-pr | --program-p) |
| 980 | ac_prev=program_prefix ;; |
| 981 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 982 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | |
| 985 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 986 | | --program-suf | --program-su | --program-s) |
| 987 | ac_prev=program_suffix ;; |
| 988 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 989 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
| 992 | -program-transform-name | --program-transform-name \ |
| 993 | | --program-transform-nam | --program-transform-na \ |
| 994 | | --program-transform-n | --program-transform- \ |
| 995 | | --program-transform | --program-transfor \ |
| 996 | | --program-transfo | --program-transf \ |
| 997 | | --program-trans | --program-tran \ |
| 998 | | --progr-tra | --program-tr | --program-t) |
| 999 | ac_prev=program_transform_name ;; |
| 1000 | -program-transform-name=* | --program-transform-name=* \ |
| 1001 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1002 | | --program-transform-n=* | --program-transform-=* \ |
| 1003 | | --program-transform=* | --program-transfor=* \ |
| 1004 | | --program-transfo=* | --program-transf=* \ |
| 1005 | | --program-trans=* | --program-tran=* \ |
| 1006 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1009 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1010 | ac_prev=pdfdir ;; |
| 1011 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1012 | pdfdir=$ac_optarg ;; |
| 1013 | |
| 1014 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1015 | ac_prev=psdir ;; |
| 1016 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1017 | psdir=$ac_optarg ;; |
| 1018 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1020 | | -silent | --silent | --silen | --sile | --sil) |
| 1021 | silent=yes ;; |
| 1022 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1024 | ac_prev=sbindir ;; |
| 1025 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1026 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 | |
| 1029 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1030 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1031 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1032 | | --sha | --sh) |
| 1033 | ac_prev=sharedstatedir ;; |
| 1034 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1035 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1036 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1037 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | -site | --site | --sit) |
| 1041 | ac_prev=site ;; |
| 1042 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1046 | ac_prev=srcdir ;; |
| 1047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1051 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1052 | ac_prev=sysconfdir ;; |
| 1053 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1054 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1056 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 | |
| 1062 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1063 | verbose=yes ;; |
| 1064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | -version | --version | --versio | --versi | --vers | -V) |
| 1066 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | |
| 1068 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1069 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1070 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1075 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
| 1077 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1078 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1080 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1081 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1084 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | --x) |
| 1087 | # Obsolete; use --with-x. |
| 1088 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
| 1090 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1091 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1092 | ac_prev=x_includes ;; |
| 1093 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1094 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | |
| 1097 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1098 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1099 | ac_prev=x_libraries ;; |
| 1100 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1101 | | --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] | 1102 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1104 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | Try \`$0 --help' for more information." >&2 |
| 1106 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | ;; |
| 1108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | *=*) |
| 1110 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1111 | # Reject names that are not valid shell variable names. |
| 1112 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1113 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1115 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | export $ac_envvar ;; |
| 1117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1118 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1120 | 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] | 1121 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1122 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | : ${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] | 1124 | ;; |
| 1125 | |
| 1126 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1127 | done |
| 1128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1131 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | fi |
| 1134 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1135 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1136 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1137 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1138 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1139 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1143 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1144 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1146 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1147 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | # There might be people who depend on the old broken behavior: `$host' |
| 1151 | # used to hold the argument of --host etc. |
| 1152 | # FIXME: To remove some day. |
| 1153 | build=$build_alias |
| 1154 | host=$host_alias |
| 1155 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | # FIXME: To remove some day. |
| 1158 | if test "x$host_alias" != x; then |
| 1159 | if test "x$build_alias" = x; then |
| 1160 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1161 | 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] | 1162 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1163 | elif test "x$build_alias" != "x$host_alias"; then |
| 1164 | cross_compiling=yes |
| 1165 | fi |
| 1166 | fi |
| 1167 | |
| 1168 | ac_tool_prefix= |
| 1169 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1170 | |
| 1171 | test "$silent" = yes && exec 6>/dev/null |
| 1172 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1173 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1174 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1175 | ac_ls_di=`ls -di .` && |
| 1176 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1177 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | |
| 1183 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1184 | # Find the source files, if location was not specified. |
| 1185 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1187 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1188 | ac_confdir=`$as_dirname -- "$0" || |
| 1189 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1190 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1191 | X"$0" : 'X\(//\)$' \| \ |
| 1192 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1193 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1195 | s//\1/ |
| 1196 | q |
| 1197 | } |
| 1198 | /^X\(\/\/\)[^/].*/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | /^X\(\/\/\)$/{ |
| 1203 | s//\1/ |
| 1204 | q |
| 1205 | } |
| 1206 | /^X\(\/\).*/{ |
| 1207 | s//\1/ |
| 1208 | q |
| 1209 | } |
| 1210 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1211 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1213 | srcdir=.. |
| 1214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1215 | else |
| 1216 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1220 | { 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] | 1221 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1225 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1226 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1227 | pwd)` |
| 1228 | # When building in place, set srcdir=. |
| 1229 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1230 | srcdir=. |
| 1231 | fi |
| 1232 | # Remove unnecessary trailing slashes from srcdir. |
| 1233 | # Double slashes in file names in object file debugging info |
| 1234 | # mess up M-x gdb in Emacs. |
| 1235 | case $srcdir in |
| 1236 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1237 | esac |
| 1238 | for ac_var in $ac_precious_vars; do |
| 1239 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1240 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1241 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1242 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1243 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # |
| 1246 | # Report the --help message. |
| 1247 | # |
| 1248 | if test "$ac_init_help" = "long"; then |
| 1249 | # Omit some internal or obsolete options to make the list less imposing. |
| 1250 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1251 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1252 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | |
| 1254 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1255 | |
| 1256 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1257 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1258 | |
| 1259 | Defaults for the options are specified in brackets. |
| 1260 | |
| 1261 | Configuration: |
| 1262 | -h, --help display this help and exit |
| 1263 | --help=short display options specific to this package |
| 1264 | --help=recursive display the short help of all the included packages |
| 1265 | -V, --version display version information and exit |
| 1266 | -q, --quiet, --silent do not print \`checking...' messages |
| 1267 | --cache-file=FILE cache test results in FILE [disabled] |
| 1268 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1269 | -n, --no-create do not create output files |
| 1270 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | Installation directories: |
| 1273 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1274 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1276 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | |
| 1278 | By default, \`make install' will install all the files in |
| 1279 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1280 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1281 | for instance \`--prefix=\$HOME'. |
| 1282 | |
| 1283 | For better control, use the options below. |
| 1284 | |
| 1285 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1286 | --bindir=DIR user executables [EPREFIX/bin] |
| 1287 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1288 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1289 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1290 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1291 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1292 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1293 | --includedir=DIR C header files [PREFIX/include] |
| 1294 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1295 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1296 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1297 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1298 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1299 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1300 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1301 | --htmldir=DIR html documentation [DOCDIR] |
| 1302 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1303 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1304 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | _ACEOF |
| 1306 | |
| 1307 | cat <<\_ACEOF |
| 1308 | _ACEOF |
| 1309 | fi |
| 1310 | |
| 1311 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1312 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1313 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1314 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | cat <<\_ACEOF |
| 1316 | |
| 1317 | Optional Features: |
| 1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1320 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1321 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1322 | --enable-framework[=INSTALLDIR] |
| 1323 | Build (MacOSX|Darwin) framework |
| 1324 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1325 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1326 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1327 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1328 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1329 | --enable-big-digits[=BITS] |
| 1330 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --enable-unicode[=ucs[24]] |
| 1332 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | |
| 1334 | Optional Packages: |
| 1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1337 | --with-universal-archs=ARCH |
| 1338 | select architectures for universal build ("32-bit", |
| 1339 | "64-bit" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1340 | --with-framework-name=FRAMEWORK |
| 1341 | specify an alternate name of the framework built |
| 1342 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1343 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1344 | --with-cxx-main=<compiler> |
| 1345 | compile main() and link python executable with C++ |
| 1346 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with-suffix=.exe set executable suffix |
| 1348 | --with-pydebug build with Py_DEBUG defined |
| 1349 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1350 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1351 | --with-dbmliborder=db1:db2:... |
| 1352 | order to check db backends for dbm. Valid value is a |
| 1353 | colon separated string with the backend names |
| 1354 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1355 | --with-signal-module disable/enable signal module |
| 1356 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1357 | --with(out)-threads[=DIRECTORY] |
| 1358 | disable/enable thread support |
| 1359 | --with(out)-thread[=DIRECTORY] |
| 1360 | deprecated; use --with(out)-threads |
| 1361 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1362 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1363 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1364 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1365 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1366 | --with-fpectl enable SIGFPE catching |
| 1367 | --with-libm=STRING math library |
| 1368 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | |
| 1370 | Some influential environment variables: |
| 1371 | CC C compiler command |
| 1372 | CFLAGS C compiler flags |
| 1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1374 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1375 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1377 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1383 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1385 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1391 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
| 1393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | |
| 1410 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1411 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
| 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1429 | echo && |
| 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
| 1432 | echo && |
| 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
| 1443 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1444 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
| 1451 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1452 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1458 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1459 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
| 1463 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
| 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
| 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1483 | /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] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
| 1488 | _ASUNAME |
| 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1495 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | |
| 1499 | } >&5 |
| 1500 | |
| 1501 | cat >&5 <<_ACEOF |
| 1502 | |
| 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
| 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # 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] | 1513 | # 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] | 1514 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1529 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1538 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $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] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # 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] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
| 1566 | { |
| 1567 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1598 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1600 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
| 1615 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
| 1632 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1647 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1657 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1664 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | |
| 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
| 1693 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1696 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1697 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1703 | shift |
| 1704 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1742 | 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] | 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1746 | 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] | 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1757 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
| 1760 | # Pass precious variables to config.status. |
| 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1763 | *\'*) 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] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1776 | 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] | 1777 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | |
| 1814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1815 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1816 | if test "$prefix" != "/"; then |
| 1817 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1818 | fi |
| 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1823 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1824 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1825 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1826 | # with other autoconf-based packages that include Python.h |
| 1827 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1828 | rm confdefs.h |
| 1829 | mv confdefs.h.new confdefs.h |
| 1830 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1832 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1833 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1834 | |
| 1835 | SOVERSION=1.0 |
| 1836 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1837 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1838 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1839 | |
| 1840 | cat >>confdefs.h <<\_ACEOF |
| 1841 | #define _GNU_SOURCE 1 |
| 1842 | _ACEOF |
| 1843 | |
| 1844 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1845 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1846 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1847 | # them. |
| 1848 | |
| 1849 | cat >>confdefs.h <<\_ACEOF |
| 1850 | #define _NETBSD_SOURCE 1 |
| 1851 | _ACEOF |
| 1852 | |
| 1853 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1854 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1855 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1856 | # them. |
| 1857 | |
| 1858 | cat >>confdefs.h <<\_ACEOF |
| 1859 | #define __BSD_VISIBLE 1 |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1863 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1864 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1865 | |
| 1866 | cat >>confdefs.h <<\_ACEOF |
| 1867 | #define _BSD_TYPES 1 |
| 1868 | _ACEOF |
| 1869 | |
| 1870 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1871 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1872 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1873 | # them. |
| 1874 | |
| 1875 | cat >>confdefs.h <<\_ACEOF |
| 1876 | #define _DARWIN_C_SOURCE 1 |
| 1877 | _ACEOF |
| 1878 | |
| 1879 | |
| 1880 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1881 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1882 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1883 | # Arguments passed to configure. |
| 1884 | |
| 1885 | CONFIG_ARGS="$ac_configure_args" |
| 1886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1887 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1888 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1889 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1890 | case $enableval in |
| 1891 | yes) |
| 1892 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1893 | ;; |
| 1894 | esac |
| 1895 | case $enableval in |
| 1896 | no) |
| 1897 | UNIVERSALSDK= |
| 1898 | enable_universalsdk= |
| 1899 | ;; |
| 1900 | *) |
| 1901 | UNIVERSALSDK=$enableval |
| 1902 | ;; |
| 1903 | esac |
| 1904 | |
| 1905 | else |
| 1906 | |
| 1907 | UNIVERSALSDK= |
| 1908 | enable_universalsdk= |
| 1909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1910 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1911 | |
| 1912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1913 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1914 | ARCH_RUN_32BIT= |
| 1915 | |
| 1916 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1917 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1918 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1919 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1920 | |
| 1921 | # Check whether --with-universal-archs was given. |
| 1922 | if test "${with_universal_archs+set}" = set; then |
| 1923 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1924 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1925 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1926 | UNIVERSAL_ARCHS="$withval" |
| 1927 | |
| 1928 | else |
| 1929 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1930 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1931 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1932 | |
| 1933 | fi |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1938 | |
| 1939 | # Check whether --with-framework-name was given. |
| 1940 | if test "${with_framework_name+set}" = set; then |
| 1941 | withval=$with_framework_name; |
| 1942 | PYTHONFRAMEWORK=${withval} |
| 1943 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1944 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1945 | |
| 1946 | else |
| 1947 | |
| 1948 | PYTHONFRAMEWORK=Python |
| 1949 | PYTHONFRAMEWORKDIR=Python.framework |
| 1950 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1951 | |
| 1952 | fi |
| 1953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1954 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1955 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1956 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1957 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1958 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1959 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1960 | esac |
| 1961 | case $enableval in |
| 1962 | no) |
| 1963 | PYTHONFRAMEWORK= |
| 1964 | PYTHONFRAMEWORKDIR=no-framework |
| 1965 | PYTHONFRAMEWORKPREFIX= |
| 1966 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1967 | FRAMEWORKINSTALLFIRST= |
| 1968 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1969 | FRAMEWORKALTINSTALLFIRST= |
| 1970 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1971 | if test "x${prefix}" = "xNONE"; then |
| 1972 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1973 | else |
| 1974 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1975 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1976 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1977 | ;; |
| 1978 | *) |
| 1979 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1980 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1981 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1982 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1983 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1984 | then |
| 1985 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1986 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1987 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1988 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1989 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1990 | fi |
| 1991 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1992 | if test "x${prefix}" = "xNONE" ; then |
| 1993 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1994 | else |
| 1995 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1996 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1997 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1998 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1999 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2000 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2001 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2002 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2003 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2004 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2005 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2006 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2007 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2008 | |
| 2009 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2010 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2011 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2012 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2014 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2015 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2016 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2017 | PYTHONFRAMEWORKPREFIX= |
| 2018 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2019 | FRAMEWORKINSTALLFIRST= |
| 2020 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2021 | FRAMEWORKALTINSTALLFIRST= |
| 2022 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2023 | if test "x${prefix}" = "xNONE" ; then |
| 2024 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2025 | else |
| 2026 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2027 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2028 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2029 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2030 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2031 | then |
| 2032 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2033 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2034 | fi |
| 2035 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2036 | fi |
| 2037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2042 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2043 | |
| 2044 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2045 | |
| 2046 | |
| 2047 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2048 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2049 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2050 | ## AC_HELP_STRING(--with-dyld, |
| 2051 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2052 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2053 | # Set name for machine-dependent library files |
| 2054 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2055 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2056 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2057 | if test -z "$MACHDEP" |
| 2058 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2059 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2060 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2061 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2062 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2063 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2064 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2065 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2066 | ac_md_system=`echo $ac_sys_system | |
| 2067 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2068 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2069 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2070 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2071 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2072 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2073 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2074 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2075 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2076 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2077 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2078 | esac |
| 2079 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2080 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2081 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2082 | # disable features if it is defined, without any means to access these |
| 2083 | # features as extensions. For these systems, we skip the definition of |
| 2084 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2085 | # some feature, make sure there is no alternative way to access this |
| 2086 | # feature. Also, when using wildcards, make sure you have verified the |
| 2087 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2088 | # wildcard, and that the wildcard does not include future systems |
| 2089 | # (which may remove their limitations). |
| 2090 | case $ac_sys_system/$ac_sys_release in |
| 2091 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2092 | # 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] | 2093 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2094 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2095 | define_xopen_source=no |
| 2096 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2097 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2098 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2099 | |
| 2100 | cat >>confdefs.h <<\_ACEOF |
| 2101 | #define _BSD_SOURCE 1 |
| 2102 | _ACEOF |
| 2103 | |
| 2104 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2105 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2106 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2107 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2108 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2109 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2110 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2111 | # of union __?sigval. Reported by Stuart Bishop. |
| 2112 | SunOS/5.6) |
| 2113 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2114 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2115 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2116 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2117 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2118 | define_xopen_source=no;; |
| 2119 | # 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] | 2120 | # 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] | 2121 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2122 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2123 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2124 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2125 | FreeBSD/4.*) |
| 2126 | define_xopen_source=no;; |
| 2127 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2128 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2129 | # identifies itself as Darwin/7.* |
| 2130 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2131 | # disables platform specific features beyond repair. |
| 2132 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2133 | # has no effect, don't bother defining them |
| 2134 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2135 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2136 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2137 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2138 | # 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] | 2139 | AIX/4) |
| 2140 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2141 | AIX/5) |
| 2142 | if test `uname -r` -eq 1; then |
| 2143 | define_xopen_source=no |
| 2144 | fi |
| 2145 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2146 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2147 | # defining NI_NUMERICHOST. |
| 2148 | QNX/6.3.2) |
| 2149 | define_xopen_source=no |
| 2150 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2151 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2152 | esac |
| 2153 | |
| 2154 | if test $define_xopen_source = yes |
| 2155 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2157 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2158 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2159 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2160 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2161 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2162 | |
| 2163 | cat >>confdefs.h <<\_ACEOF |
| 2164 | #define _XOPEN_SOURCE 500 |
| 2165 | _ACEOF |
| 2166 | |
| 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 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2172 | _ACEOF |
| 2173 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2174 | ;; |
| 2175 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2176 | |
| 2177 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2178 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2179 | # several APIs are not declared. Since this is also needed in some |
| 2180 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2181 | # except for Solaris 10, where it must not be defined, |
| 2182 | # as it implies XPG4.2 |
| 2183 | case $ac_sys_system/$ac_sys_release in |
| 2184 | SunOS/5.10) |
| 2185 | ;; |
| 2186 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2187 | |
| 2188 | cat >>confdefs.h <<\_ACEOF |
| 2189 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2190 | _ACEOF |
| 2191 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2192 | ;; |
| 2193 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2194 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2195 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2196 | cat >>confdefs.h <<\_ACEOF |
| 2197 | #define _POSIX_C_SOURCE 200112L |
| 2198 | _ACEOF |
| 2199 | |
| 2200 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2201 | fi |
| 2202 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2203 | # |
| 2204 | # SGI compilers allow the specification of the both the ABI and the |
| 2205 | # ISA on the command line. Depending on the values of these switches, |
| 2206 | # different and often incompatable code will be generated. |
| 2207 | # |
| 2208 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2209 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2210 | # variable is also adjusted. |
| 2211 | # |
| 2212 | |
| 2213 | if test ! -z "$SGI_ABI" |
| 2214 | then |
| 2215 | CC="cc $SGI_ABI" |
| 2216 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2217 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2218 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2220 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2221 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2222 | # And add extra plat-mac for darwin |
| 2223 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2224 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2225 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2226 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2227 | if test -z "$EXTRAPLATDIR" |
| 2228 | then |
| 2229 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2230 | darwin) |
| 2231 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2232 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2233 | ;; |
| 2234 | *) |
| 2235 | EXTRAPLATDIR="" |
| 2236 | EXTRAMACHDEPPATH="" |
| 2237 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2238 | esac |
| 2239 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2240 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2241 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2242 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2243 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2244 | # it may influence the way we can build extensions, so distutils |
| 2245 | # needs to check it |
| 2246 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2247 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2248 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2249 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2250 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2251 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2252 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2253 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2255 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2256 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2257 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2258 | |
| 2259 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2260 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2261 | # just to get things to compile and link. Users are free to override OPT |
| 2262 | # when running configure or make. The build should not break if they do. |
| 2263 | # BASECFLAGS should generally not be messed with, however. |
| 2264 | |
| 2265 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2266 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2268 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2270 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2271 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2272 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2273 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2274 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2275 | without_gcc=yes;; |
| 2276 | yes) CC=gcc |
| 2277 | without_gcc=no;; |
| 2278 | *) CC=$withval |
| 2279 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2280 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2282 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2283 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2284 | AIX*) CC=cc_r |
| 2285 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2286 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2287 | case $BE_HOST_CPU in |
| 2288 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2289 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2290 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2291 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2292 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2293 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2294 | ;; |
| 2295 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2296 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2297 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2298 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2299 | ;; |
| 2300 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2301 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2302 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2303 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2304 | ;; |
| 2305 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2306 | AR="\$(srcdir)/Modules/ar_beos" |
| 2307 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2308 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2309 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2310 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2311 | fi |
| 2312 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2313 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2314 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2315 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2316 | # If the user switches compilers, we can't believe the cache |
| 2317 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2318 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2319 | { { 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] | 2320 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2321 | 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] | 2322 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2323 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2324 | fi |
| 2325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2326 | ac_ext=c |
| 2327 | ac_cpp='$CPP $CPPFLAGS' |
| 2328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2331 | if test -n "$ac_tool_prefix"; then |
| 2332 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2333 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2336 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2338 | else |
| 2339 | if test -n "$CC"; then |
| 2340 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2343 | for as_dir in $PATH |
| 2344 | do |
| 2345 | IFS=$as_save_IFS |
| 2346 | test -z "$as_dir" && as_dir=. |
| 2347 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2350 | 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] | 2351 | break 2 |
| 2352 | fi |
| 2353 | done |
| 2354 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2355 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2357 | fi |
| 2358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2360 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2361 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2362 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2363 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2365 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2369 | fi |
| 2370 | if test -z "$ac_cv_prog_CC"; then |
| 2371 | ac_ct_CC=$CC |
| 2372 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2373 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | else |
| 2379 | if test -n "$ac_ct_CC"; then |
| 2380 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2381 | else |
| 2382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2383 | for as_dir in $PATH |
| 2384 | do |
| 2385 | IFS=$as_save_IFS |
| 2386 | test -z "$as_dir" && as_dir=. |
| 2387 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2388 | 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] | 2389 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2390 | 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] | 2391 | break 2 |
| 2392 | fi |
| 2393 | done |
| 2394 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2395 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | |
| 2397 | fi |
| 2398 | fi |
| 2399 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2400 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2402 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2403 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2404 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2405 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | fi |
| 2407 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2408 | if test "x$ac_ct_CC" = x; then |
| 2409 | CC="" |
| 2410 | else |
| 2411 | case $cross_compiling:$ac_tool_warned in |
| 2412 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2413 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2414 | whose name does not start with the host triplet. If you think this |
| 2415 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2416 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2417 | whose name does not start with the host triplet. If you think this |
| 2418 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2419 | ac_tool_warned=yes ;; |
| 2420 | esac |
| 2421 | CC=$ac_ct_CC |
| 2422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | else |
| 2424 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2425 | fi |
| 2426 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2427 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2428 | if test -n "$ac_tool_prefix"; then |
| 2429 | # 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] | 2430 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2435 | else |
| 2436 | if test -n "$CC"; then |
| 2437 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2440 | for as_dir in $PATH |
| 2441 | do |
| 2442 | IFS=$as_save_IFS |
| 2443 | test -z "$as_dir" && as_dir=. |
| 2444 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2445 | 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] | 2446 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2447 | 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] | 2448 | break 2 |
| 2449 | fi |
| 2450 | done |
| 2451 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2452 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2453 | |
| 2454 | fi |
| 2455 | fi |
| 2456 | CC=$ac_cv_prog_CC |
| 2457 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2458 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2459 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2462 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | fi |
| 2464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | fi |
| 2468 | if test -z "$CC"; then |
| 2469 | # Extract the first word of "cc", so it can be a program name with args. |
| 2470 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2479 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2481 | for as_dir in $PATH |
| 2482 | do |
| 2483 | IFS=$as_save_IFS |
| 2484 | test -z "$as_dir" && as_dir=. |
| 2485 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2486 | 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] | 2487 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2488 | ac_prog_rejected=yes |
| 2489 | continue |
| 2490 | fi |
| 2491 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2492 | 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] | 2493 | break 2 |
| 2494 | fi |
| 2495 | done |
| 2496 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2497 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2499 | if test $ac_prog_rejected = yes; then |
| 2500 | # We found a bogon in the path, so make sure we never use it. |
| 2501 | set dummy $ac_cv_prog_CC |
| 2502 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2504 | # We chose a different compiler from the bogus one. |
| 2505 | # However, it has the same basename, so the bogon will be chosen |
| 2506 | # first if we set CC to just the basename; use the full file name. |
| 2507 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2508 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2509 | fi |
| 2510 | fi |
| 2511 | fi |
| 2512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2514 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2515 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2516 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2517 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2519 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2520 | fi |
| 2521 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | fi |
| 2524 | if test -z "$CC"; then |
| 2525 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2526 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | do |
| 2528 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2529 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2530 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2534 | else |
| 2535 | if test -n "$CC"; then |
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2539 | for as_dir in $PATH |
| 2540 | do |
| 2541 | IFS=$as_save_IFS |
| 2542 | test -z "$as_dir" && as_dir=. |
| 2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2544 | 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] | 2545 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2546 | 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] | 2547 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | done |
| 2550 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2551 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | |
| 2553 | fi |
| 2554 | fi |
| 2555 | CC=$ac_cv_prog_CC |
| 2556 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2558 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2560 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2561 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2562 | fi |
| 2563 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | test -n "$CC" && break |
| 2566 | done |
| 2567 | fi |
| 2568 | if test -z "$CC"; then |
| 2569 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2570 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | do |
| 2572 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2573 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | else |
| 2579 | if test -n "$ac_ct_CC"; then |
| 2580 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2581 | else |
| 2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2583 | for as_dir in $PATH |
| 2584 | do |
| 2585 | IFS=$as_save_IFS |
| 2586 | test -z "$as_dir" && as_dir=. |
| 2587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2588 | 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] | 2589 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2590 | 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] | 2591 | break 2 |
| 2592 | fi |
| 2593 | done |
| 2594 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2595 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | fi |
| 2598 | fi |
| 2599 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2600 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2601 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2602 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2604 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2605 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | test -n "$ac_ct_CC" && break |
| 2610 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2611 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2612 | if test "x$ac_ct_CC" = x; then |
| 2613 | CC="" |
| 2614 | else |
| 2615 | case $cross_compiling:$ac_tool_warned in |
| 2616 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2618 | whose name does not start with the host triplet. If you think this |
| 2619 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2620 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2621 | whose name does not start with the host triplet. If you think this |
| 2622 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2623 | ac_tool_warned=yes ;; |
| 2624 | esac |
| 2625 | CC=$ac_ct_CC |
| 2626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | |
| 2629 | fi |
| 2630 | |
| 2631 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2632 | 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] | 2633 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2634 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2635 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2636 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | |
| 2638 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2639 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2640 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2641 | { (ac_try="$ac_compiler --version >&5" |
| 2642 | case "(($ac_try" in |
| 2643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2644 | *) ac_try_echo=$ac_try;; |
| 2645 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2647 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2651 | { (ac_try="$ac_compiler -v >&5" |
| 2652 | case "(($ac_try" in |
| 2653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2654 | *) ac_try_echo=$ac_try;; |
| 2655 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2657 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2661 | { (ac_try="$ac_compiler -V >&5" |
| 2662 | case "(($ac_try" in |
| 2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2664 | *) ac_try_echo=$ac_try;; |
| 2665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2667 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2670 | (exit $ac_status); } |
| 2671 | |
| 2672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2673 | /* confdefs.h. */ |
| 2674 | _ACEOF |
| 2675 | cat confdefs.h >>conftest.$ac_ext |
| 2676 | cat >>conftest.$ac_ext <<_ACEOF |
| 2677 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | int |
| 2680 | main () |
| 2681 | { |
| 2682 | |
| 2683 | ; |
| 2684 | return 0; |
| 2685 | } |
| 2686 | _ACEOF |
| 2687 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2688 | 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] | 2689 | # Try to create an executable without -o first, disregard a.out. |
| 2690 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2691 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2692 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2693 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2694 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2695 | # |
| 2696 | # List of possible output files, starting from the most likely. |
| 2697 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2698 | # only as a last resort. b.out is created by i960 compilers. |
| 2699 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2700 | # |
| 2701 | # The IRIX 6 linker writes into existing files which may not be |
| 2702 | # executable, retaining their permissions. Remove them first so a |
| 2703 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2704 | ac_rmfiles= |
| 2705 | for ac_file in $ac_files |
| 2706 | do |
| 2707 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2709 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2710 | esac |
| 2711 | done |
| 2712 | rm -f $ac_rmfiles |
| 2713 | |
| 2714 | if { (ac_try="$ac_link_default" |
| 2715 | case "(($ac_try" in |
| 2716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2717 | *) ac_try_echo=$ac_try;; |
| 2718 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2720 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2721 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2723 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2724 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2725 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2726 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2727 | # so that the user can short-circuit this test for compilers unknown to |
| 2728 | # Autoconf. |
| 2729 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2730 | do |
| 2731 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2733 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2734 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2735 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2736 | # We found the default executable, but exeext='' is most |
| 2737 | # certainly right. |
| 2738 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2739 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2740 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2741 | then :; else |
| 2742 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2743 | fi |
| 2744 | # We set ac_cv_exeext here because the later test for it is not |
| 2745 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2746 | # argument, so we may need to know it at that point already. |
| 2747 | # Even if this section looks crufty: it has the advantage of |
| 2748 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2749 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2750 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2751 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2752 | esac |
| 2753 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2754 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2755 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2756 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2757 | ac_file='' |
| 2758 | fi |
| 2759 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2760 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2761 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2762 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2765 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2766 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2767 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2768 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2769 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2770 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2771 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2773 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2774 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2775 | # 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] | 2776 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2777 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2778 | 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] | 2779 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2780 | # If not cross compiling, check that we can run a simple program. |
| 2781 | if test "$cross_compiling" != yes; then |
| 2782 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2783 | { (case "(($ac_try" in |
| 2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2785 | *) ac_try_echo=$ac_try;; |
| 2786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2788 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2789 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2791 | (exit $ac_status); }; }; then |
| 2792 | cross_compiling=no |
| 2793 | else |
| 2794 | if test "$cross_compiling" = maybe; then |
| 2795 | cross_compiling=yes |
| 2796 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2797 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2798 | If you meant to cross compile, use \`--host'. |
| 2799 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2800 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2801 | If you meant to cross compile, use \`--host'. |
| 2802 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2803 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | fi |
| 2805 | fi |
| 2806 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2807 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2808 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2812 | # 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] | 2813 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2814 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2815 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2816 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2817 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2818 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2819 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2820 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2821 | if { (ac_try="$ac_link" |
| 2822 | case "(($ac_try" in |
| 2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2824 | *) ac_try_echo=$ac_try;; |
| 2825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2827 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2828 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 |
| 2831 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2832 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2833 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2834 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2835 | for ac_file in conftest.exe conftest conftest.*; do |
| 2836 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2837 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2838 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2840 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | * ) break;; |
| 2842 | esac |
| 2843 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2845 | { { 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] | 2846 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2847 | 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] | 2848 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2849 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2850 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2853 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2854 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2855 | |
| 2856 | rm -f conftest.$ac_ext |
| 2857 | EXEEXT=$ac_cv_exeext |
| 2858 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2859 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2860 | 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] | 2861 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2865 | /* confdefs.h. */ |
| 2866 | _ACEOF |
| 2867 | cat confdefs.h >>conftest.$ac_ext |
| 2868 | cat >>conftest.$ac_ext <<_ACEOF |
| 2869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | int |
| 2872 | main () |
| 2873 | { |
| 2874 | |
| 2875 | ; |
| 2876 | return 0; |
| 2877 | } |
| 2878 | _ACEOF |
| 2879 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2886 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2890 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2891 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2892 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2893 | *.$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] | 2894 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2895 | break;; |
| 2896 | esac |
| 2897 | done |
| 2898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2901 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2902 | { { 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] | 2903 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2904 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2905 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | fi |
| 2908 | |
| 2909 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2910 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2911 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2912 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | OBJEXT=$ac_cv_objext |
| 2914 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2915 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2916 | 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] | 2917 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2919 | else |
| 2920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2921 | /* confdefs.h. */ |
| 2922 | _ACEOF |
| 2923 | cat confdefs.h >>conftest.$ac_ext |
| 2924 | cat >>conftest.$ac_ext <<_ACEOF |
| 2925 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2927 | int |
| 2928 | main () |
| 2929 | { |
| 2930 | #ifndef __GNUC__ |
| 2931 | choke me |
| 2932 | #endif |
| 2933 | |
| 2934 | ; |
| 2935 | return 0; |
| 2936 | } |
| 2937 | _ACEOF |
| 2938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2939 | if { (ac_try="$ac_compile" |
| 2940 | case "(($ac_try" in |
| 2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2942 | *) ac_try_echo=$ac_try;; |
| 2943 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2948 | rm -f conftest.er1 |
| 2949 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2951 | (exit $ac_status); } && { |
| 2952 | test -z "$ac_c_werror_flag" || |
| 2953 | test ! -s conftest.err |
| 2954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | ac_compiler_gnu=yes |
| 2956 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2959 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2960 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2961 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2962 | |
| 2963 | 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] | 2964 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2965 | |
| 2966 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2967 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2968 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2969 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | ac_test_CFLAGS=${CFLAGS+set} |
| 2971 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2972 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2973 | 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] | 2974 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2977 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2978 | ac_c_werror_flag=yes |
| 2979 | ac_cv_prog_cc_g=no |
| 2980 | CFLAGS="-g" |
| 2981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2982 | /* confdefs.h. */ |
| 2983 | _ACEOF |
| 2984 | cat confdefs.h >>conftest.$ac_ext |
| 2985 | cat >>conftest.$ac_ext <<_ACEOF |
| 2986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | int |
| 2989 | main () |
| 2990 | { |
| 2991 | |
| 2992 | ; |
| 2993 | return 0; |
| 2994 | } |
| 2995 | _ACEOF |
| 2996 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2997 | if { (ac_try="$ac_compile" |
| 2998 | case "(($ac_try" in |
| 2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3000 | *) ac_try_echo=$ac_try;; |
| 3001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3006 | rm -f conftest.er1 |
| 3007 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3009 | (exit $ac_status); } && { |
| 3010 | test -z "$ac_c_werror_flag" || |
| 3011 | test ! -s conftest.err |
| 3012 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3013 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3014 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3015 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3017 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3018 | CFLAGS="" |
| 3019 | cat >conftest.$ac_ext <<_ACEOF |
| 3020 | /* confdefs.h. */ |
| 3021 | _ACEOF |
| 3022 | cat confdefs.h >>conftest.$ac_ext |
| 3023 | cat >>conftest.$ac_ext <<_ACEOF |
| 3024 | /* end confdefs.h. */ |
| 3025 | |
| 3026 | int |
| 3027 | main () |
| 3028 | { |
| 3029 | |
| 3030 | ; |
| 3031 | return 0; |
| 3032 | } |
| 3033 | _ACEOF |
| 3034 | rm -f conftest.$ac_objext |
| 3035 | if { (ac_try="$ac_compile" |
| 3036 | case "(($ac_try" in |
| 3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3038 | *) ac_try_echo=$ac_try;; |
| 3039 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3041 | (eval "$ac_compile") 2>conftest.er1 |
| 3042 | ac_status=$? |
| 3043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3044 | rm -f conftest.er1 |
| 3045 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3047 | (exit $ac_status); } && { |
| 3048 | test -z "$ac_c_werror_flag" || |
| 3049 | test ! -s conftest.err |
| 3050 | } && test -s conftest.$ac_objext; then |
| 3051 | : |
| 3052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3053 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3055 | |
| 3056 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3057 | CFLAGS="-g" |
| 3058 | cat >conftest.$ac_ext <<_ACEOF |
| 3059 | /* confdefs.h. */ |
| 3060 | _ACEOF |
| 3061 | cat confdefs.h >>conftest.$ac_ext |
| 3062 | cat >>conftest.$ac_ext <<_ACEOF |
| 3063 | /* end confdefs.h. */ |
| 3064 | |
| 3065 | int |
| 3066 | main () |
| 3067 | { |
| 3068 | |
| 3069 | ; |
| 3070 | return 0; |
| 3071 | } |
| 3072 | _ACEOF |
| 3073 | rm -f conftest.$ac_objext |
| 3074 | if { (ac_try="$ac_compile" |
| 3075 | case "(($ac_try" in |
| 3076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3077 | *) ac_try_echo=$ac_try;; |
| 3078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3080 | (eval "$ac_compile") 2>conftest.er1 |
| 3081 | ac_status=$? |
| 3082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3083 | rm -f conftest.er1 |
| 3084 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3086 | (exit $ac_status); } && { |
| 3087 | test -z "$ac_c_werror_flag" || |
| 3088 | test ! -s conftest.err |
| 3089 | } && test -s conftest.$ac_objext; then |
| 3090 | ac_cv_prog_cc_g=yes |
| 3091 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3092 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3094 | |
| 3095 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3097 | |
| 3098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3099 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3100 | |
| 3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3102 | fi |
| 3103 | |
| 3104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3105 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3106 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3107 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3109 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3110 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3111 | elif test $ac_cv_prog_cc_g = yes; then |
| 3112 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3113 | CFLAGS="-g -O2" |
| 3114 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3115 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3116 | fi |
| 3117 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3118 | if test "$GCC" = yes; then |
| 3119 | CFLAGS="-O2" |
| 3120 | else |
| 3121 | CFLAGS= |
| 3122 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3123 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3124 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3125 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3126 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3128 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3129 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3130 | ac_save_CC=$CC |
| 3131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3132 | /* confdefs.h. */ |
| 3133 | _ACEOF |
| 3134 | cat confdefs.h >>conftest.$ac_ext |
| 3135 | cat >>conftest.$ac_ext <<_ACEOF |
| 3136 | /* end confdefs.h. */ |
| 3137 | #include <stdarg.h> |
| 3138 | #include <stdio.h> |
| 3139 | #include <sys/types.h> |
| 3140 | #include <sys/stat.h> |
| 3141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3142 | struct buf { int x; }; |
| 3143 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3144 | static char *e (p, i) |
| 3145 | char **p; |
| 3146 | int i; |
| 3147 | { |
| 3148 | return p[i]; |
| 3149 | } |
| 3150 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3151 | { |
| 3152 | char *s; |
| 3153 | va_list v; |
| 3154 | va_start (v,p); |
| 3155 | s = g (p, va_arg (v,int)); |
| 3156 | va_end (v); |
| 3157 | return s; |
| 3158 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3159 | |
| 3160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3161 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3162 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3163 | 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] | 3164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3165 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3166 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3169 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3170 | inside strings and character constants. */ |
| 3171 | #define FOO(x) 'x' |
| 3172 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3173 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3174 | int test (int i, double x); |
| 3175 | struct s1 {int (*f) (int a);}; |
| 3176 | struct s2 {int (*f) (double a);}; |
| 3177 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3178 | int argc; |
| 3179 | char **argv; |
| 3180 | int |
| 3181 | main () |
| 3182 | { |
| 3183 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3184 | ; |
| 3185 | return 0; |
| 3186 | } |
| 3187 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3188 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3189 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3190 | do |
| 3191 | CC="$ac_save_CC $ac_arg" |
| 3192 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3193 | if { (ac_try="$ac_compile" |
| 3194 | case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3199 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3202 | rm -f conftest.er1 |
| 3203 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3205 | (exit $ac_status); } && { |
| 3206 | test -z "$ac_c_werror_flag" || |
| 3207 | test ! -s conftest.err |
| 3208 | } && test -s conftest.$ac_objext; then |
| 3209 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3210 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3211 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3213 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3214 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3215 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3216 | |
| 3217 | rm -f core conftest.err conftest.$ac_objext |
| 3218 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3219 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3220 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3221 | CC=$ac_save_CC |
| 3222 | |
| 3223 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3224 | # AC_CACHE_VAL |
| 3225 | case "x$ac_cv_prog_cc_c89" in |
| 3226 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3227 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3228 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3229 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3230 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3231 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3232 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3233 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3234 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3235 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3236 | esac |
| 3237 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | ac_ext=c |
| 3240 | ac_cpp='$CPP $CPPFLAGS' |
| 3241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3244 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3245 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3246 | |
| 3247 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3248 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3249 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3250 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3251 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3252 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3253 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3254 | |
| 3255 | case $withval in |
| 3256 | no) with_cxx_main=no |
| 3257 | MAINCC='$(CC)';; |
| 3258 | yes) with_cxx_main=yes |
| 3259 | MAINCC='$(CXX)';; |
| 3260 | *) with_cxx_main=yes |
| 3261 | MAINCC=$withval |
| 3262 | if test -z "$CXX" |
| 3263 | then |
| 3264 | CXX=$withval |
| 3265 | fi;; |
| 3266 | esac |
| 3267 | else |
| 3268 | |
| 3269 | with_cxx_main=no |
| 3270 | MAINCC='$(CC)' |
| 3271 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3272 | fi |
| 3273 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3274 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3275 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3276 | |
| 3277 | preset_cxx="$CXX" |
| 3278 | if test -z "$CXX" |
| 3279 | then |
| 3280 | case "$CC" in |
| 3281 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3282 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3285 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3287 | else |
| 3288 | case $CXX in |
| 3289 | [\\/]* | ?:[\\/]*) |
| 3290 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3291 | ;; |
| 3292 | *) |
| 3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3294 | for as_dir in notfound |
| 3295 | do |
| 3296 | IFS=$as_save_IFS |
| 3297 | test -z "$as_dir" && as_dir=. |
| 3298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3300 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3302 | break 2 |
| 3303 | fi |
| 3304 | done |
| 3305 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3306 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3307 | |
| 3308 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3309 | ;; |
| 3310 | esac |
| 3311 | fi |
| 3312 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3313 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3314 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3315 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3318 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3320 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3321 | ;; |
| 3322 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3323 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3326 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3328 | else |
| 3329 | case $CXX in |
| 3330 | [\\/]* | ?:[\\/]*) |
| 3331 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3332 | ;; |
| 3333 | *) |
| 3334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3335 | for as_dir in notfound |
| 3336 | do |
| 3337 | IFS=$as_save_IFS |
| 3338 | test -z "$as_dir" && as_dir=. |
| 3339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3341 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3343 | break 2 |
| 3344 | fi |
| 3345 | done |
| 3346 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3347 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3348 | |
| 3349 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3350 | ;; |
| 3351 | esac |
| 3352 | fi |
| 3353 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3354 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3355 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3356 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3357 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3359 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3360 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3361 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3362 | ;; |
| 3363 | esac |
| 3364 | if test "$CXX" = "notfound" |
| 3365 | then |
| 3366 | CXX="" |
| 3367 | fi |
| 3368 | fi |
| 3369 | if test -z "$CXX" |
| 3370 | then |
| 3371 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3372 | do |
| 3373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3374 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3377 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3379 | else |
| 3380 | if test -n "$CXX"; then |
| 3381 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3382 | else |
| 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3384 | for as_dir in $PATH |
| 3385 | do |
| 3386 | IFS=$as_save_IFS |
| 3387 | test -z "$as_dir" && as_dir=. |
| 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3392 | break 2 |
| 3393 | fi |
| 3394 | done |
| 3395 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3396 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3397 | |
| 3398 | fi |
| 3399 | fi |
| 3400 | CXX=$ac_cv_prog_CXX |
| 3401 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3402 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3403 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3404 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3406 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3407 | fi |
| 3408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3409 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3410 | test -n "$CXX" && break |
| 3411 | done |
| 3412 | test -n "$CXX" || CXX="notfound" |
| 3413 | |
| 3414 | if test "$CXX" = "notfound" |
| 3415 | then |
| 3416 | CXX="" |
| 3417 | fi |
| 3418 | fi |
| 3419 | if test "$preset_cxx" != "$CXX" |
| 3420 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3421 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3422 | |
| 3423 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3424 | If this is not intended, then set CXX on the configure command line. |
| 3425 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3426 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3427 | |
| 3428 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3429 | If this is not intended, then set CXX on the configure command line. |
| 3430 | " >&2;} |
| 3431 | fi |
| 3432 | |
| 3433 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3434 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | |
| 3436 | ac_ext=c |
| 3437 | ac_cpp='$CPP $CPPFLAGS' |
| 3438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3441 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3442 | 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] | 3443 | # On Suns, sometimes $CPP names a directory. |
| 3444 | if test -n "$CPP" && test -d "$CPP"; then |
| 3445 | CPP= |
| 3446 | fi |
| 3447 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3451 | # Double quotes because CPP needs to be expanded |
| 3452 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3453 | do |
| 3454 | ac_preproc_ok=false |
| 3455 | for ac_c_preproc_warn_flag in '' yes |
| 3456 | do |
| 3457 | # Use a header file that comes with gcc, so configuring glibc |
| 3458 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3459 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3460 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3461 | # 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] | 3462 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3464 | /* confdefs.h. */ |
| 3465 | _ACEOF |
| 3466 | cat confdefs.h >>conftest.$ac_ext |
| 3467 | cat >>conftest.$ac_ext <<_ACEOF |
| 3468 | /* end confdefs.h. */ |
| 3469 | #ifdef __STDC__ |
| 3470 | # include <limits.h> |
| 3471 | #else |
| 3472 | # include <assert.h> |
| 3473 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3474 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3476 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3477 | case "(($ac_try" in |
| 3478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3479 | *) ac_try_echo=$ac_try;; |
| 3480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3484 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | rm -f conftest.er1 |
| 3486 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3488 | (exit $ac_status); } >/dev/null && { |
| 3489 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3490 | test ! -s conftest.err |
| 3491 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3492 | : |
| 3493 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | # Broken: fails on valid input. |
| 3498 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3503 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | # can be detected and how. |
| 3505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3506 | /* confdefs.h. */ |
| 3507 | _ACEOF |
| 3508 | cat confdefs.h >>conftest.$ac_ext |
| 3509 | cat >>conftest.$ac_ext <<_ACEOF |
| 3510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3511 | #include <ac_nonexistent.h> |
| 3512 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3513 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3514 | case "(($ac_try" in |
| 3515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3516 | *) ac_try_echo=$ac_try;; |
| 3517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3519 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3521 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | rm -f conftest.er1 |
| 3523 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3525 | (exit $ac_status); } >/dev/null && { |
| 3526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3527 | test ! -s conftest.err |
| 3528 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | # Broken: success on invalid input. |
| 3530 | continue |
| 3531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | # Passes both tests. |
| 3536 | ac_preproc_ok=: |
| 3537 | break |
| 3538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | rm -f conftest.err conftest.$ac_ext |
| 3541 | |
| 3542 | done |
| 3543 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3544 | rm -f conftest.err conftest.$ac_ext |
| 3545 | if $ac_preproc_ok; then |
| 3546 | break |
| 3547 | fi |
| 3548 | |
| 3549 | done |
| 3550 | ac_cv_prog_CPP=$CPP |
| 3551 | |
| 3552 | fi |
| 3553 | CPP=$ac_cv_prog_CPP |
| 3554 | else |
| 3555 | ac_cv_prog_CPP=$CPP |
| 3556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3557 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3558 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | ac_preproc_ok=false |
| 3560 | for ac_c_preproc_warn_flag in '' yes |
| 3561 | do |
| 3562 | # Use a header file that comes with gcc, so configuring glibc |
| 3563 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3564 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3565 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3567 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3568 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3569 | /* confdefs.h. */ |
| 3570 | _ACEOF |
| 3571 | cat confdefs.h >>conftest.$ac_ext |
| 3572 | cat >>conftest.$ac_ext <<_ACEOF |
| 3573 | /* end confdefs.h. */ |
| 3574 | #ifdef __STDC__ |
| 3575 | # include <limits.h> |
| 3576 | #else |
| 3577 | # include <assert.h> |
| 3578 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3579 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3580 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3581 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3582 | case "(($ac_try" in |
| 3583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3584 | *) ac_try_echo=$ac_try;; |
| 3585 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3587 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3589 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | rm -f conftest.er1 |
| 3591 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3593 | (exit $ac_status); } >/dev/null && { |
| 3594 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3595 | test ! -s conftest.err |
| 3596 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | : |
| 3598 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | # Broken: fails on valid input. |
| 3603 | continue |
| 3604 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | rm -f conftest.err conftest.$ac_ext |
| 3607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3608 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | # can be detected and how. |
| 3610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | /* confdefs.h. */ |
| 3612 | _ACEOF |
| 3613 | cat confdefs.h >>conftest.$ac_ext |
| 3614 | cat >>conftest.$ac_ext <<_ACEOF |
| 3615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | #include <ac_nonexistent.h> |
| 3617 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3618 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3619 | case "(($ac_try" in |
| 3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3621 | *) ac_try_echo=$ac_try;; |
| 3622 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3626 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | rm -f conftest.er1 |
| 3628 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3630 | (exit $ac_status); } >/dev/null && { |
| 3631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3632 | test ! -s conftest.err |
| 3633 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | # Broken: success on invalid input. |
| 3635 | continue |
| 3636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | # Passes both tests. |
| 3641 | ac_preproc_ok=: |
| 3642 | break |
| 3643 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | rm -f conftest.err conftest.$ac_ext |
| 3646 | |
| 3647 | done |
| 3648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3649 | rm -f conftest.err conftest.$ac_ext |
| 3650 | if $ac_preproc_ok; then |
| 3651 | : |
| 3652 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3653 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3654 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3655 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3656 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3657 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | fi |
| 3659 | |
| 3660 | ac_ext=c |
| 3661 | ac_cpp='$CPP $CPPFLAGS' |
| 3662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3665 | |
| 3666 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3667 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3668 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3669 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3671 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3672 | # Extract the first word of "grep ggrep" to use in msg output |
| 3673 | if test -z "$GREP"; then |
| 3674 | set dummy grep ggrep; ac_prog_name=$2 |
| 3675 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3677 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3678 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3679 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3681 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3682 | do |
| 3683 | IFS=$as_save_IFS |
| 3684 | test -z "$as_dir" && as_dir=. |
| 3685 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3687 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3688 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3689 | # Check for GNU ac_path_GREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3690 | # Check for GNU $ac_path_GREP |
| 3691 | case `"$ac_path_GREP" --version 2>&1` in |
| 3692 | *GNU*) |
| 3693 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3694 | *) |
| 3695 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3696 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3697 | while : |
| 3698 | do |
| 3699 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3700 | mv "conftest.tmp" "conftest.in" |
| 3701 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3702 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3703 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3704 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3705 | ac_count=`expr $ac_count + 1` |
| 3706 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3707 | # Best one so far, save it but keep looking for a better one |
| 3708 | ac_cv_path_GREP="$ac_path_GREP" |
| 3709 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3710 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3711 | # 10*(2^10) chars as input seems more than enough |
| 3712 | test $ac_count -gt 10 && break |
| 3713 | done |
| 3714 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3715 | esac |
| 3716 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3717 | |
| 3718 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3719 | done |
| 3720 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3721 | |
| 3722 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3723 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3724 | |
| 3725 | |
| 3726 | fi |
| 3727 | |
| 3728 | GREP="$ac_cv_path_GREP" |
| 3729 | if test -z "$GREP"; then |
| 3730 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3731 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3732 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3733 | fi |
| 3734 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3735 | else |
| 3736 | ac_cv_path_GREP=$GREP |
| 3737 | fi |
| 3738 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3739 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3740 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3741 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3742 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3743 | GREP="$ac_cv_path_GREP" |
| 3744 | |
| 3745 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3747 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3748 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3750 | else |
| 3751 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3752 | then ac_cv_path_EGREP="$GREP -E" |
| 3753 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3754 | # Extract the first word of "egrep" to use in msg output |
| 3755 | if test -z "$EGREP"; then |
| 3756 | set dummy egrep; ac_prog_name=$2 |
| 3757 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3759 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3760 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3761 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3764 | do |
| 3765 | IFS=$as_save_IFS |
| 3766 | test -z "$as_dir" && as_dir=. |
| 3767 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3769 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3770 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3771 | # Check for GNU ac_path_EGREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3772 | # Check for GNU $ac_path_EGREP |
| 3773 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3774 | *GNU*) |
| 3775 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3776 | *) |
| 3777 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3778 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3779 | while : |
| 3780 | do |
| 3781 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3782 | mv "conftest.tmp" "conftest.in" |
| 3783 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3784 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3785 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3786 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3787 | ac_count=`expr $ac_count + 1` |
| 3788 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3789 | # Best one so far, save it but keep looking for a better one |
| 3790 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3791 | ac_path_EGREP_max=$ac_count |
| 3792 | fi |
| 3793 | # 10*(2^10) chars as input seems more than enough |
| 3794 | test $ac_count -gt 10 && break |
| 3795 | done |
| 3796 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3797 | esac |
| 3798 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3799 | |
| 3800 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3801 | done |
| 3802 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3803 | |
| 3804 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3805 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3806 | |
| 3807 | |
| 3808 | fi |
| 3809 | |
| 3810 | EGREP="$ac_cv_path_EGREP" |
| 3811 | if test -z "$EGREP"; then |
| 3812 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3813 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3815 | fi |
| 3816 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3817 | else |
| 3818 | ac_cv_path_EGREP=$EGREP |
| 3819 | fi |
| 3820 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3822 | fi |
| 3823 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3824 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3825 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3826 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3827 | |
| 3828 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3829 | |
| 3830 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3831 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3832 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3833 | /* confdefs.h. */ |
| 3834 | _ACEOF |
| 3835 | cat confdefs.h >>conftest.$ac_ext |
| 3836 | cat >>conftest.$ac_ext <<_ACEOF |
| 3837 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3838 | #ifdef _AIX |
| 3839 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3840 | #endif |
| 3841 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3842 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3844 | $EGREP "yes" >/dev/null 2>&1; then |
| 3845 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3846 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3847 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3848 | #define _ALL_SOURCE 1 |
| 3849 | _ACEOF |
| 3850 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3851 | else |
| 3852 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3853 | echo "${ECHO_T}no" >&6; } |
| 3854 | fi |
| 3855 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3856 | |
| 3857 | |
| 3858 | |
| 3859 | # Check for unsupported systems |
| 3860 | case $ac_sys_system/$ac_sys_release in |
| 3861 | atheos*|Linux*/1*) |
| 3862 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3863 | echo See README for details. |
| 3864 | exit 1;; |
| 3865 | esac |
| 3866 | |
| 3867 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3868 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3869 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3870 | |
| 3871 | # Check whether --with-suffix was given. |
| 3872 | if test "${with_suffix+set}" = set; then |
| 3873 | withval=$with_suffix; |
| 3874 | case $withval in |
| 3875 | no) EXEEXT=;; |
| 3876 | yes) EXEEXT=.exe;; |
| 3877 | *) EXEEXT=$withval;; |
| 3878 | esac |
| 3879 | fi |
| 3880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3881 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3882 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3883 | |
| 3884 | # Test whether we're running on a non-case-sensitive system, in which |
| 3885 | # case we give a warning if no ext is given |
| 3886 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3887 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3888 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3889 | if test ! -d CaseSensitiveTestDir; then |
| 3890 | mkdir CaseSensitiveTestDir |
| 3891 | fi |
| 3892 | |
| 3893 | if test -d casesensitivetestdir |
| 3894 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3895 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3896 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3897 | BUILDEXEEXT=.exe |
| 3898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3900 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3901 | BUILDEXEEXT=$EXEEXT |
| 3902 | fi |
| 3903 | rmdir CaseSensitiveTestDir |
| 3904 | |
| 3905 | case $MACHDEP in |
| 3906 | bsdos*) |
| 3907 | case $CC in |
| 3908 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3909 | esac;; |
| 3910 | esac |
| 3911 | |
| 3912 | case $ac_sys_system in |
| 3913 | hp*|HP*) |
| 3914 | case $CC in |
| 3915 | cc|*/cc) CC="$CC -Ae";; |
| 3916 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3917 | SunOS*) |
| 3918 | # Some functions have a prototype only with that define, e.g. confstr |
| 3919 | |
| 3920 | cat >>confdefs.h <<\_ACEOF |
| 3921 | #define __EXTENSIONS__ 1 |
| 3922 | _ACEOF |
| 3923 | |
| 3924 | ;; |
| 3925 | esac |
| 3926 | |
| 3927 | |
| 3928 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3929 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3930 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3931 | if test -z "$LIBRARY" |
| 3932 | then |
| 3933 | LIBRARY='libpython$(VERSION).a' |
| 3934 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3935 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3936 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3937 | |
| 3938 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3939 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3940 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3941 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3942 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3943 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3944 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3945 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3946 | # |
| 3947 | # RUNSHARED is used to run shared python without installed libraries |
| 3948 | # |
| 3949 | # INSTSONAME is the name of the shared library that will be use to install |
| 3950 | # on the system - some systems like version suffix, others don't |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | LDLIBRARY="$LIBRARY" |
| 3958 | BLDLIBRARY='$(LDLIBRARY)' |
| 3959 | INSTSONAME='$(LDLIBRARY)' |
| 3960 | DLLLIBRARY='' |
| 3961 | LDLIBRARYDIR='' |
| 3962 | RUNSHARED='' |
| 3963 | |
| 3964 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3965 | # If CXX is set, and if it is needed to link a main function that was |
| 3966 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3967 | # python might then depend on the C++ runtime |
| 3968 | # This is altered for AIX in order to build the export list before |
| 3969 | # linking. |
| 3970 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3971 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3972 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3973 | if test -z "$LINKCC" |
| 3974 | then |
| 3975 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3976 | case $ac_sys_system in |
| 3977 | AIX*) |
| 3978 | exp_extra="\"\"" |
| 3979 | if test $ac_sys_release -ge 5 -o \ |
| 3980 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3981 | exp_extra="." |
| 3982 | fi |
| 3983 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3984 | QNX*) |
| 3985 | # qcc must be used because the other compilers do not |
| 3986 | # support -N. |
| 3987 | LINKCC=qcc;; |
| 3988 | esac |
| 3989 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3990 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3991 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3992 | |
| 3993 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 3994 | # make sure we default having it set to "no": this is used by |
| 3995 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 3996 | # to linker command lines, and failing to detect GNU ld simply results |
| 3997 | # in the same bahaviour as before. |
| 3998 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3999 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4000 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4001 | ac_prog=ld |
| 4002 | if test "$GCC" = yes; then |
| 4003 | ac_prog=`$CC -print-prog-name=ld` |
| 4004 | fi |
| 4005 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4006 | *GNU*) |
| 4007 | GNULD=yes;; |
| 4008 | *) |
| 4009 | GNULD=no;; |
| 4010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4011 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4012 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4014 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4015 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4016 | # Check whether --enable-shared was given. |
| 4017 | if test "${enable_shared+set}" = set; then |
| 4018 | enableval=$enable_shared; |
| 4019 | fi |
| 4020 | |
| 4021 | |
| 4022 | if test -z "$enable_shared" |
| 4023 | then |
| 4024 | case $ac_sys_system in |
| 4025 | CYGWIN* | atheos*) |
| 4026 | enable_shared="yes";; |
| 4027 | *) |
| 4028 | enable_shared="no";; |
| 4029 | esac |
| 4030 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4031 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4032 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4033 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4034 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4035 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4036 | # Check whether --enable-profiling was given. |
| 4037 | if test "${enable_profiling+set}" = set; then |
| 4038 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4039 | CC="$CC -pg" |
| 4040 | if test "$cross_compiling" = yes; then |
| 4041 | ac_enable_profiling="no" |
| 4042 | else |
| 4043 | cat >conftest.$ac_ext <<_ACEOF |
| 4044 | /* confdefs.h. */ |
| 4045 | _ACEOF |
| 4046 | cat confdefs.h >>conftest.$ac_ext |
| 4047 | cat >>conftest.$ac_ext <<_ACEOF |
| 4048 | /* end confdefs.h. */ |
| 4049 | int main() { return 0; } |
| 4050 | _ACEOF |
| 4051 | rm -f conftest$ac_exeext |
| 4052 | if { (ac_try="$ac_link" |
| 4053 | case "(($ac_try" in |
| 4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4055 | *) ac_try_echo=$ac_try;; |
| 4056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4058 | (eval "$ac_link") 2>&5 |
| 4059 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4062 | { (case "(($ac_try" in |
| 4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4064 | *) ac_try_echo=$ac_try;; |
| 4065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4067 | (eval "$ac_try") 2>&5 |
| 4068 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4070 | (exit $ac_status); }; }; then |
| 4071 | ac_enable_profiling="yes" |
| 4072 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4073 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4074 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4076 | |
| 4077 | ( exit $ac_status ) |
| 4078 | ac_enable_profiling="no" |
| 4079 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4081 | fi |
| 4082 | |
| 4083 | |
| 4084 | CC="$ac_save_cc" |
| 4085 | fi |
| 4086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4087 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4088 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4089 | |
| 4090 | case "$ac_enable_profiling" in |
| 4091 | "yes") |
| 4092 | BASECFLAGS="-pg $BASECFLAGS" |
| 4093 | LDFLAGS="-pg $LDFLAGS" |
| 4094 | ;; |
| 4095 | esac |
| 4096 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4097 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4098 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4099 | |
| 4100 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4101 | # library that we build, but we do not want to link against it (we |
| 4102 | # will find it with a -framework option). For this reason there is an |
| 4103 | # extra variable BLDLIBRARY against which Python and the extension |
| 4104 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4105 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4106 | if test "$enable_framework" |
| 4107 | then |
| 4108 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4109 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4110 | BLDLIBRARY='' |
| 4111 | else |
| 4112 | BLDLIBRARY='$(LDLIBRARY)' |
| 4113 | fi |
| 4114 | |
| 4115 | # Other platforms follow |
| 4116 | if test $enable_shared = "yes"; then |
| 4117 | |
| 4118 | cat >>confdefs.h <<\_ACEOF |
| 4119 | #define Py_ENABLE_SHARED 1 |
| 4120 | _ACEOF |
| 4121 | |
| 4122 | case $ac_sys_system in |
| 4123 | BeOS*) |
| 4124 | LDLIBRARY='libpython$(VERSION).so' |
| 4125 | ;; |
| 4126 | CYGWIN*) |
| 4127 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4128 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4129 | ;; |
| 4130 | SunOS*) |
| 4131 | LDLIBRARY='libpython$(VERSION).so' |
| 4132 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4133 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4134 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4135 | ;; |
| 4136 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4137 | LDLIBRARY='libpython$(VERSION).so' |
| 4138 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4139 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4140 | case $ac_sys_system in |
| 4141 | FreeBSD*) |
| 4142 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4143 | ;; |
| 4144 | esac |
| 4145 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4146 | ;; |
| 4147 | hp*|HP*) |
| 4148 | case `uname -m` in |
| 4149 | ia64) |
| 4150 | LDLIBRARY='libpython$(VERSION).so' |
| 4151 | ;; |
| 4152 | *) |
| 4153 | LDLIBRARY='libpython$(VERSION).sl' |
| 4154 | ;; |
| 4155 | esac |
| 4156 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4157 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4158 | ;; |
| 4159 | OSF*) |
| 4160 | LDLIBRARY='libpython$(VERSION).so' |
| 4161 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4162 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4163 | ;; |
| 4164 | atheos*) |
| 4165 | LDLIBRARY='libpython$(VERSION).so' |
| 4166 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4167 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4168 | ;; |
| 4169 | Darwin*) |
| 4170 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4171 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4172 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4173 | ;; |
| 4174 | |
| 4175 | esac |
| 4176 | else # shared is disabled |
| 4177 | case $ac_sys_system in |
| 4178 | CYGWIN*) |
| 4179 | BLDLIBRARY='$(LIBRARY)' |
| 4180 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4181 | ;; |
| 4182 | esac |
| 4183 | fi |
| 4184 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4185 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4186 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4187 | |
| 4188 | if test -n "$ac_tool_prefix"; then |
| 4189 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4190 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4193 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4195 | else |
| 4196 | if test -n "$RANLIB"; then |
| 4197 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4198 | else |
| 4199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4200 | for as_dir in $PATH |
| 4201 | do |
| 4202 | IFS=$as_save_IFS |
| 4203 | test -z "$as_dir" && as_dir=. |
| 4204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4206 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4208 | break 2 |
| 4209 | fi |
| 4210 | done |
| 4211 | done |
| 4212 | IFS=$as_save_IFS |
| 4213 | |
| 4214 | fi |
| 4215 | fi |
| 4216 | RANLIB=$ac_cv_prog_RANLIB |
| 4217 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4218 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4219 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4221 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4222 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4223 | fi |
| 4224 | |
| 4225 | |
| 4226 | fi |
| 4227 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4228 | ac_ct_RANLIB=$RANLIB |
| 4229 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4230 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4233 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4235 | else |
| 4236 | if test -n "$ac_ct_RANLIB"; then |
| 4237 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4238 | else |
| 4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4240 | for as_dir in $PATH |
| 4241 | do |
| 4242 | IFS=$as_save_IFS |
| 4243 | test -z "$as_dir" && as_dir=. |
| 4244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4246 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4248 | break 2 |
| 4249 | fi |
| 4250 | done |
| 4251 | done |
| 4252 | IFS=$as_save_IFS |
| 4253 | |
| 4254 | fi |
| 4255 | fi |
| 4256 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4257 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4258 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4259 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4260 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4261 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4262 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4263 | fi |
| 4264 | |
| 4265 | if test "x$ac_ct_RANLIB" = x; then |
| 4266 | RANLIB=":" |
| 4267 | else |
| 4268 | case $cross_compiling:$ac_tool_warned in |
| 4269 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4270 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4271 | whose name does not start with the host triplet. If you think this |
| 4272 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4273 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4274 | whose name does not start with the host triplet. If you think this |
| 4275 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4276 | ac_tool_warned=yes ;; |
| 4277 | esac |
| 4278 | RANLIB=$ac_ct_RANLIB |
| 4279 | fi |
| 4280 | else |
| 4281 | RANLIB="$ac_cv_prog_RANLIB" |
| 4282 | fi |
| 4283 | |
| 4284 | |
| 4285 | for ac_prog in ar aal |
| 4286 | do |
| 4287 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4288 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4289 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4291 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4293 | else |
| 4294 | if test -n "$AR"; then |
| 4295 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4296 | else |
| 4297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4298 | for as_dir in $PATH |
| 4299 | do |
| 4300 | IFS=$as_save_IFS |
| 4301 | test -z "$as_dir" && as_dir=. |
| 4302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4304 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4306 | break 2 |
| 4307 | fi |
| 4308 | done |
| 4309 | done |
| 4310 | IFS=$as_save_IFS |
| 4311 | |
| 4312 | fi |
| 4313 | fi |
| 4314 | AR=$ac_cv_prog_AR |
| 4315 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4316 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4317 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4318 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4320 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4321 | fi |
| 4322 | |
| 4323 | |
| 4324 | test -n "$AR" && break |
| 4325 | done |
| 4326 | test -n "$AR" || AR="ar" |
| 4327 | |
| 4328 | |
| 4329 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4330 | |
| 4331 | if test -z "$ARFLAGS" |
| 4332 | then |
| 4333 | ARFLAGS="rc" |
| 4334 | fi |
| 4335 | |
| 4336 | |
| 4337 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4338 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4341 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4343 | else |
| 4344 | if test -n "$SVNVERSION"; then |
| 4345 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4346 | else |
| 4347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4348 | for as_dir in $PATH |
| 4349 | do |
| 4350 | IFS=$as_save_IFS |
| 4351 | test -z "$as_dir" && as_dir=. |
| 4352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4354 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4356 | break 2 |
| 4357 | fi |
| 4358 | done |
| 4359 | done |
| 4360 | IFS=$as_save_IFS |
| 4361 | |
| 4362 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4363 | fi |
| 4364 | fi |
| 4365 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4366 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4367 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4368 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4369 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4370 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4371 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4372 | fi |
| 4373 | |
| 4374 | |
| 4375 | if test $SVNVERSION = found |
| 4376 | then |
| 4377 | SVNVERSION="svnversion \$(srcdir)" |
| 4378 | else |
| 4379 | SVNVERSION="echo Unversioned directory" |
| 4380 | fi |
| 4381 | |
| 4382 | case $MACHDEP in |
| 4383 | bsdos*|hp*|HP*) |
| 4384 | # install -d does not work on BSDI or HP-UX |
| 4385 | if test -z "$INSTALL" |
| 4386 | then |
| 4387 | INSTALL="${srcdir}/install-sh -c" |
| 4388 | fi |
| 4389 | esac |
| 4390 | ac_aux_dir= |
| 4391 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4392 | if test -f "$ac_dir/install-sh"; then |
| 4393 | ac_aux_dir=$ac_dir |
| 4394 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4395 | break |
| 4396 | elif test -f "$ac_dir/install.sh"; then |
| 4397 | ac_aux_dir=$ac_dir |
| 4398 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4399 | break |
| 4400 | elif test -f "$ac_dir/shtool"; then |
| 4401 | ac_aux_dir=$ac_dir |
| 4402 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4403 | break |
| 4404 | fi |
| 4405 | done |
| 4406 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4407 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4408 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4409 | { (exit 1); exit 1; }; } |
| 4410 | fi |
| 4411 | |
| 4412 | # These three variables are undocumented and unsupported, |
| 4413 | # and are intended to be withdrawn in a future Autoconf release. |
| 4414 | # They can cause serious problems if a builder's source tree is in a directory |
| 4415 | # whose full name contains unusual characters. |
| 4416 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4417 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4418 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4419 | |
| 4420 | |
| 4421 | # Find a good install program. We prefer a C program (faster), |
| 4422 | # so one script is as good as another. But avoid the broken or |
| 4423 | # incompatible versions: |
| 4424 | # SysV /etc/install, /usr/sbin/install |
| 4425 | # SunOS /usr/etc/install |
| 4426 | # IRIX /sbin/install |
| 4427 | # AIX /bin/install |
| 4428 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4429 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4430 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4431 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4432 | # OS/2's system install, which has a completely different semantic |
| 4433 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4434 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4435 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4436 | if test -z "$INSTALL"; then |
| 4437 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4439 | else |
| 4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4441 | for as_dir in $PATH |
| 4442 | do |
| 4443 | IFS=$as_save_IFS |
| 4444 | test -z "$as_dir" && as_dir=. |
| 4445 | # Account for people who put trailing slashes in PATH elements. |
| 4446 | case $as_dir/ in |
| 4447 | ./ | .// | /cC/* | \ |
| 4448 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4449 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4450 | /usr/ucb/* ) ;; |
| 4451 | *) |
| 4452 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4453 | # Don't use installbsd from OSF since it installs stuff as root |
| 4454 | # by default. |
| 4455 | for ac_prog in ginstall scoinst install; do |
| 4456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4457 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4458 | if test $ac_prog = install && |
| 4459 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4460 | # AIX install. It has an incompatible calling convention. |
| 4461 | : |
| 4462 | elif test $ac_prog = install && |
| 4463 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4464 | # program-specific install script used by HP pwplus--don't use. |
| 4465 | : |
| 4466 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4467 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4468 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4469 | fi |
| 4470 | fi |
| 4471 | done |
| 4472 | done |
| 4473 | ;; |
| 4474 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4475 | done |
| 4476 | IFS=$as_save_IFS |
| 4477 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4478 | |
| 4479 | fi |
| 4480 | if test "${ac_cv_path_install+set}" = set; then |
| 4481 | INSTALL=$ac_cv_path_install |
| 4482 | else |
| 4483 | # As a last resort, use the slow shell script. Don't cache a |
| 4484 | # value for INSTALL within a source directory, because that will |
| 4485 | # break other packages using the cache if that directory is |
| 4486 | # removed, or if the value is a relative name. |
| 4487 | INSTALL=$ac_install_sh |
| 4488 | fi |
| 4489 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4490 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4491 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4492 | |
| 4493 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4494 | # It thinks the first close brace ends the variable substitution. |
| 4495 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4496 | |
| 4497 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4498 | |
| 4499 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4500 | |
| 4501 | |
| 4502 | # Not every filesystem supports hard links |
| 4503 | |
| 4504 | if test -z "$LN" ; then |
| 4505 | case $ac_sys_system in |
| 4506 | BeOS*) LN="ln -s";; |
| 4507 | CYGWIN*) LN="ln -s";; |
| 4508 | atheos*) LN="ln -s";; |
| 4509 | *) LN=ln;; |
| 4510 | esac |
| 4511 | fi |
| 4512 | |
| 4513 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4514 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4515 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4516 | |
| 4517 | # Check whether --with-pydebug was given. |
| 4518 | if test "${with_pydebug+set}" = set; then |
| 4519 | withval=$with_pydebug; |
| 4520 | if test "$withval" != no |
| 4521 | then |
| 4522 | |
| 4523 | cat >>confdefs.h <<\_ACEOF |
| 4524 | #define Py_DEBUG 1 |
| 4525 | _ACEOF |
| 4526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4527 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4528 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4529 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4530 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4531 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4532 | fi |
| 4533 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4534 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4535 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4536 | fi |
| 4537 | |
| 4538 | |
| 4539 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4540 | # merged with this chunk of code? |
| 4541 | |
| 4542 | # Optimizer/debugger flags |
| 4543 | # ------------------------ |
| 4544 | # (The following bit of code is complicated enough - please keep things |
| 4545 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4546 | |
| 4547 | # There are two parallel sets of case statements below, one that checks to |
| 4548 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4549 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4550 | # user set OPT. |
| 4551 | |
| 4552 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4553 | # it on the command line |
| 4554 | |
| 4555 | if test -z "$OPT" |
| 4556 | then |
| 4557 | case $GCC in |
| 4558 | yes) |
| 4559 | if test "$CC" != 'g++' ; then |
| 4560 | STRICT_PROTO="-Wstrict-prototypes" |
| 4561 | fi |
| 4562 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4563 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4564 | WRAP="-fwrapv" |
| 4565 | fi |
| 4566 | case $ac_cv_prog_cc_g in |
| 4567 | yes) |
| 4568 | if test "$Py_DEBUG" = 'true' ; then |
| 4569 | # Optimization messes up debuggers, so turn it off for |
| 4570 | # debug builds. |
| 4571 | OPT="-g -Wall $STRICT_PROTO" |
| 4572 | else |
| 4573 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4574 | fi |
| 4575 | ;; |
| 4576 | *) |
| 4577 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4578 | ;; |
| 4579 | esac |
| 4580 | case $ac_sys_system in |
| 4581 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4582 | ;; |
| 4583 | esac |
| 4584 | ;; |
| 4585 | |
| 4586 | *) |
| 4587 | OPT="-O" |
| 4588 | ;; |
| 4589 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4590 | fi |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | # The -arch flags for universal builds on OSX |
| 4595 | UNIVERSAL_ARCH_FLAGS= |
| 4596 | |
| 4597 | |
| 4598 | # tweak BASECFLAGS based on compiler and platform |
| 4599 | case $GCC in |
| 4600 | yes) |
| 4601 | # Python violates C99 rules, by casting between incompatible |
| 4602 | # pointer types. GCC may generate bad code as a result of that, |
| 4603 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4604 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4605 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4606 | ac_save_cc="$CC" |
| 4607 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4608 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4610 | else |
| 4611 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4612 | ac_cv_no_strict_aliasing_ok=no |
| 4613 | else |
| 4614 | cat >conftest.$ac_ext <<_ACEOF |
| 4615 | /* confdefs.h. */ |
| 4616 | _ACEOF |
| 4617 | cat confdefs.h >>conftest.$ac_ext |
| 4618 | cat >>conftest.$ac_ext <<_ACEOF |
| 4619 | /* end confdefs.h. */ |
| 4620 | int main() { return 0; } |
| 4621 | _ACEOF |
| 4622 | rm -f conftest$ac_exeext |
| 4623 | if { (ac_try="$ac_link" |
| 4624 | case "(($ac_try" in |
| 4625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4626 | *) ac_try_echo=$ac_try;; |
| 4627 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4629 | (eval "$ac_link") 2>&5 |
| 4630 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4632 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4633 | { (case "(($ac_try" in |
| 4634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4635 | *) ac_try_echo=$ac_try;; |
| 4636 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4638 | (eval "$ac_try") 2>&5 |
| 4639 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4641 | (exit $ac_status); }; }; then |
| 4642 | ac_cv_no_strict_aliasing_ok=yes |
| 4643 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4644 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4645 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4647 | |
| 4648 | ( exit $ac_status ) |
| 4649 | ac_cv_no_strict_aliasing_ok=no |
| 4650 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4651 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4652 | fi |
| 4653 | |
| 4654 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4655 | fi |
| 4656 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4657 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4658 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4659 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4660 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4661 | then |
| 4662 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4663 | fi |
| 4664 | |
| 4665 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4666 | # support. Without this, treatment of subnormals doesn't follow |
| 4667 | # the standard. |
| 4668 | case $ac_sys_machine in |
| 4669 | alpha*) |
| 4670 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4671 | ;; |
| 4672 | esac |
| 4673 | |
| 4674 | case $ac_sys_system in |
| 4675 | SCO_SV*) |
| 4676 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4677 | ;; |
| 4678 | # is there any other compiler on Darwin besides gcc? |
| 4679 | Darwin*) |
| 4680 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4681 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4682 | |
| 4683 | |
| 4684 | if test "${enable_universalsdk}"; then |
| 4685 | UNIVERSAL_ARCH_FLAGS="" |
| 4686 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4687 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4688 | ARCH_RUN_32BIT="" |
| 4689 | |
| 4690 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4691 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4692 | |
| 4693 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4694 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4695 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4696 | |
| 4697 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4698 | { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 4699 | echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4700 | { (exit 1); exit 1; }; } |
| 4701 | |
| 4702 | fi |
| 4703 | |
| 4704 | |
| 4705 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4706 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4707 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4708 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4709 | fi |
| 4710 | fi |
| 4711 | |
| 4712 | # Calculate the right deployment target for this build. |
| 4713 | # |
| 4714 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4715 | if test ${cur_target} '>' 10.2; then |
| 4716 | cur_target=10.3 |
| 4717 | fi |
| 4718 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4719 | # Ensure that the default platform for a 4-way |
| 4720 | # universal build is OSX 10.5, that's the first |
| 4721 | # OS release where 4-way builds make sense. |
| 4722 | cur_target='10.5' |
| 4723 | fi |
| 4724 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4725 | |
| 4726 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4727 | # environment with a value that is the same as what we'll use |
| 4728 | # in the Makefile to ensure that we'll get the same compiler |
| 4729 | # environment during configure and build time. |
| 4730 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4731 | export MACOSX_DEPLOYMENT_TARGET |
| 4732 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4733 | |
| 4734 | ;; |
| 4735 | OSF*) |
| 4736 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4737 | ;; |
| 4738 | esac |
| 4739 | ;; |
| 4740 | |
| 4741 | *) |
| 4742 | case $ac_sys_system in |
| 4743 | OpenUNIX*|UnixWare*) |
| 4744 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4745 | ;; |
| 4746 | OSF*) |
| 4747 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4748 | ;; |
| 4749 | SCO_SV*) |
| 4750 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4751 | ;; |
| 4752 | esac |
| 4753 | ;; |
| 4754 | esac |
| 4755 | |
| 4756 | if test "$Py_DEBUG" = 'true'; then |
| 4757 | : |
| 4758 | else |
| 4759 | OPT="-DNDEBUG $OPT" |
| 4760 | fi |
| 4761 | |
| 4762 | if test "$ac_arch_flags" |
| 4763 | then |
| 4764 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4765 | fi |
| 4766 | |
| 4767 | # disable check for icc since it seems to pass, but generates a warning |
| 4768 | if test "$CC" = icc |
| 4769 | then |
| 4770 | ac_cv_opt_olimit_ok=no |
| 4771 | fi |
| 4772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4773 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4774 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4775 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4777 | else |
| 4778 | ac_save_cc="$CC" |
| 4779 | CC="$CC -OPT:Olimit=0" |
| 4780 | if test "$cross_compiling" = yes; then |
| 4781 | ac_cv_opt_olimit_ok=no |
| 4782 | else |
| 4783 | cat >conftest.$ac_ext <<_ACEOF |
| 4784 | /* confdefs.h. */ |
| 4785 | _ACEOF |
| 4786 | cat confdefs.h >>conftest.$ac_ext |
| 4787 | cat >>conftest.$ac_ext <<_ACEOF |
| 4788 | /* end confdefs.h. */ |
| 4789 | int main() { return 0; } |
| 4790 | _ACEOF |
| 4791 | rm -f conftest$ac_exeext |
| 4792 | if { (ac_try="$ac_link" |
| 4793 | case "(($ac_try" in |
| 4794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4795 | *) ac_try_echo=$ac_try;; |
| 4796 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4798 | (eval "$ac_link") 2>&5 |
| 4799 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4802 | { (case "(($ac_try" in |
| 4803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4804 | *) ac_try_echo=$ac_try;; |
| 4805 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4807 | (eval "$ac_try") 2>&5 |
| 4808 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4810 | (exit $ac_status); }; }; then |
| 4811 | ac_cv_opt_olimit_ok=yes |
| 4812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4813 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4814 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4816 | |
| 4817 | ( exit $ac_status ) |
| 4818 | ac_cv_opt_olimit_ok=no |
| 4819 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4821 | fi |
| 4822 | |
| 4823 | |
| 4824 | CC="$ac_save_cc" |
| 4825 | fi |
| 4826 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4827 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4828 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4829 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4830 | case $ac_sys_system in |
| 4831 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4832 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4833 | # environment? |
| 4834 | Darwin*) |
| 4835 | ;; |
| 4836 | *) |
| 4837 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4838 | ;; |
| 4839 | esac |
| 4840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4841 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4842 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4843 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4845 | else |
| 4846 | ac_save_cc="$CC" |
| 4847 | CC="$CC -Olimit 1500" |
| 4848 | if test "$cross_compiling" = yes; then |
| 4849 | ac_cv_olimit_ok=no |
| 4850 | else |
| 4851 | cat >conftest.$ac_ext <<_ACEOF |
| 4852 | /* confdefs.h. */ |
| 4853 | _ACEOF |
| 4854 | cat confdefs.h >>conftest.$ac_ext |
| 4855 | cat >>conftest.$ac_ext <<_ACEOF |
| 4856 | /* end confdefs.h. */ |
| 4857 | int main() { return 0; } |
| 4858 | _ACEOF |
| 4859 | rm -f conftest$ac_exeext |
| 4860 | if { (ac_try="$ac_link" |
| 4861 | case "(($ac_try" in |
| 4862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4863 | *) ac_try_echo=$ac_try;; |
| 4864 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4866 | (eval "$ac_link") 2>&5 |
| 4867 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4869 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4870 | { (case "(($ac_try" in |
| 4871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4872 | *) ac_try_echo=$ac_try;; |
| 4873 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4875 | (eval "$ac_try") 2>&5 |
| 4876 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4878 | (exit $ac_status); }; }; then |
| 4879 | ac_cv_olimit_ok=yes |
| 4880 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4881 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4882 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4884 | |
| 4885 | ( exit $ac_status ) |
| 4886 | ac_cv_olimit_ok=no |
| 4887 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4889 | fi |
| 4890 | |
| 4891 | |
| 4892 | CC="$ac_save_cc" |
| 4893 | fi |
| 4894 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4895 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4896 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4897 | if test $ac_cv_olimit_ok = yes; then |
| 4898 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4899 | fi |
| 4900 | fi |
| 4901 | |
| 4902 | # Check whether GCC supports PyArg_ParseTuple format |
| 4903 | if test "$GCC" = "yes" |
| 4904 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4905 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4906 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4907 | save_CFLAGS=$CFLAGS |
| 4908 | CFLAGS="$CFLAGS -Werror" |
| 4909 | cat >conftest.$ac_ext <<_ACEOF |
| 4910 | /* confdefs.h. */ |
| 4911 | _ACEOF |
| 4912 | cat confdefs.h >>conftest.$ac_ext |
| 4913 | cat >>conftest.$ac_ext <<_ACEOF |
| 4914 | /* end confdefs.h. */ |
| 4915 | |
| 4916 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4917 | |
| 4918 | int |
| 4919 | main () |
| 4920 | { |
| 4921 | |
| 4922 | ; |
| 4923 | return 0; |
| 4924 | } |
| 4925 | _ACEOF |
| 4926 | rm -f conftest.$ac_objext |
| 4927 | if { (ac_try="$ac_compile" |
| 4928 | case "(($ac_try" in |
| 4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4930 | *) ac_try_echo=$ac_try;; |
| 4931 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4933 | (eval "$ac_compile") 2>conftest.er1 |
| 4934 | ac_status=$? |
| 4935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4936 | rm -f conftest.er1 |
| 4937 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4939 | (exit $ac_status); } && { |
| 4940 | test -z "$ac_c_werror_flag" || |
| 4941 | test ! -s conftest.err |
| 4942 | } && test -s conftest.$ac_objext; then |
| 4943 | |
| 4944 | cat >>confdefs.h <<\_ACEOF |
| 4945 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4946 | _ACEOF |
| 4947 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4948 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4949 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4950 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4951 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4953 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4954 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4955 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4956 | |
| 4957 | fi |
| 4958 | |
| 4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4960 | CFLAGS=$save_CFLAGS |
| 4961 | fi |
| 4962 | |
| 4963 | # On some compilers, pthreads are available without further options |
| 4964 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4965 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4966 | # So we have to see first whether pthreads are available without |
| 4967 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4968 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4969 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4970 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4972 | else |
| 4973 | if test "$cross_compiling" = yes; then |
| 4974 | ac_cv_pthread_is_default=no |
| 4975 | else |
| 4976 | cat >conftest.$ac_ext <<_ACEOF |
| 4977 | /* confdefs.h. */ |
| 4978 | _ACEOF |
| 4979 | cat confdefs.h >>conftest.$ac_ext |
| 4980 | cat >>conftest.$ac_ext <<_ACEOF |
| 4981 | /* end confdefs.h. */ |
| 4982 | |
| 4983 | #include <pthread.h> |
| 4984 | |
| 4985 | void* routine(void* p){return NULL;} |
| 4986 | |
| 4987 | int main(){ |
| 4988 | pthread_t p; |
| 4989 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4990 | return 1; |
| 4991 | (void)pthread_detach(p); |
| 4992 | return 0; |
| 4993 | } |
| 4994 | |
| 4995 | _ACEOF |
| 4996 | rm -f conftest$ac_exeext |
| 4997 | if { (ac_try="$ac_link" |
| 4998 | case "(($ac_try" in |
| 4999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5000 | *) ac_try_echo=$ac_try;; |
| 5001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | (eval "$ac_link") 2>&5 |
| 5004 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5007 | { (case "(($ac_try" in |
| 5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5009 | *) ac_try_echo=$ac_try;; |
| 5010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5012 | (eval "$ac_try") 2>&5 |
| 5013 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5015 | (exit $ac_status); }; }; then |
| 5016 | |
| 5017 | ac_cv_pthread_is_default=yes |
| 5018 | ac_cv_kthread=no |
| 5019 | ac_cv_pthread=no |
| 5020 | |
| 5021 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5023 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5025 | |
| 5026 | ( exit $ac_status ) |
| 5027 | ac_cv_pthread_is_default=no |
| 5028 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5029 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5030 | fi |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | fi |
| 5035 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5036 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5037 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5038 | |
| 5039 | |
| 5040 | if test $ac_cv_pthread_is_default = yes |
| 5041 | then |
| 5042 | ac_cv_kpthread=no |
| 5043 | else |
| 5044 | # -Kpthread, if available, provides the right #defines |
| 5045 | # and linker options to make pthread_create available |
| 5046 | # Some compilers won't report that they do not support -Kpthread, |
| 5047 | # so we need to run a program to see whether it really made the |
| 5048 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5049 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5050 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5051 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5053 | else |
| 5054 | ac_save_cc="$CC" |
| 5055 | CC="$CC -Kpthread" |
| 5056 | if test "$cross_compiling" = yes; then |
| 5057 | ac_cv_kpthread=no |
| 5058 | else |
| 5059 | cat >conftest.$ac_ext <<_ACEOF |
| 5060 | /* confdefs.h. */ |
| 5061 | _ACEOF |
| 5062 | cat confdefs.h >>conftest.$ac_ext |
| 5063 | cat >>conftest.$ac_ext <<_ACEOF |
| 5064 | /* end confdefs.h. */ |
| 5065 | |
| 5066 | #include <pthread.h> |
| 5067 | |
| 5068 | void* routine(void* p){return NULL;} |
| 5069 | |
| 5070 | int main(){ |
| 5071 | pthread_t p; |
| 5072 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5073 | return 1; |
| 5074 | (void)pthread_detach(p); |
| 5075 | return 0; |
| 5076 | } |
| 5077 | |
| 5078 | _ACEOF |
| 5079 | rm -f conftest$ac_exeext |
| 5080 | if { (ac_try="$ac_link" |
| 5081 | case "(($ac_try" in |
| 5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5083 | *) ac_try_echo=$ac_try;; |
| 5084 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5086 | (eval "$ac_link") 2>&5 |
| 5087 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5090 | { (case "(($ac_try" in |
| 5091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5092 | *) ac_try_echo=$ac_try;; |
| 5093 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5095 | (eval "$ac_try") 2>&5 |
| 5096 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5098 | (exit $ac_status); }; }; then |
| 5099 | ac_cv_kpthread=yes |
| 5100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5101 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5102 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5104 | |
| 5105 | ( exit $ac_status ) |
| 5106 | ac_cv_kpthread=no |
| 5107 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5109 | fi |
| 5110 | |
| 5111 | |
| 5112 | CC="$ac_save_cc" |
| 5113 | fi |
| 5114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5115 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5116 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5117 | fi |
| 5118 | |
| 5119 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5120 | then |
| 5121 | # -Kthread, if available, provides the right #defines |
| 5122 | # and linker options to make pthread_create available |
| 5123 | # Some compilers won't report that they do not support -Kthread, |
| 5124 | # so we need to run a program to see whether it really made the |
| 5125 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5126 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5127 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5128 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5130 | else |
| 5131 | ac_save_cc="$CC" |
| 5132 | CC="$CC -Kthread" |
| 5133 | if test "$cross_compiling" = yes; then |
| 5134 | ac_cv_kthread=no |
| 5135 | else |
| 5136 | cat >conftest.$ac_ext <<_ACEOF |
| 5137 | /* confdefs.h. */ |
| 5138 | _ACEOF |
| 5139 | cat confdefs.h >>conftest.$ac_ext |
| 5140 | cat >>conftest.$ac_ext <<_ACEOF |
| 5141 | /* end confdefs.h. */ |
| 5142 | |
| 5143 | #include <pthread.h> |
| 5144 | |
| 5145 | void* routine(void* p){return NULL;} |
| 5146 | |
| 5147 | int main(){ |
| 5148 | pthread_t p; |
| 5149 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5150 | return 1; |
| 5151 | (void)pthread_detach(p); |
| 5152 | return 0; |
| 5153 | } |
| 5154 | |
| 5155 | _ACEOF |
| 5156 | rm -f conftest$ac_exeext |
| 5157 | if { (ac_try="$ac_link" |
| 5158 | case "(($ac_try" in |
| 5159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5160 | *) ac_try_echo=$ac_try;; |
| 5161 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5163 | (eval "$ac_link") 2>&5 |
| 5164 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5167 | { (case "(($ac_try" in |
| 5168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5169 | *) ac_try_echo=$ac_try;; |
| 5170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | (eval "$ac_try") 2>&5 |
| 5173 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5175 | (exit $ac_status); }; }; then |
| 5176 | ac_cv_kthread=yes |
| 5177 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5178 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5179 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5181 | |
| 5182 | ( exit $ac_status ) |
| 5183 | ac_cv_kthread=no |
| 5184 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5185 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5186 | fi |
| 5187 | |
| 5188 | |
| 5189 | CC="$ac_save_cc" |
| 5190 | fi |
| 5191 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5192 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5193 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5194 | fi |
| 5195 | |
| 5196 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5197 | then |
| 5198 | # -pthread, if available, provides the right #defines |
| 5199 | # and linker options to make pthread_create available |
| 5200 | # Some compilers won't report that they do not support -pthread, |
| 5201 | # so we need to run a program to see whether it really made the |
| 5202 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5203 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5204 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5205 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | else |
| 5208 | ac_save_cc="$CC" |
| 5209 | CC="$CC -pthread" |
| 5210 | if test "$cross_compiling" = yes; then |
| 5211 | ac_cv_pthread=no |
| 5212 | else |
| 5213 | cat >conftest.$ac_ext <<_ACEOF |
| 5214 | /* confdefs.h. */ |
| 5215 | _ACEOF |
| 5216 | cat confdefs.h >>conftest.$ac_ext |
| 5217 | cat >>conftest.$ac_ext <<_ACEOF |
| 5218 | /* end confdefs.h. */ |
| 5219 | |
| 5220 | #include <pthread.h> |
| 5221 | |
| 5222 | void* routine(void* p){return NULL;} |
| 5223 | |
| 5224 | int main(){ |
| 5225 | pthread_t p; |
| 5226 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5227 | return 1; |
| 5228 | (void)pthread_detach(p); |
| 5229 | return 0; |
| 5230 | } |
| 5231 | |
| 5232 | _ACEOF |
| 5233 | rm -f conftest$ac_exeext |
| 5234 | if { (ac_try="$ac_link" |
| 5235 | case "(($ac_try" in |
| 5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5237 | *) ac_try_echo=$ac_try;; |
| 5238 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5240 | (eval "$ac_link") 2>&5 |
| 5241 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5244 | { (case "(($ac_try" in |
| 5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5246 | *) ac_try_echo=$ac_try;; |
| 5247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5249 | (eval "$ac_try") 2>&5 |
| 5250 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5252 | (exit $ac_status); }; }; then |
| 5253 | ac_cv_pthread=yes |
| 5254 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5255 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5256 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5258 | |
| 5259 | ( exit $ac_status ) |
| 5260 | ac_cv_pthread=no |
| 5261 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5263 | fi |
| 5264 | |
| 5265 | |
| 5266 | CC="$ac_save_cc" |
| 5267 | fi |
| 5268 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5269 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5270 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5271 | fi |
| 5272 | |
| 5273 | # If we have set a CC compiler flag for thread support then |
| 5274 | # check if it works for CXX, too. |
| 5275 | ac_cv_cxx_thread=no |
| 5276 | if test ! -z "$CXX" |
| 5277 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5278 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5279 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5280 | ac_save_cxx="$CXX" |
| 5281 | |
| 5282 | if test "$ac_cv_kpthread" = "yes" |
| 5283 | then |
| 5284 | CXX="$CXX -Kpthread" |
| 5285 | ac_cv_cxx_thread=yes |
| 5286 | elif test "$ac_cv_kthread" = "yes" |
| 5287 | then |
| 5288 | CXX="$CXX -Kthread" |
| 5289 | ac_cv_cxx_thread=yes |
| 5290 | elif test "$ac_cv_pthread" = "yes" |
| 5291 | then |
| 5292 | CXX="$CXX -pthread" |
| 5293 | ac_cv_cxx_thread=yes |
| 5294 | fi |
| 5295 | |
| 5296 | if test $ac_cv_cxx_thread = yes |
| 5297 | then |
| 5298 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5299 | $CXX -c conftest.$ac_ext 2>&5 |
| 5300 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5301 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5302 | then |
| 5303 | ac_cv_cxx_thread=yes |
| 5304 | else |
| 5305 | ac_cv_cxx_thread=no |
| 5306 | fi |
| 5307 | rm -fr conftest* |
| 5308 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5309 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5310 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5311 | fi |
| 5312 | CXX="$ac_save_cxx" |
| 5313 | |
| 5314 | |
| 5315 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5316 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5317 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5318 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5320 | else |
| 5321 | cat >conftest.$ac_ext <<_ACEOF |
| 5322 | /* confdefs.h. */ |
| 5323 | _ACEOF |
| 5324 | cat confdefs.h >>conftest.$ac_ext |
| 5325 | cat >>conftest.$ac_ext <<_ACEOF |
| 5326 | /* end confdefs.h. */ |
| 5327 | #include <stdlib.h> |
| 5328 | #include <stdarg.h> |
| 5329 | #include <string.h> |
| 5330 | #include <float.h> |
| 5331 | |
| 5332 | int |
| 5333 | main () |
| 5334 | { |
| 5335 | |
| 5336 | ; |
| 5337 | return 0; |
| 5338 | } |
| 5339 | _ACEOF |
| 5340 | rm -f conftest.$ac_objext |
| 5341 | if { (ac_try="$ac_compile" |
| 5342 | case "(($ac_try" in |
| 5343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5344 | *) ac_try_echo=$ac_try;; |
| 5345 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5347 | (eval "$ac_compile") 2>conftest.er1 |
| 5348 | ac_status=$? |
| 5349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5350 | rm -f conftest.er1 |
| 5351 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5353 | (exit $ac_status); } && { |
| 5354 | test -z "$ac_c_werror_flag" || |
| 5355 | test ! -s conftest.err |
| 5356 | } && test -s conftest.$ac_objext; then |
| 5357 | ac_cv_header_stdc=yes |
| 5358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5359 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5361 | |
| 5362 | ac_cv_header_stdc=no |
| 5363 | fi |
| 5364 | |
| 5365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5366 | |
| 5367 | if test $ac_cv_header_stdc = yes; then |
| 5368 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5369 | cat >conftest.$ac_ext <<_ACEOF |
| 5370 | /* confdefs.h. */ |
| 5371 | _ACEOF |
| 5372 | cat confdefs.h >>conftest.$ac_ext |
| 5373 | cat >>conftest.$ac_ext <<_ACEOF |
| 5374 | /* end confdefs.h. */ |
| 5375 | #include <string.h> |
| 5376 | |
| 5377 | _ACEOF |
| 5378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5379 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5380 | : |
| 5381 | else |
| 5382 | ac_cv_header_stdc=no |
| 5383 | fi |
| 5384 | rm -f conftest* |
| 5385 | |
| 5386 | fi |
| 5387 | |
| 5388 | if test $ac_cv_header_stdc = yes; then |
| 5389 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5390 | cat >conftest.$ac_ext <<_ACEOF |
| 5391 | /* confdefs.h. */ |
| 5392 | _ACEOF |
| 5393 | cat confdefs.h >>conftest.$ac_ext |
| 5394 | cat >>conftest.$ac_ext <<_ACEOF |
| 5395 | /* end confdefs.h. */ |
| 5396 | #include <stdlib.h> |
| 5397 | |
| 5398 | _ACEOF |
| 5399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5400 | $EGREP "free" >/dev/null 2>&1; then |
| 5401 | : |
| 5402 | else |
| 5403 | ac_cv_header_stdc=no |
| 5404 | fi |
| 5405 | rm -f conftest* |
| 5406 | |
| 5407 | fi |
| 5408 | |
| 5409 | if test $ac_cv_header_stdc = yes; then |
| 5410 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5411 | if test "$cross_compiling" = yes; then |
| 5412 | : |
| 5413 | else |
| 5414 | cat >conftest.$ac_ext <<_ACEOF |
| 5415 | /* confdefs.h. */ |
| 5416 | _ACEOF |
| 5417 | cat confdefs.h >>conftest.$ac_ext |
| 5418 | cat >>conftest.$ac_ext <<_ACEOF |
| 5419 | /* end confdefs.h. */ |
| 5420 | #include <ctype.h> |
| 5421 | #include <stdlib.h> |
| 5422 | #if ((' ' & 0x0FF) == 0x020) |
| 5423 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5424 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5425 | #else |
| 5426 | # define ISLOWER(c) \ |
| 5427 | (('a' <= (c) && (c) <= 'i') \ |
| 5428 | || ('j' <= (c) && (c) <= 'r') \ |
| 5429 | || ('s' <= (c) && (c) <= 'z')) |
| 5430 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5431 | #endif |
| 5432 | |
| 5433 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5434 | int |
| 5435 | main () |
| 5436 | { |
| 5437 | int i; |
| 5438 | for (i = 0; i < 256; i++) |
| 5439 | if (XOR (islower (i), ISLOWER (i)) |
| 5440 | || toupper (i) != TOUPPER (i)) |
| 5441 | return 2; |
| 5442 | return 0; |
| 5443 | } |
| 5444 | _ACEOF |
| 5445 | rm -f conftest$ac_exeext |
| 5446 | if { (ac_try="$ac_link" |
| 5447 | case "(($ac_try" in |
| 5448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5449 | *) ac_try_echo=$ac_try;; |
| 5450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5452 | (eval "$ac_link") 2>&5 |
| 5453 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5456 | { (case "(($ac_try" in |
| 5457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5458 | *) ac_try_echo=$ac_try;; |
| 5459 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5461 | (eval "$ac_try") 2>&5 |
| 5462 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5464 | (exit $ac_status); }; }; then |
| 5465 | : |
| 5466 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5467 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5468 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5470 | |
| 5471 | ( exit $ac_status ) |
| 5472 | ac_cv_header_stdc=no |
| 5473 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5475 | fi |
| 5476 | |
| 5477 | |
| 5478 | fi |
| 5479 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5480 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5481 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5482 | if test $ac_cv_header_stdc = yes; then |
| 5483 | |
| 5484 | cat >>confdefs.h <<\_ACEOF |
| 5485 | #define STDC_HEADERS 1 |
| 5486 | _ACEOF |
| 5487 | |
| 5488 | fi |
| 5489 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5490 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | |
| 5499 | |
| 5500 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5501 | inttypes.h stdint.h unistd.h |
| 5502 | do |
| 5503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5508 | else |
| 5509 | cat >conftest.$ac_ext <<_ACEOF |
| 5510 | /* confdefs.h. */ |
| 5511 | _ACEOF |
| 5512 | cat confdefs.h >>conftest.$ac_ext |
| 5513 | cat >>conftest.$ac_ext <<_ACEOF |
| 5514 | /* end confdefs.h. */ |
| 5515 | $ac_includes_default |
| 5516 | |
| 5517 | #include <$ac_header> |
| 5518 | _ACEOF |
| 5519 | rm -f conftest.$ac_objext |
| 5520 | if { (ac_try="$ac_compile" |
| 5521 | case "(($ac_try" in |
| 5522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5523 | *) ac_try_echo=$ac_try;; |
| 5524 | esac |
| 5525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5526 | (eval "$ac_compile") 2>conftest.er1 |
| 5527 | ac_status=$? |
| 5528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5529 | rm -f conftest.er1 |
| 5530 | cat conftest.err >&5 |
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5532 | (exit $ac_status); } && { |
| 5533 | test -z "$ac_c_werror_flag" || |
| 5534 | test ! -s conftest.err |
| 5535 | } && test -s conftest.$ac_objext; then |
| 5536 | eval "$as_ac_Header=yes" |
| 5537 | else |
| 5538 | echo "$as_me: failed program was:" >&5 |
| 5539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5540 | |
| 5541 | eval "$as_ac_Header=no" |
| 5542 | fi |
| 5543 | |
| 5544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5545 | fi |
| 5546 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5548 | echo "${ECHO_T}$ac_res" >&6; } |
| 5549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5550 | cat >>confdefs.h <<_ACEOF |
| 5551 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5552 | _ACEOF |
| 5553 | |
| 5554 | fi |
| 5555 | |
| 5556 | done |
| 5557 | |
| 5558 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5560 | |
| 5561 | |
| 5562 | |
| 5563 | |
| 5564 | |
| 5565 | |
| 5566 | |
| 5567 | |
| 5568 | |
| 5569 | |
| 5570 | |
| 5571 | |
| 5572 | |
| 5573 | |
| 5574 | |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5595 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5596 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5597 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5598 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5607 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5608 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5609 | |
| 5610 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5611 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5612 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5613 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5614 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5615 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5616 | 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] | 5617 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5618 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5619 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5620 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5621 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5622 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 5623 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5624 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5625 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5626 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5627 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5628 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5632 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5633 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5635 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5638 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5641 | /* confdefs.h. */ |
| 5642 | _ACEOF |
| 5643 | cat confdefs.h >>conftest.$ac_ext |
| 5644 | cat >>conftest.$ac_ext <<_ACEOF |
| 5645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | $ac_includes_default |
| 5647 | #include <$ac_header> |
| 5648 | _ACEOF |
| 5649 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5650 | if { (ac_try="$ac_compile" |
| 5651 | case "(($ac_try" in |
| 5652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5653 | *) ac_try_echo=$ac_try;; |
| 5654 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5656 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5657 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5659 | rm -f conftest.er1 |
| 5660 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5662 | (exit $ac_status); } && { |
| 5663 | test -z "$ac_c_werror_flag" || |
| 5664 | test ! -s conftest.err |
| 5665 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5666 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5667 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5670 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5671 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5672 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5673 | |
| 5674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5675 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5676 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5677 | |
| 5678 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5679 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5680 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5682 | /* confdefs.h. */ |
| 5683 | _ACEOF |
| 5684 | cat confdefs.h >>conftest.$ac_ext |
| 5685 | cat >>conftest.$ac_ext <<_ACEOF |
| 5686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | #include <$ac_header> |
| 5688 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5689 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5690 | case "(($ac_try" in |
| 5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5692 | *) ac_try_echo=$ac_try;; |
| 5693 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5695 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5696 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5697 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | rm -f conftest.er1 |
| 5699 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5701 | (exit $ac_status); } >/dev/null && { |
| 5702 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5703 | test ! -s conftest.err |
| 5704 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5705 | ac_header_preproc=yes |
| 5706 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5710 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5711 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5713 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5715 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5716 | |
| 5717 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5718 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5719 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5720 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5721 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5723 | 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] | 5724 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5725 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5726 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5727 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5728 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5729 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5730 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5731 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5732 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5733 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5734 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5736 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5737 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5738 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5739 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5740 | ## -------------------------------------- ## |
| 5741 | ## Report this to http://bugs.python.org/ ## |
| 5742 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5743 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5744 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5745 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5747 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5751 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5752 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5753 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5754 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5756 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5757 | |
| 5758 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5759 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5760 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5761 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5762 | _ACEOF |
| 5763 | |
| 5764 | fi |
| 5765 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5766 | done |
| 5767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5773 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5774 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5775 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5776 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5777 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5782 | /* confdefs.h. */ |
| 5783 | _ACEOF |
| 5784 | cat confdefs.h >>conftest.$ac_ext |
| 5785 | cat >>conftest.$ac_ext <<_ACEOF |
| 5786 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5787 | #include <sys/types.h> |
| 5788 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5790 | int |
| 5791 | main () |
| 5792 | { |
| 5793 | if ((DIR *) 0) |
| 5794 | return 0; |
| 5795 | ; |
| 5796 | return 0; |
| 5797 | } |
| 5798 | _ACEOF |
| 5799 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5800 | if { (ac_try="$ac_compile" |
| 5801 | case "(($ac_try" in |
| 5802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5803 | *) ac_try_echo=$ac_try;; |
| 5804 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5806 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5809 | rm -f conftest.er1 |
| 5810 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5812 | (exit $ac_status); } && { |
| 5813 | test -z "$ac_c_werror_flag" || |
| 5814 | test ! -s conftest.err |
| 5815 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5816 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5817 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5820 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5821 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5822 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5823 | |
| 5824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5825 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5826 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5828 | echo "${ECHO_T}$ac_res" >&6; } |
| 5829 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5830 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5831 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | _ACEOF |
| 5833 | |
| 5834 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5836 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5837 | done |
| 5838 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5839 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5840 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5841 | 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] | 5842 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5846 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5847 | /* confdefs.h. */ |
| 5848 | _ACEOF |
| 5849 | cat confdefs.h >>conftest.$ac_ext |
| 5850 | cat >>conftest.$ac_ext <<_ACEOF |
| 5851 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5852 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5853 | /* Override any GCC internal prototype to avoid an error. |
| 5854 | Use char because int might match the return type of a GCC |
| 5855 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | #ifdef __cplusplus |
| 5857 | extern "C" |
| 5858 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | int |
| 5861 | main () |
| 5862 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5863 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5864 | ; |
| 5865 | return 0; |
| 5866 | } |
| 5867 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5868 | for ac_lib in '' dir; do |
| 5869 | if test -z "$ac_lib"; then |
| 5870 | ac_res="none required" |
| 5871 | else |
| 5872 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5873 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5874 | fi |
| 5875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5876 | if { (ac_try="$ac_link" |
| 5877 | case "(($ac_try" in |
| 5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5879 | *) ac_try_echo=$ac_try;; |
| 5880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5882 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5883 | ac_status=$? |
| 5884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5885 | rm -f conftest.er1 |
| 5886 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5888 | (exit $ac_status); } && { |
| 5889 | test -z "$ac_c_werror_flag" || |
| 5890 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5891 | } && test -s conftest$ac_exeext && |
| 5892 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5893 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5894 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5897 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5898 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5899 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5900 | |
| 5901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5902 | conftest$ac_exeext |
| 5903 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5904 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5906 | done |
| 5907 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5908 | : |
| 5909 | else |
| 5910 | ac_cv_search_opendir=no |
| 5911 | fi |
| 5912 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | LIBS=$ac_func_search_save_LIBS |
| 5914 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5915 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5916 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5917 | ac_res=$ac_cv_search_opendir |
| 5918 | if test "$ac_res" != no; then |
| 5919 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5920 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5921 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5922 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5923 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5924 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5925 | 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] | 5926 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | else |
| 5929 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5931 | /* confdefs.h. */ |
| 5932 | _ACEOF |
| 5933 | cat confdefs.h >>conftest.$ac_ext |
| 5934 | cat >>conftest.$ac_ext <<_ACEOF |
| 5935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5937 | /* Override any GCC internal prototype to avoid an error. |
| 5938 | Use char because int might match the return type of a GCC |
| 5939 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5940 | #ifdef __cplusplus |
| 5941 | extern "C" |
| 5942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | int |
| 5945 | main () |
| 5946 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5947 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5948 | ; |
| 5949 | return 0; |
| 5950 | } |
| 5951 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5952 | for ac_lib in '' x; do |
| 5953 | if test -z "$ac_lib"; then |
| 5954 | ac_res="none required" |
| 5955 | else |
| 5956 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5958 | fi |
| 5959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5960 | if { (ac_try="$ac_link" |
| 5961 | case "(($ac_try" in |
| 5962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5963 | *) ac_try_echo=$ac_try;; |
| 5964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5966 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5967 | ac_status=$? |
| 5968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5969 | rm -f conftest.er1 |
| 5970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5972 | (exit $ac_status); } && { |
| 5973 | test -z "$ac_c_werror_flag" || |
| 5974 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5975 | } && test -s conftest$ac_exeext && |
| 5976 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5977 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5978 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5979 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5981 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5982 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5983 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5984 | |
| 5985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5986 | conftest$ac_exeext |
| 5987 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5988 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5989 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5990 | done |
| 5991 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5992 | : |
| 5993 | else |
| 5994 | ac_cv_search_opendir=no |
| 5995 | fi |
| 5996 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5997 | LIBS=$ac_func_search_save_LIBS |
| 5998 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5999 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6000 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6001 | ac_res=$ac_cv_search_opendir |
| 6002 | if test "$ac_res" != no; then |
| 6003 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6004 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6005 | fi |
| 6006 | |
| 6007 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6008 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6009 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6010 | 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] | 6011 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6013 | else |
| 6014 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6015 | /* confdefs.h. */ |
| 6016 | _ACEOF |
| 6017 | cat confdefs.h >>conftest.$ac_ext |
| 6018 | cat >>conftest.$ac_ext <<_ACEOF |
| 6019 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6020 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6021 | int |
| 6022 | main () |
| 6023 | { |
| 6024 | return makedev(0, 0); |
| 6025 | ; |
| 6026 | return 0; |
| 6027 | } |
| 6028 | _ACEOF |
| 6029 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6030 | if { (ac_try="$ac_link" |
| 6031 | case "(($ac_try" in |
| 6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6033 | *) ac_try_echo=$ac_try;; |
| 6034 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6036 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6039 | rm -f conftest.er1 |
| 6040 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6042 | (exit $ac_status); } && { |
| 6043 | test -z "$ac_c_werror_flag" || |
| 6044 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6045 | } && test -s conftest$ac_exeext && |
| 6046 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6047 | ac_cv_header_sys_types_h_makedev=yes |
| 6048 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6051 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6052 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6053 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6054 | |
| 6055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6056 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6057 | |
| 6058 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6059 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6060 | 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] | 6061 | |
| 6062 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6063 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6064 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6065 | 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] | 6066 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6068 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6069 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6070 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6071 | else |
| 6072 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6073 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6074 | 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] | 6075 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6076 | /* confdefs.h. */ |
| 6077 | _ACEOF |
| 6078 | cat confdefs.h >>conftest.$ac_ext |
| 6079 | cat >>conftest.$ac_ext <<_ACEOF |
| 6080 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6081 | $ac_includes_default |
| 6082 | #include <sys/mkdev.h> |
| 6083 | _ACEOF |
| 6084 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6085 | if { (ac_try="$ac_compile" |
| 6086 | case "(($ac_try" in |
| 6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6088 | *) ac_try_echo=$ac_try;; |
| 6089 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6091 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6094 | rm -f conftest.er1 |
| 6095 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6097 | (exit $ac_status); } && { |
| 6098 | test -z "$ac_c_werror_flag" || |
| 6099 | test ! -s conftest.err |
| 6100 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6101 | ac_header_compiler=yes |
| 6102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6106 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6107 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6108 | |
| 6109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6110 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6111 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6112 | |
| 6113 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6114 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6115 | 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] | 6116 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6117 | /* confdefs.h. */ |
| 6118 | _ACEOF |
| 6119 | cat confdefs.h >>conftest.$ac_ext |
| 6120 | cat >>conftest.$ac_ext <<_ACEOF |
| 6121 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6122 | #include <sys/mkdev.h> |
| 6123 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6124 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6125 | case "(($ac_try" in |
| 6126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6127 | *) ac_try_echo=$ac_try;; |
| 6128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6131 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6132 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6133 | rm -f conftest.er1 |
| 6134 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6136 | (exit $ac_status); } >/dev/null && { |
| 6137 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6138 | test ! -s conftest.err |
| 6139 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6140 | ac_header_preproc=yes |
| 6141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6144 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6145 | ac_header_preproc=no |
| 6146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6147 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6148 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6149 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6150 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6151 | |
| 6152 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6153 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6154 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6155 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6156 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6157 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6158 | 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] | 6159 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6160 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6161 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6162 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6163 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6164 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6165 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6166 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6167 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6168 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6169 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6170 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6171 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6172 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6173 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6174 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6175 | ## -------------------------------------- ## |
| 6176 | ## Report this to http://bugs.python.org/ ## |
| 6177 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6178 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6179 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6180 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6181 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6182 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6183 | 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] | 6184 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6186 | else |
| 6187 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6188 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6190 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6191 | |
| 6192 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6193 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6194 | |
| 6195 | cat >>confdefs.h <<\_ACEOF |
| 6196 | #define MAJOR_IN_MKDEV 1 |
| 6197 | _ACEOF |
| 6198 | |
| 6199 | fi |
| 6200 | |
| 6201 | |
| 6202 | |
| 6203 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6204 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6205 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6206 | 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] | 6207 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6209 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6210 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6211 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6212 | else |
| 6213 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6214 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6215 | 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] | 6216 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6217 | /* confdefs.h. */ |
| 6218 | _ACEOF |
| 6219 | cat confdefs.h >>conftest.$ac_ext |
| 6220 | cat >>conftest.$ac_ext <<_ACEOF |
| 6221 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6222 | $ac_includes_default |
| 6223 | #include <sys/sysmacros.h> |
| 6224 | _ACEOF |
| 6225 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6226 | if { (ac_try="$ac_compile" |
| 6227 | case "(($ac_try" in |
| 6228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6229 | *) ac_try_echo=$ac_try;; |
| 6230 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6232 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6235 | rm -f conftest.er1 |
| 6236 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6238 | (exit $ac_status); } && { |
| 6239 | test -z "$ac_c_werror_flag" || |
| 6240 | test ! -s conftest.err |
| 6241 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6242 | ac_header_compiler=yes |
| 6243 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6246 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6247 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6248 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6249 | |
| 6250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6252 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | |
| 6254 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6255 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6256 | 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] | 6257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6258 | /* confdefs.h. */ |
| 6259 | _ACEOF |
| 6260 | cat confdefs.h >>conftest.$ac_ext |
| 6261 | cat >>conftest.$ac_ext <<_ACEOF |
| 6262 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6263 | #include <sys/sysmacros.h> |
| 6264 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6265 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6266 | case "(($ac_try" in |
| 6267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6268 | *) ac_try_echo=$ac_try;; |
| 6269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6272 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6273 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6274 | rm -f conftest.er1 |
| 6275 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6277 | (exit $ac_status); } >/dev/null && { |
| 6278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6279 | test ! -s conftest.err |
| 6280 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6281 | ac_header_preproc=yes |
| 6282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6285 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6286 | ac_header_preproc=no |
| 6287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6288 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6289 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6290 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6291 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6292 | |
| 6293 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6295 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6296 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6297 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6298 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6299 | 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] | 6300 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6301 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6302 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6303 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6304 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6305 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6306 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6307 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6308 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6309 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6310 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6311 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6312 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6313 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6314 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6315 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6316 | ## -------------------------------------- ## |
| 6317 | ## Report this to http://bugs.python.org/ ## |
| 6318 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6319 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6320 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6321 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6323 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6324 | 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] | 6325 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6327 | else |
| 6328 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6329 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6330 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6331 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6332 | |
| 6333 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6334 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6335 | |
| 6336 | cat >>confdefs.h <<\_ACEOF |
| 6337 | #define MAJOR_IN_SYSMACROS 1 |
| 6338 | _ACEOF |
| 6339 | |
| 6340 | fi |
| 6341 | |
| 6342 | |
| 6343 | fi |
| 6344 | fi |
| 6345 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6346 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6347 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6348 | |
| 6349 | for ac_header in term.h |
| 6350 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6351 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6352 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6356 | else |
| 6357 | cat >conftest.$ac_ext <<_ACEOF |
| 6358 | /* confdefs.h. */ |
| 6359 | _ACEOF |
| 6360 | cat confdefs.h >>conftest.$ac_ext |
| 6361 | cat >>conftest.$ac_ext <<_ACEOF |
| 6362 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6363 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6364 | #ifdef HAVE_CURSES_H |
| 6365 | #include <curses.h> |
| 6366 | #endif |
| 6367 | |
| 6368 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6369 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6370 | _ACEOF |
| 6371 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6372 | if { (ac_try="$ac_compile" |
| 6373 | case "(($ac_try" in |
| 6374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6375 | *) ac_try_echo=$ac_try;; |
| 6376 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6378 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6379 | ac_status=$? |
| 6380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6381 | rm -f conftest.er1 |
| 6382 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6384 | (exit $ac_status); } && { |
| 6385 | test -z "$ac_c_werror_flag" || |
| 6386 | test ! -s conftest.err |
| 6387 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6388 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6389 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6390 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6393 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6394 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6395 | |
| 6396 | 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] | 6397 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6400 | echo "${ECHO_T}$ac_res" >&6; } |
| 6401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6402 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6404 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6405 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6406 | fi |
| 6407 | |
| 6408 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6409 | |
| 6410 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6411 | # On Linux, netlink.h requires asm/types.h |
| 6412 | |
| 6413 | for ac_header in linux/netlink.h |
| 6414 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6416 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6418 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6420 | else |
| 6421 | cat >conftest.$ac_ext <<_ACEOF |
| 6422 | /* confdefs.h. */ |
| 6423 | _ACEOF |
| 6424 | cat confdefs.h >>conftest.$ac_ext |
| 6425 | cat >>conftest.$ac_ext <<_ACEOF |
| 6426 | /* end confdefs.h. */ |
| 6427 | |
| 6428 | #ifdef HAVE_ASM_TYPES_H |
| 6429 | #include <asm/types.h> |
| 6430 | #endif |
| 6431 | #ifdef HAVE_SYS_SOCKET_H |
| 6432 | #include <sys/socket.h> |
| 6433 | #endif |
| 6434 | |
| 6435 | |
| 6436 | #include <$ac_header> |
| 6437 | _ACEOF |
| 6438 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6439 | if { (ac_try="$ac_compile" |
| 6440 | case "(($ac_try" in |
| 6441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6442 | *) ac_try_echo=$ac_try;; |
| 6443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6445 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6446 | ac_status=$? |
| 6447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6448 | rm -f conftest.er1 |
| 6449 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6451 | (exit $ac_status); } && { |
| 6452 | test -z "$ac_c_werror_flag" || |
| 6453 | test ! -s conftest.err |
| 6454 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6455 | eval "$as_ac_Header=yes" |
| 6456 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6457 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6460 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6461 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6462 | |
| 6463 | 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] | 6464 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6465 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6466 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6467 | echo "${ECHO_T}$ac_res" >&6; } |
| 6468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6469 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6471 | _ACEOF |
| 6472 | |
| 6473 | fi |
| 6474 | |
| 6475 | done |
| 6476 | |
| 6477 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6478 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6479 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6480 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6481 | 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] | 6482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6483 | /* confdefs.h. */ |
| 6484 | _ACEOF |
| 6485 | cat confdefs.h >>conftest.$ac_ext |
| 6486 | cat >>conftest.$ac_ext <<_ACEOF |
| 6487 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6488 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6489 | |
| 6490 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6492 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6493 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6495 | |
| 6496 | |
| 6497 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6498 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6500 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6501 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6502 | fi |
| 6503 | rm -f conftest* |
| 6504 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6505 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6506 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6507 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6508 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6509 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6510 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6512 | /* confdefs.h. */ |
| 6513 | _ACEOF |
| 6514 | cat confdefs.h >>conftest.$ac_ext |
| 6515 | cat >>conftest.$ac_ext <<_ACEOF |
| 6516 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6517 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6518 | int |
| 6519 | main () |
| 6520 | { |
| 6521 | makedev(0, 0) |
| 6522 | ; |
| 6523 | return 0; |
| 6524 | } |
| 6525 | _ACEOF |
| 6526 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6527 | if { (ac_try="$ac_link" |
| 6528 | case "(($ac_try" in |
| 6529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6530 | *) ac_try_echo=$ac_try;; |
| 6531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6533 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6536 | rm -f conftest.er1 |
| 6537 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6539 | (exit $ac_status); } && { |
| 6540 | test -z "$ac_c_werror_flag" || |
| 6541 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6542 | } && test -s conftest$ac_exeext && |
| 6543 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6544 | ac_cv_has_makedev=yes |
| 6545 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6549 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6551 | |
| 6552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6553 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6554 | if test "$ac_cv_has_makedev" = "no"; then |
| 6555 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6557 | /* confdefs.h. */ |
| 6558 | _ACEOF |
| 6559 | cat confdefs.h >>conftest.$ac_ext |
| 6560 | cat >>conftest.$ac_ext <<_ACEOF |
| 6561 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6562 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6563 | #define _OSF_SOURCE 1 |
| 6564 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6565 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6566 | int |
| 6567 | main () |
| 6568 | { |
| 6569 | makedev(0, 0) |
| 6570 | ; |
| 6571 | return 0; |
| 6572 | } |
| 6573 | _ACEOF |
| 6574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6575 | if { (ac_try="$ac_link" |
| 6576 | case "(($ac_try" in |
| 6577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6578 | *) ac_try_echo=$ac_try;; |
| 6579 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6584 | rm -f conftest.er1 |
| 6585 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6587 | (exit $ac_status); } && { |
| 6588 | test -z "$ac_c_werror_flag" || |
| 6589 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6590 | } && test -s conftest$ac_exeext && |
| 6591 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6592 | ac_cv_has_makedev=yes |
| 6593 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6594 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6596 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6597 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6598 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6599 | |
| 6600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6601 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6602 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6603 | |
| 6604 | cat >>confdefs.h <<\_ACEOF |
| 6605 | #define _OSF_SOURCE 1 |
| 6606 | _ACEOF |
| 6607 | |
| 6608 | fi |
| 6609 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6610 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6611 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6612 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6613 | |
| 6614 | cat >>confdefs.h <<\_ACEOF |
| 6615 | #define HAVE_MAKEDEV 1 |
| 6616 | _ACEOF |
| 6617 | |
| 6618 | fi |
| 6619 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6620 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6621 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6622 | # defined, but the compiler does not support pragma redefine_extname, |
| 6623 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6624 | # structures (such as rlimit64) without declaring them. As a |
| 6625 | # work-around, disable LFS on such configurations |
| 6626 | |
| 6627 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6628 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6629 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6631 | /* confdefs.h. */ |
| 6632 | _ACEOF |
| 6633 | cat confdefs.h >>conftest.$ac_ext |
| 6634 | cat >>conftest.$ac_ext <<_ACEOF |
| 6635 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6636 | |
| 6637 | #define _LARGEFILE_SOURCE 1 |
| 6638 | #define _FILE_OFFSET_BITS 64 |
| 6639 | #include <sys/resource.h> |
| 6640 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6641 | int |
| 6642 | main () |
| 6643 | { |
| 6644 | struct rlimit foo; |
| 6645 | ; |
| 6646 | return 0; |
| 6647 | } |
| 6648 | _ACEOF |
| 6649 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6650 | if { (ac_try="$ac_compile" |
| 6651 | case "(($ac_try" in |
| 6652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6653 | *) ac_try_echo=$ac_try;; |
| 6654 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6656 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6657 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6659 | rm -f conftest.er1 |
| 6660 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6662 | (exit $ac_status); } && { |
| 6663 | test -z "$ac_c_werror_flag" || |
| 6664 | test ! -s conftest.err |
| 6665 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6666 | sol_lfs_bug=no |
| 6667 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6670 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6671 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6672 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6673 | |
| 6674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6675 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6676 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6677 | if test "$sol_lfs_bug" = "yes"; then |
| 6678 | use_lfs=no |
| 6679 | fi |
| 6680 | |
| 6681 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6682 | # Two defines needed to enable largefile support on various platforms |
| 6683 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | cat >>confdefs.h <<\_ACEOF |
| 6686 | #define _LARGEFILE_SOURCE 1 |
| 6687 | _ACEOF |
| 6688 | |
| 6689 | |
| 6690 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6691 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6693 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6694 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6695 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6696 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6697 | cat >> confdefs.h <<\EOF |
| 6698 | #if defined(SCO_DS) |
| 6699 | #undef _OFF_T |
| 6700 | #endif |
| 6701 | EOF |
| 6702 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6703 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6704 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6705 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6708 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6709 | cat >conftest.$ac_ext <<_ACEOF |
| 6710 | /* confdefs.h. */ |
| 6711 | _ACEOF |
| 6712 | cat confdefs.h >>conftest.$ac_ext |
| 6713 | cat >>conftest.$ac_ext <<_ACEOF |
| 6714 | /* end confdefs.h. */ |
| 6715 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6716 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6717 | int |
| 6718 | main () |
| 6719 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6720 | if ((ac__type_new_ *) 0) |
| 6721 | return 0; |
| 6722 | if (sizeof (ac__type_new_)) |
| 6723 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6724 | ; |
| 6725 | return 0; |
| 6726 | } |
| 6727 | _ACEOF |
| 6728 | rm -f conftest.$ac_objext |
| 6729 | if { (ac_try="$ac_compile" |
| 6730 | case "(($ac_try" in |
| 6731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6732 | *) ac_try_echo=$ac_try;; |
| 6733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6735 | (eval "$ac_compile") 2>conftest.er1 |
| 6736 | ac_status=$? |
| 6737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6738 | rm -f conftest.er1 |
| 6739 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6741 | (exit $ac_status); } && { |
| 6742 | test -z "$ac_c_werror_flag" || |
| 6743 | test ! -s conftest.err |
| 6744 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6745 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6746 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6749 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6750 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6751 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6752 | |
| 6753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6754 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6755 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6756 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6757 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6760 | |
| 6761 | cat >>confdefs.h <<_ACEOF |
| 6762 | #define mode_t int |
| 6763 | _ACEOF |
| 6764 | |
| 6765 | fi |
| 6766 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6768 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6771 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6772 | cat >conftest.$ac_ext <<_ACEOF |
| 6773 | /* confdefs.h. */ |
| 6774 | _ACEOF |
| 6775 | cat confdefs.h >>conftest.$ac_ext |
| 6776 | cat >>conftest.$ac_ext <<_ACEOF |
| 6777 | /* end confdefs.h. */ |
| 6778 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6779 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6780 | int |
| 6781 | main () |
| 6782 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6783 | if ((ac__type_new_ *) 0) |
| 6784 | return 0; |
| 6785 | if (sizeof (ac__type_new_)) |
| 6786 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6787 | ; |
| 6788 | return 0; |
| 6789 | } |
| 6790 | _ACEOF |
| 6791 | rm -f conftest.$ac_objext |
| 6792 | if { (ac_try="$ac_compile" |
| 6793 | case "(($ac_try" in |
| 6794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6795 | *) ac_try_echo=$ac_try;; |
| 6796 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6798 | (eval "$ac_compile") 2>conftest.er1 |
| 6799 | ac_status=$? |
| 6800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6801 | rm -f conftest.er1 |
| 6802 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6804 | (exit $ac_status); } && { |
| 6805 | test -z "$ac_c_werror_flag" || |
| 6806 | test ! -s conftest.err |
| 6807 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6808 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6809 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6812 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6813 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6814 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6815 | |
| 6816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6817 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6818 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6819 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6820 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6821 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | |
| 6824 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6825 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | _ACEOF |
| 6827 | |
| 6828 | fi |
| 6829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6830 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6831 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6832 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6835 | cat >conftest.$ac_ext <<_ACEOF |
| 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
| 6841 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6842 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6843 | int |
| 6844 | main () |
| 6845 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6846 | if ((ac__type_new_ *) 0) |
| 6847 | return 0; |
| 6848 | if (sizeof (ac__type_new_)) |
| 6849 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6850 | ; |
| 6851 | return 0; |
| 6852 | } |
| 6853 | _ACEOF |
| 6854 | rm -f conftest.$ac_objext |
| 6855 | if { (ac_try="$ac_compile" |
| 6856 | case "(($ac_try" in |
| 6857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6858 | *) ac_try_echo=$ac_try;; |
| 6859 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6861 | (eval "$ac_compile") 2>conftest.er1 |
| 6862 | ac_status=$? |
| 6863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6864 | rm -f conftest.er1 |
| 6865 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6867 | (exit $ac_status); } && { |
| 6868 | test -z "$ac_c_werror_flag" || |
| 6869 | test ! -s conftest.err |
| 6870 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6871 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6872 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6873 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6875 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6876 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6878 | |
| 6879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6880 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6881 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6882 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6883 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6884 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6886 | |
| 6887 | cat >>confdefs.h <<_ACEOF |
| 6888 | #define pid_t int |
| 6889 | _ACEOF |
| 6890 | |
| 6891 | fi |
| 6892 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6894 | 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] | 6895 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | else |
| 6898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6899 | /* confdefs.h. */ |
| 6900 | _ACEOF |
| 6901 | cat confdefs.h >>conftest.$ac_ext |
| 6902 | cat >>conftest.$ac_ext <<_ACEOF |
| 6903 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6904 | #include <sys/types.h> |
| 6905 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | int |
| 6908 | main () |
| 6909 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6910 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | ; |
| 6912 | return 0; |
| 6913 | } |
| 6914 | _ACEOF |
| 6915 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6916 | if { (ac_try="$ac_compile" |
| 6917 | case "(($ac_try" in |
| 6918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6919 | *) ac_try_echo=$ac_try;; |
| 6920 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6922 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6925 | rm -f conftest.er1 |
| 6926 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6928 | (exit $ac_status); } && { |
| 6929 | test -z "$ac_c_werror_flag" || |
| 6930 | test ! -s conftest.err |
| 6931 | } && test -s conftest.$ac_objext; then |
| 6932 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6933 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6937 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6938 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6939 | |
| 6940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6941 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6942 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6943 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6946 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6947 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6950 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6951 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6954 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6955 | cat >conftest.$ac_ext <<_ACEOF |
| 6956 | /* confdefs.h. */ |
| 6957 | _ACEOF |
| 6958 | cat confdefs.h >>conftest.$ac_ext |
| 6959 | cat >>conftest.$ac_ext <<_ACEOF |
| 6960 | /* end confdefs.h. */ |
| 6961 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6962 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6963 | int |
| 6964 | main () |
| 6965 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6966 | if ((ac__type_new_ *) 0) |
| 6967 | return 0; |
| 6968 | if (sizeof (ac__type_new_)) |
| 6969 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6970 | ; |
| 6971 | return 0; |
| 6972 | } |
| 6973 | _ACEOF |
| 6974 | rm -f conftest.$ac_objext |
| 6975 | if { (ac_try="$ac_compile" |
| 6976 | case "(($ac_try" in |
| 6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6978 | *) ac_try_echo=$ac_try;; |
| 6979 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6981 | (eval "$ac_compile") 2>conftest.er1 |
| 6982 | ac_status=$? |
| 6983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6984 | rm -f conftest.er1 |
| 6985 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6987 | (exit $ac_status); } && { |
| 6988 | test -z "$ac_c_werror_flag" || |
| 6989 | test ! -s conftest.err |
| 6990 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6991 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6992 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6995 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6996 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6997 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6998 | |
| 6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7000 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7001 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7002 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7003 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7004 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7006 | |
| 7007 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7008 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | _ACEOF |
| 7010 | |
| 7011 | fi |
| 7012 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7014 | 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] | 7015 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | else |
| 7018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7019 | /* confdefs.h. */ |
| 7020 | _ACEOF |
| 7021 | cat confdefs.h >>conftest.$ac_ext |
| 7022 | cat >>conftest.$ac_ext <<_ACEOF |
| 7023 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7024 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7025 | |
| 7026 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7028 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7029 | ac_cv_type_uid_t=yes |
| 7030 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7031 | ac_cv_type_uid_t=no |
| 7032 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7033 | rm -f conftest* |
| 7034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7035 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7036 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7037 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7038 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | cat >>confdefs.h <<\_ACEOF |
| 7041 | #define uid_t int |
| 7042 | _ACEOF |
| 7043 | |
| 7044 | |
| 7045 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7046 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7048 | |
| 7049 | fi |
| 7050 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7051 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7052 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7053 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7054 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7056 | else |
| 7057 | ac_cv_c_uint32_t=no |
| 7058 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7059 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7060 | cat >conftest.$ac_ext <<_ACEOF |
| 7061 | /* confdefs.h. */ |
| 7062 | _ACEOF |
| 7063 | cat confdefs.h >>conftest.$ac_ext |
| 7064 | cat >>conftest.$ac_ext <<_ACEOF |
| 7065 | /* end confdefs.h. */ |
| 7066 | $ac_includes_default |
| 7067 | int |
| 7068 | main () |
| 7069 | { |
| 7070 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7071 | test_array [0] = 0 |
| 7072 | |
| 7073 | ; |
| 7074 | return 0; |
| 7075 | } |
| 7076 | _ACEOF |
| 7077 | rm -f conftest.$ac_objext |
| 7078 | if { (ac_try="$ac_compile" |
| 7079 | case "(($ac_try" in |
| 7080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7081 | *) ac_try_echo=$ac_try;; |
| 7082 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7084 | (eval "$ac_compile") 2>conftest.er1 |
| 7085 | ac_status=$? |
| 7086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7087 | rm -f conftest.er1 |
| 7088 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7090 | (exit $ac_status); } && { |
| 7091 | test -z "$ac_c_werror_flag" || |
| 7092 | test ! -s conftest.err |
| 7093 | } && test -s conftest.$ac_objext; then |
| 7094 | case $ac_type in |
| 7095 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7096 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7097 | esac |
| 7098 | |
| 7099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7100 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7102 | |
| 7103 | |
| 7104 | fi |
| 7105 | |
| 7106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7107 | test "$ac_cv_c_uint32_t" != no && break |
| 7108 | done |
| 7109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7110 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7111 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7112 | case $ac_cv_c_uint32_t in #( |
| 7113 | no|yes) ;; #( |
| 7114 | *) |
| 7115 | |
| 7116 | cat >>confdefs.h <<\_ACEOF |
| 7117 | #define _UINT32_T 1 |
| 7118 | _ACEOF |
| 7119 | |
| 7120 | |
| 7121 | cat >>confdefs.h <<_ACEOF |
| 7122 | #define uint32_t $ac_cv_c_uint32_t |
| 7123 | _ACEOF |
| 7124 | ;; |
| 7125 | esac |
| 7126 | |
| 7127 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7128 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7129 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7130 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7132 | else |
| 7133 | ac_cv_c_uint64_t=no |
| 7134 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7135 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7136 | cat >conftest.$ac_ext <<_ACEOF |
| 7137 | /* confdefs.h. */ |
| 7138 | _ACEOF |
| 7139 | cat confdefs.h >>conftest.$ac_ext |
| 7140 | cat >>conftest.$ac_ext <<_ACEOF |
| 7141 | /* end confdefs.h. */ |
| 7142 | $ac_includes_default |
| 7143 | int |
| 7144 | main () |
| 7145 | { |
| 7146 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7147 | test_array [0] = 0 |
| 7148 | |
| 7149 | ; |
| 7150 | return 0; |
| 7151 | } |
| 7152 | _ACEOF |
| 7153 | rm -f conftest.$ac_objext |
| 7154 | if { (ac_try="$ac_compile" |
| 7155 | case "(($ac_try" in |
| 7156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7157 | *) ac_try_echo=$ac_try;; |
| 7158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7160 | (eval "$ac_compile") 2>conftest.er1 |
| 7161 | ac_status=$? |
| 7162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7163 | rm -f conftest.er1 |
| 7164 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7166 | (exit $ac_status); } && { |
| 7167 | test -z "$ac_c_werror_flag" || |
| 7168 | test ! -s conftest.err |
| 7169 | } && test -s conftest.$ac_objext; then |
| 7170 | case $ac_type in |
| 7171 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7172 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7173 | esac |
| 7174 | |
| 7175 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7176 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7178 | |
| 7179 | |
| 7180 | fi |
| 7181 | |
| 7182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7183 | test "$ac_cv_c_uint64_t" != no && break |
| 7184 | done |
| 7185 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7186 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7187 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7188 | case $ac_cv_c_uint64_t in #( |
| 7189 | no|yes) ;; #( |
| 7190 | *) |
| 7191 | |
| 7192 | cat >>confdefs.h <<\_ACEOF |
| 7193 | #define _UINT64_T 1 |
| 7194 | _ACEOF |
| 7195 | |
| 7196 | |
| 7197 | cat >>confdefs.h <<_ACEOF |
| 7198 | #define uint64_t $ac_cv_c_uint64_t |
| 7199 | _ACEOF |
| 7200 | ;; |
| 7201 | esac |
| 7202 | |
| 7203 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7204 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7205 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7206 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7208 | else |
| 7209 | ac_cv_c_int32_t=no |
| 7210 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7211 | 'long long int' 'short int' 'signed char'; do |
| 7212 | cat >conftest.$ac_ext <<_ACEOF |
| 7213 | /* confdefs.h. */ |
| 7214 | _ACEOF |
| 7215 | cat confdefs.h >>conftest.$ac_ext |
| 7216 | cat >>conftest.$ac_ext <<_ACEOF |
| 7217 | /* end confdefs.h. */ |
| 7218 | $ac_includes_default |
| 7219 | int |
| 7220 | main () |
| 7221 | { |
| 7222 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7223 | test_array [0] = 0 |
| 7224 | |
| 7225 | ; |
| 7226 | return 0; |
| 7227 | } |
| 7228 | _ACEOF |
| 7229 | rm -f conftest.$ac_objext |
| 7230 | if { (ac_try="$ac_compile" |
| 7231 | case "(($ac_try" in |
| 7232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7233 | *) ac_try_echo=$ac_try;; |
| 7234 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7236 | (eval "$ac_compile") 2>conftest.er1 |
| 7237 | ac_status=$? |
| 7238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7239 | rm -f conftest.er1 |
| 7240 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7242 | (exit $ac_status); } && { |
| 7243 | test -z "$ac_c_werror_flag" || |
| 7244 | test ! -s conftest.err |
| 7245 | } && test -s conftest.$ac_objext; then |
| 7246 | cat >conftest.$ac_ext <<_ACEOF |
| 7247 | /* confdefs.h. */ |
| 7248 | _ACEOF |
| 7249 | cat confdefs.h >>conftest.$ac_ext |
| 7250 | cat >>conftest.$ac_ext <<_ACEOF |
| 7251 | /* end confdefs.h. */ |
| 7252 | $ac_includes_default |
| 7253 | int |
| 7254 | main () |
| 7255 | { |
| 7256 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7257 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7258 | test_array [0] = 0 |
| 7259 | |
| 7260 | ; |
| 7261 | return 0; |
| 7262 | } |
| 7263 | _ACEOF |
| 7264 | rm -f conftest.$ac_objext |
| 7265 | if { (ac_try="$ac_compile" |
| 7266 | case "(($ac_try" in |
| 7267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7268 | *) ac_try_echo=$ac_try;; |
| 7269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7271 | (eval "$ac_compile") 2>conftest.er1 |
| 7272 | ac_status=$? |
| 7273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7274 | rm -f conftest.er1 |
| 7275 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7277 | (exit $ac_status); } && { |
| 7278 | test -z "$ac_c_werror_flag" || |
| 7279 | test ! -s conftest.err |
| 7280 | } && test -s conftest.$ac_objext; then |
| 7281 | : |
| 7282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7283 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7285 | |
| 7286 | case $ac_type in |
| 7287 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7288 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7289 | esac |
| 7290 | |
| 7291 | fi |
| 7292 | |
| 7293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7295 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7297 | |
| 7298 | |
| 7299 | fi |
| 7300 | |
| 7301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7302 | test "$ac_cv_c_int32_t" != no && break |
| 7303 | done |
| 7304 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7305 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7306 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7307 | case $ac_cv_c_int32_t in #( |
| 7308 | no|yes) ;; #( |
| 7309 | *) |
| 7310 | |
| 7311 | cat >>confdefs.h <<_ACEOF |
| 7312 | #define int32_t $ac_cv_c_int32_t |
| 7313 | _ACEOF |
| 7314 | ;; |
| 7315 | esac |
| 7316 | |
| 7317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7318 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7319 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7320 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7322 | else |
| 7323 | ac_cv_c_int64_t=no |
| 7324 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7325 | 'long long int' 'short int' 'signed char'; do |
| 7326 | cat >conftest.$ac_ext <<_ACEOF |
| 7327 | /* confdefs.h. */ |
| 7328 | _ACEOF |
| 7329 | cat confdefs.h >>conftest.$ac_ext |
| 7330 | cat >>conftest.$ac_ext <<_ACEOF |
| 7331 | /* end confdefs.h. */ |
| 7332 | $ac_includes_default |
| 7333 | int |
| 7334 | main () |
| 7335 | { |
| 7336 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7337 | test_array [0] = 0 |
| 7338 | |
| 7339 | ; |
| 7340 | return 0; |
| 7341 | } |
| 7342 | _ACEOF |
| 7343 | rm -f conftest.$ac_objext |
| 7344 | if { (ac_try="$ac_compile" |
| 7345 | case "(($ac_try" in |
| 7346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7347 | *) ac_try_echo=$ac_try;; |
| 7348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7350 | (eval "$ac_compile") 2>conftest.er1 |
| 7351 | ac_status=$? |
| 7352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7353 | rm -f conftest.er1 |
| 7354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7356 | (exit $ac_status); } && { |
| 7357 | test -z "$ac_c_werror_flag" || |
| 7358 | test ! -s conftest.err |
| 7359 | } && test -s conftest.$ac_objext; then |
| 7360 | cat >conftest.$ac_ext <<_ACEOF |
| 7361 | /* confdefs.h. */ |
| 7362 | _ACEOF |
| 7363 | cat confdefs.h >>conftest.$ac_ext |
| 7364 | cat >>conftest.$ac_ext <<_ACEOF |
| 7365 | /* end confdefs.h. */ |
| 7366 | $ac_includes_default |
| 7367 | int |
| 7368 | main () |
| 7369 | { |
| 7370 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7371 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7372 | test_array [0] = 0 |
| 7373 | |
| 7374 | ; |
| 7375 | return 0; |
| 7376 | } |
| 7377 | _ACEOF |
| 7378 | rm -f conftest.$ac_objext |
| 7379 | if { (ac_try="$ac_compile" |
| 7380 | case "(($ac_try" in |
| 7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7382 | *) ac_try_echo=$ac_try;; |
| 7383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7385 | (eval "$ac_compile") 2>conftest.er1 |
| 7386 | ac_status=$? |
| 7387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7388 | rm -f conftest.er1 |
| 7389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7391 | (exit $ac_status); } && { |
| 7392 | test -z "$ac_c_werror_flag" || |
| 7393 | test ! -s conftest.err |
| 7394 | } && test -s conftest.$ac_objext; then |
| 7395 | : |
| 7396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7397 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7399 | |
| 7400 | case $ac_type in |
| 7401 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7402 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7403 | esac |
| 7404 | |
| 7405 | fi |
| 7406 | |
| 7407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7408 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7409 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7411 | |
| 7412 | |
| 7413 | fi |
| 7414 | |
| 7415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7416 | test "$ac_cv_c_int64_t" != no && break |
| 7417 | done |
| 7418 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7419 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7420 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7421 | case $ac_cv_c_int64_t in #( |
| 7422 | no|yes) ;; #( |
| 7423 | *) |
| 7424 | |
| 7425 | cat >>confdefs.h <<_ACEOF |
| 7426 | #define int64_t $ac_cv_c_int64_t |
| 7427 | _ACEOF |
| 7428 | ;; |
| 7429 | esac |
| 7430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7431 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7432 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7433 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7435 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7436 | cat >conftest.$ac_ext <<_ACEOF |
| 7437 | /* confdefs.h. */ |
| 7438 | _ACEOF |
| 7439 | cat confdefs.h >>conftest.$ac_ext |
| 7440 | cat >>conftest.$ac_ext <<_ACEOF |
| 7441 | /* end confdefs.h. */ |
| 7442 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7443 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7444 | int |
| 7445 | main () |
| 7446 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7447 | if ((ac__type_new_ *) 0) |
| 7448 | return 0; |
| 7449 | if (sizeof (ac__type_new_)) |
| 7450 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7451 | ; |
| 7452 | return 0; |
| 7453 | } |
| 7454 | _ACEOF |
| 7455 | rm -f conftest.$ac_objext |
| 7456 | if { (ac_try="$ac_compile" |
| 7457 | case "(($ac_try" in |
| 7458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7459 | *) ac_try_echo=$ac_try;; |
| 7460 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7462 | (eval "$ac_compile") 2>conftest.er1 |
| 7463 | ac_status=$? |
| 7464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7465 | rm -f conftest.er1 |
| 7466 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7468 | (exit $ac_status); } && { |
| 7469 | test -z "$ac_c_werror_flag" || |
| 7470 | test ! -s conftest.err |
| 7471 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7472 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7474 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7477 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7479 | |
| 7480 | 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] | 7481 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7482 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7483 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7484 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7485 | |
| 7486 | cat >>confdefs.h <<\_ACEOF |
| 7487 | #define HAVE_SSIZE_T 1 |
| 7488 | _ACEOF |
| 7489 | |
| 7490 | fi |
| 7491 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7492 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7493 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7494 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7496 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7497 | if test "${ac_cv_type_int+set}" = set; then |
| 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7499 | else |
| 7500 | cat >conftest.$ac_ext <<_ACEOF |
| 7501 | /* confdefs.h. */ |
| 7502 | _ACEOF |
| 7503 | cat confdefs.h >>conftest.$ac_ext |
| 7504 | cat >>conftest.$ac_ext <<_ACEOF |
| 7505 | /* end confdefs.h. */ |
| 7506 | $ac_includes_default |
| 7507 | typedef int ac__type_new_; |
| 7508 | int |
| 7509 | main () |
| 7510 | { |
| 7511 | if ((ac__type_new_ *) 0) |
| 7512 | return 0; |
| 7513 | if (sizeof (ac__type_new_)) |
| 7514 | return 0; |
| 7515 | ; |
| 7516 | return 0; |
| 7517 | } |
| 7518 | _ACEOF |
| 7519 | rm -f conftest.$ac_objext |
| 7520 | if { (ac_try="$ac_compile" |
| 7521 | case "(($ac_try" in |
| 7522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7523 | *) ac_try_echo=$ac_try;; |
| 7524 | esac |
| 7525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7526 | (eval "$ac_compile") 2>conftest.er1 |
| 7527 | ac_status=$? |
| 7528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7529 | rm -f conftest.er1 |
| 7530 | cat conftest.err >&5 |
| 7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7532 | (exit $ac_status); } && { |
| 7533 | test -z "$ac_c_werror_flag" || |
| 7534 | test ! -s conftest.err |
| 7535 | } && test -s conftest.$ac_objext; then |
| 7536 | ac_cv_type_int=yes |
| 7537 | else |
| 7538 | echo "$as_me: failed program was:" >&5 |
| 7539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7540 | |
| 7541 | ac_cv_type_int=no |
| 7542 | fi |
| 7543 | |
| 7544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7545 | fi |
| 7546 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7547 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7549 | # The cast to long int works around a bug in the HP C Compiler |
| 7550 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7551 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7552 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7553 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7554 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7555 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 | if test "$cross_compiling" = yes; then |
| 7559 | # Depending upon the size, compute the lo and hi bounds. |
| 7560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7561 | /* confdefs.h. */ |
| 7562 | _ACEOF |
| 7563 | cat confdefs.h >>conftest.$ac_ext |
| 7564 | cat >>conftest.$ac_ext <<_ACEOF |
| 7565 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7567 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | int |
| 7569 | main () |
| 7570 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7571 | 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] | 7572 | test_array [0] = 0 |
| 7573 | |
| 7574 | ; |
| 7575 | return 0; |
| 7576 | } |
| 7577 | _ACEOF |
| 7578 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7579 | if { (ac_try="$ac_compile" |
| 7580 | case "(($ac_try" in |
| 7581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7582 | *) ac_try_echo=$ac_try;; |
| 7583 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7585 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7588 | rm -f conftest.er1 |
| 7589 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7591 | (exit $ac_status); } && { |
| 7592 | test -z "$ac_c_werror_flag" || |
| 7593 | test ! -s conftest.err |
| 7594 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | ac_lo=0 ac_mid=0 |
| 7596 | while :; do |
| 7597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7598 | /* confdefs.h. */ |
| 7599 | _ACEOF |
| 7600 | cat confdefs.h >>conftest.$ac_ext |
| 7601 | cat >>conftest.$ac_ext <<_ACEOF |
| 7602 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7604 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | int |
| 7606 | main () |
| 7607 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7608 | 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] | 7609 | test_array [0] = 0 |
| 7610 | |
| 7611 | ; |
| 7612 | return 0; |
| 7613 | } |
| 7614 | _ACEOF |
| 7615 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7616 | if { (ac_try="$ac_compile" |
| 7617 | case "(($ac_try" in |
| 7618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7619 | *) ac_try_echo=$ac_try;; |
| 7620 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7622 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7625 | rm -f conftest.er1 |
| 7626 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7628 | (exit $ac_status); } && { |
| 7629 | test -z "$ac_c_werror_flag" || |
| 7630 | test ! -s conftest.err |
| 7631 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | ac_hi=$ac_mid; break |
| 7633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7637 | ac_lo=`expr $ac_mid + 1` |
| 7638 | if test $ac_lo -le $ac_mid; then |
| 7639 | ac_lo= ac_hi= |
| 7640 | break |
| 7641 | fi |
| 7642 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7644 | |
| 7645 | 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] | 7646 | done |
| 7647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7650 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7652 | /* confdefs.h. */ |
| 7653 | _ACEOF |
| 7654 | cat confdefs.h >>conftest.$ac_ext |
| 7655 | cat >>conftest.$ac_ext <<_ACEOF |
| 7656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7658 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | int |
| 7660 | main () |
| 7661 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7662 | 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] | 7663 | test_array [0] = 0 |
| 7664 | |
| 7665 | ; |
| 7666 | return 0; |
| 7667 | } |
| 7668 | _ACEOF |
| 7669 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7670 | if { (ac_try="$ac_compile" |
| 7671 | case "(($ac_try" in |
| 7672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7673 | *) ac_try_echo=$ac_try;; |
| 7674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7676 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7679 | rm -f conftest.er1 |
| 7680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7682 | (exit $ac_status); } && { |
| 7683 | test -z "$ac_c_werror_flag" || |
| 7684 | test ! -s conftest.err |
| 7685 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7686 | ac_hi=-1 ac_mid=-1 |
| 7687 | while :; do |
| 7688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7689 | /* confdefs.h. */ |
| 7690 | _ACEOF |
| 7691 | cat confdefs.h >>conftest.$ac_ext |
| 7692 | cat >>conftest.$ac_ext <<_ACEOF |
| 7693 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7694 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7695 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7696 | int |
| 7697 | main () |
| 7698 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7699 | 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] | 7700 | test_array [0] = 0 |
| 7701 | |
| 7702 | ; |
| 7703 | return 0; |
| 7704 | } |
| 7705 | _ACEOF |
| 7706 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7707 | if { (ac_try="$ac_compile" |
| 7708 | case "(($ac_try" in |
| 7709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7710 | *) ac_try_echo=$ac_try;; |
| 7711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7713 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7716 | rm -f conftest.er1 |
| 7717 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7719 | (exit $ac_status); } && { |
| 7720 | test -z "$ac_c_werror_flag" || |
| 7721 | test ! -s conftest.err |
| 7722 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | ac_lo=$ac_mid; break |
| 7724 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7728 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7729 | if test $ac_mid -le $ac_hi; then |
| 7730 | ac_lo= ac_hi= |
| 7731 | break |
| 7732 | fi |
| 7733 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7735 | |
| 7736 | 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] | 7737 | done |
| 7738 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7742 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7744 | |
| 7745 | 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] | 7746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7747 | |
| 7748 | 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] | 7749 | # Binary search between lo and hi bounds. |
| 7750 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7751 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7753 | /* confdefs.h. */ |
| 7754 | _ACEOF |
| 7755 | cat confdefs.h >>conftest.$ac_ext |
| 7756 | cat >>conftest.$ac_ext <<_ACEOF |
| 7757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7759 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | int |
| 7761 | main () |
| 7762 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7763 | 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] | 7764 | test_array [0] = 0 |
| 7765 | |
| 7766 | ; |
| 7767 | return 0; |
| 7768 | } |
| 7769 | _ACEOF |
| 7770 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7771 | if { (ac_try="$ac_compile" |
| 7772 | case "(($ac_try" in |
| 7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7774 | *) ac_try_echo=$ac_try;; |
| 7775 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7780 | rm -f conftest.er1 |
| 7781 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7783 | (exit $ac_status); } && { |
| 7784 | test -z "$ac_c_werror_flag" || |
| 7785 | test ! -s conftest.err |
| 7786 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | ac_hi=$ac_mid |
| 7788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7792 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7794 | |
| 7795 | 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] | 7796 | done |
| 7797 | case $ac_lo in |
| 7798 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7799 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7800 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7801 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7802 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7803 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7804 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7805 | else |
| 7806 | ac_cv_sizeof_int=0 |
| 7807 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7811 | /* confdefs.h. */ |
| 7812 | _ACEOF |
| 7813 | cat confdefs.h >>conftest.$ac_ext |
| 7814 | cat >>conftest.$ac_ext <<_ACEOF |
| 7815 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7816 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7817 | typedef int ac__type_sizeof_; |
| 7818 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7819 | 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] | 7820 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | int |
| 7823 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7824 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | |
| 7826 | FILE *f = fopen ("conftest.val", "w"); |
| 7827 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7828 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7829 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7831 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7832 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7833 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7834 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | } |
| 7836 | else |
| 7837 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7838 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7839 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7840 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7841 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7843 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | |
| 7845 | ; |
| 7846 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7847 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | _ACEOF |
| 7849 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7850 | if { (ac_try="$ac_link" |
| 7851 | case "(($ac_try" in |
| 7852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7853 | *) ac_try_echo=$ac_try;; |
| 7854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7856 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7860 | { (case "(($ac_try" in |
| 7861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7862 | *) ac_try_echo=$ac_try;; |
| 7863 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | (exit $ac_status); }; }; then |
| 7869 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7870 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7871 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7876 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7877 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7878 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7879 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7880 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7881 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7882 | else |
| 7883 | ac_cv_sizeof_int=0 |
| 7884 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7886 | 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] | 7887 | fi |
| 7888 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7889 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7890 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7891 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7892 | |
| 7893 | |
| 7894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7896 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7898 | |
| 7899 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7900 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7901 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7902 | if test "${ac_cv_type_long+set}" = set; then |
| 7903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7904 | else |
| 7905 | cat >conftest.$ac_ext <<_ACEOF |
| 7906 | /* confdefs.h. */ |
| 7907 | _ACEOF |
| 7908 | cat confdefs.h >>conftest.$ac_ext |
| 7909 | cat >>conftest.$ac_ext <<_ACEOF |
| 7910 | /* end confdefs.h. */ |
| 7911 | $ac_includes_default |
| 7912 | typedef long ac__type_new_; |
| 7913 | int |
| 7914 | main () |
| 7915 | { |
| 7916 | if ((ac__type_new_ *) 0) |
| 7917 | return 0; |
| 7918 | if (sizeof (ac__type_new_)) |
| 7919 | return 0; |
| 7920 | ; |
| 7921 | return 0; |
| 7922 | } |
| 7923 | _ACEOF |
| 7924 | rm -f conftest.$ac_objext |
| 7925 | if { (ac_try="$ac_compile" |
| 7926 | case "(($ac_try" in |
| 7927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7928 | *) ac_try_echo=$ac_try;; |
| 7929 | esac |
| 7930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7931 | (eval "$ac_compile") 2>conftest.er1 |
| 7932 | ac_status=$? |
| 7933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7934 | rm -f conftest.er1 |
| 7935 | cat conftest.err >&5 |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7937 | (exit $ac_status); } && { |
| 7938 | test -z "$ac_c_werror_flag" || |
| 7939 | test ! -s conftest.err |
| 7940 | } && test -s conftest.$ac_objext; then |
| 7941 | ac_cv_type_long=yes |
| 7942 | else |
| 7943 | echo "$as_me: failed program was:" >&5 |
| 7944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7945 | |
| 7946 | ac_cv_type_long=no |
| 7947 | fi |
| 7948 | |
| 7949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7950 | fi |
| 7951 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7952 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7954 | # The cast to long int works around a bug in the HP C Compiler |
| 7955 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7956 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7957 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7958 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7959 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | if test "$cross_compiling" = yes; then |
| 7964 | # Depending upon the size, compute the lo and hi bounds. |
| 7965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7966 | /* confdefs.h. */ |
| 7967 | _ACEOF |
| 7968 | cat confdefs.h >>conftest.$ac_ext |
| 7969 | cat >>conftest.$ac_ext <<_ACEOF |
| 7970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7971 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7972 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | int |
| 7974 | main () |
| 7975 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7976 | 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] | 7977 | test_array [0] = 0 |
| 7978 | |
| 7979 | ; |
| 7980 | return 0; |
| 7981 | } |
| 7982 | _ACEOF |
| 7983 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7984 | if { (ac_try="$ac_compile" |
| 7985 | case "(($ac_try" in |
| 7986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7987 | *) ac_try_echo=$ac_try;; |
| 7988 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7993 | rm -f conftest.er1 |
| 7994 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7996 | (exit $ac_status); } && { |
| 7997 | test -z "$ac_c_werror_flag" || |
| 7998 | test ! -s conftest.err |
| 7999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | ac_lo=0 ac_mid=0 |
| 8001 | while :; do |
| 8002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8003 | /* confdefs.h. */ |
| 8004 | _ACEOF |
| 8005 | cat confdefs.h >>conftest.$ac_ext |
| 8006 | cat >>conftest.$ac_ext <<_ACEOF |
| 8007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8009 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | int |
| 8011 | main () |
| 8012 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8013 | 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] | 8014 | test_array [0] = 0 |
| 8015 | |
| 8016 | ; |
| 8017 | return 0; |
| 8018 | } |
| 8019 | _ACEOF |
| 8020 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8021 | if { (ac_try="$ac_compile" |
| 8022 | case "(($ac_try" in |
| 8023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8024 | *) ac_try_echo=$ac_try;; |
| 8025 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8027 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8030 | rm -f conftest.er1 |
| 8031 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8033 | (exit $ac_status); } && { |
| 8034 | test -z "$ac_c_werror_flag" || |
| 8035 | test ! -s conftest.err |
| 8036 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | ac_hi=$ac_mid; break |
| 8038 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8039 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8042 | ac_lo=`expr $ac_mid + 1` |
| 8043 | if test $ac_lo -le $ac_mid; then |
| 8044 | ac_lo= ac_hi= |
| 8045 | break |
| 8046 | fi |
| 8047 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8049 | |
| 8050 | 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] | 8051 | done |
| 8052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8057 | /* confdefs.h. */ |
| 8058 | _ACEOF |
| 8059 | cat confdefs.h >>conftest.$ac_ext |
| 8060 | cat >>conftest.$ac_ext <<_ACEOF |
| 8061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8063 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | int |
| 8065 | main () |
| 8066 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8067 | 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] | 8068 | test_array [0] = 0 |
| 8069 | |
| 8070 | ; |
| 8071 | return 0; |
| 8072 | } |
| 8073 | _ACEOF |
| 8074 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8075 | if { (ac_try="$ac_compile" |
| 8076 | case "(($ac_try" in |
| 8077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8078 | *) ac_try_echo=$ac_try;; |
| 8079 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8081 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8084 | rm -f conftest.er1 |
| 8085 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8087 | (exit $ac_status); } && { |
| 8088 | test -z "$ac_c_werror_flag" || |
| 8089 | test ! -s conftest.err |
| 8090 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | ac_hi=-1 ac_mid=-1 |
| 8092 | while :; do |
| 8093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8094 | /* confdefs.h. */ |
| 8095 | _ACEOF |
| 8096 | cat confdefs.h >>conftest.$ac_ext |
| 8097 | cat >>conftest.$ac_ext <<_ACEOF |
| 8098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8099 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8100 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | int |
| 8102 | main () |
| 8103 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8104 | 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] | 8105 | test_array [0] = 0 |
| 8106 | |
| 8107 | ; |
| 8108 | return 0; |
| 8109 | } |
| 8110 | _ACEOF |
| 8111 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8112 | if { (ac_try="$ac_compile" |
| 8113 | case "(($ac_try" in |
| 8114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8115 | *) ac_try_echo=$ac_try;; |
| 8116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8118 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8121 | rm -f conftest.er1 |
| 8122 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8124 | (exit $ac_status); } && { |
| 8125 | test -z "$ac_c_werror_flag" || |
| 8126 | test ! -s conftest.err |
| 8127 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | ac_lo=$ac_mid; break |
| 8129 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8130 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8132 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8133 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8134 | if test $ac_mid -le $ac_hi; then |
| 8135 | ac_lo= ac_hi= |
| 8136 | break |
| 8137 | fi |
| 8138 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8140 | |
| 8141 | 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] | 8142 | done |
| 8143 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8147 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8149 | |
| 8150 | 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] | 8151 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8152 | |
| 8153 | 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] | 8154 | # Binary search between lo and hi bounds. |
| 8155 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8156 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8158 | /* confdefs.h. */ |
| 8159 | _ACEOF |
| 8160 | cat confdefs.h >>conftest.$ac_ext |
| 8161 | cat >>conftest.$ac_ext <<_ACEOF |
| 8162 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8164 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | int |
| 8166 | main () |
| 8167 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8168 | 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] | 8169 | test_array [0] = 0 |
| 8170 | |
| 8171 | ; |
| 8172 | return 0; |
| 8173 | } |
| 8174 | _ACEOF |
| 8175 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8176 | if { (ac_try="$ac_compile" |
| 8177 | case "(($ac_try" in |
| 8178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8179 | *) ac_try_echo=$ac_try;; |
| 8180 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8182 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8185 | rm -f conftest.er1 |
| 8186 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8188 | (exit $ac_status); } && { |
| 8189 | test -z "$ac_c_werror_flag" || |
| 8190 | test ! -s conftest.err |
| 8191 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | ac_hi=$ac_mid |
| 8193 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8196 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8197 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8198 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8199 | |
| 8200 | 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] | 8201 | done |
| 8202 | case $ac_lo in |
| 8203 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8204 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8205 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8206 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8207 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8208 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8209 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8210 | else |
| 8211 | ac_cv_sizeof_long=0 |
| 8212 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8216 | /* confdefs.h. */ |
| 8217 | _ACEOF |
| 8218 | cat confdefs.h >>conftest.$ac_ext |
| 8219 | cat >>conftest.$ac_ext <<_ACEOF |
| 8220 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8221 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8222 | typedef long ac__type_sizeof_; |
| 8223 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8224 | 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] | 8225 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8226 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | int |
| 8228 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8229 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | |
| 8231 | FILE *f = fopen ("conftest.val", "w"); |
| 8232 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8233 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8234 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8235 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8236 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8237 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8238 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8239 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | } |
| 8241 | else |
| 8242 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8243 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8244 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8245 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8246 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8248 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | |
| 8250 | ; |
| 8251 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8252 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | _ACEOF |
| 8254 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8255 | if { (ac_try="$ac_link" |
| 8256 | case "(($ac_try" in |
| 8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8258 | *) ac_try_echo=$ac_try;; |
| 8259 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8261 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8265 | { (case "(($ac_try" in |
| 8266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8267 | *) ac_try_echo=$ac_try;; |
| 8268 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8270 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 | (exit $ac_status); }; }; then |
| 8274 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8275 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8276 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8281 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8282 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8283 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8284 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8285 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8286 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8287 | else |
| 8288 | ac_cv_sizeof_long=0 |
| 8289 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8291 | 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] | 8292 | fi |
| 8293 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8294 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8295 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8296 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8297 | |
| 8298 | |
| 8299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8301 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8303 | |
| 8304 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8305 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8306 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8307 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8309 | else |
| 8310 | cat >conftest.$ac_ext <<_ACEOF |
| 8311 | /* confdefs.h. */ |
| 8312 | _ACEOF |
| 8313 | cat confdefs.h >>conftest.$ac_ext |
| 8314 | cat >>conftest.$ac_ext <<_ACEOF |
| 8315 | /* end confdefs.h. */ |
| 8316 | $ac_includes_default |
| 8317 | typedef void * ac__type_new_; |
| 8318 | int |
| 8319 | main () |
| 8320 | { |
| 8321 | if ((ac__type_new_ *) 0) |
| 8322 | return 0; |
| 8323 | if (sizeof (ac__type_new_)) |
| 8324 | return 0; |
| 8325 | ; |
| 8326 | return 0; |
| 8327 | } |
| 8328 | _ACEOF |
| 8329 | rm -f conftest.$ac_objext |
| 8330 | if { (ac_try="$ac_compile" |
| 8331 | case "(($ac_try" in |
| 8332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8333 | *) ac_try_echo=$ac_try;; |
| 8334 | esac |
| 8335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8336 | (eval "$ac_compile") 2>conftest.er1 |
| 8337 | ac_status=$? |
| 8338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8339 | rm -f conftest.er1 |
| 8340 | cat conftest.err >&5 |
| 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); } && { |
| 8343 | test -z "$ac_c_werror_flag" || |
| 8344 | test ! -s conftest.err |
| 8345 | } && test -s conftest.$ac_objext; then |
| 8346 | ac_cv_type_void_p=yes |
| 8347 | else |
| 8348 | echo "$as_me: failed program was:" >&5 |
| 8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8350 | |
| 8351 | ac_cv_type_void_p=no |
| 8352 | fi |
| 8353 | |
| 8354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8355 | fi |
| 8356 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8357 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8359 | # The cast to long int works around a bug in the HP C Compiler |
| 8360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8362 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8363 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8364 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | if test "$cross_compiling" = yes; then |
| 8369 | # Depending upon the size, compute the lo and hi bounds. |
| 8370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8371 | /* confdefs.h. */ |
| 8372 | _ACEOF |
| 8373 | cat confdefs.h >>conftest.$ac_ext |
| 8374 | cat >>conftest.$ac_ext <<_ACEOF |
| 8375 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8377 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | int |
| 8379 | main () |
| 8380 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8381 | 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] | 8382 | test_array [0] = 0 |
| 8383 | |
| 8384 | ; |
| 8385 | return 0; |
| 8386 | } |
| 8387 | _ACEOF |
| 8388 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8389 | if { (ac_try="$ac_compile" |
| 8390 | case "(($ac_try" in |
| 8391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8392 | *) ac_try_echo=$ac_try;; |
| 8393 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8395 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8398 | rm -f conftest.er1 |
| 8399 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8401 | (exit $ac_status); } && { |
| 8402 | test -z "$ac_c_werror_flag" || |
| 8403 | test ! -s conftest.err |
| 8404 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | ac_lo=0 ac_mid=0 |
| 8406 | while :; do |
| 8407 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8408 | /* confdefs.h. */ |
| 8409 | _ACEOF |
| 8410 | cat confdefs.h >>conftest.$ac_ext |
| 8411 | cat >>conftest.$ac_ext <<_ACEOF |
| 8412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8414 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | int |
| 8416 | main () |
| 8417 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8418 | 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] | 8419 | test_array [0] = 0 |
| 8420 | |
| 8421 | ; |
| 8422 | return 0; |
| 8423 | } |
| 8424 | _ACEOF |
| 8425 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8426 | if { (ac_try="$ac_compile" |
| 8427 | case "(($ac_try" in |
| 8428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8429 | *) ac_try_echo=$ac_try;; |
| 8430 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8432 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8435 | rm -f conftest.er1 |
| 8436 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8438 | (exit $ac_status); } && { |
| 8439 | test -z "$ac_c_werror_flag" || |
| 8440 | test ! -s conftest.err |
| 8441 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | ac_hi=$ac_mid; break |
| 8443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8447 | ac_lo=`expr $ac_mid + 1` |
| 8448 | if test $ac_lo -le $ac_mid; then |
| 8449 | ac_lo= ac_hi= |
| 8450 | break |
| 8451 | fi |
| 8452 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8454 | |
| 8455 | 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] | 8456 | done |
| 8457 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8460 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8462 | /* confdefs.h. */ |
| 8463 | _ACEOF |
| 8464 | cat confdefs.h >>conftest.$ac_ext |
| 8465 | cat >>conftest.$ac_ext <<_ACEOF |
| 8466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8468 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | int |
| 8470 | main () |
| 8471 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8472 | 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] | 8473 | test_array [0] = 0 |
| 8474 | |
| 8475 | ; |
| 8476 | return 0; |
| 8477 | } |
| 8478 | _ACEOF |
| 8479 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8480 | if { (ac_try="$ac_compile" |
| 8481 | case "(($ac_try" in |
| 8482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8483 | *) ac_try_echo=$ac_try;; |
| 8484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8486 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8489 | rm -f conftest.er1 |
| 8490 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8492 | (exit $ac_status); } && { |
| 8493 | test -z "$ac_c_werror_flag" || |
| 8494 | test ! -s conftest.err |
| 8495 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | ac_hi=-1 ac_mid=-1 |
| 8497 | while :; do |
| 8498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8499 | /* confdefs.h. */ |
| 8500 | _ACEOF |
| 8501 | cat confdefs.h >>conftest.$ac_ext |
| 8502 | cat >>conftest.$ac_ext <<_ACEOF |
| 8503 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8505 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | int |
| 8507 | main () |
| 8508 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8509 | 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] | 8510 | test_array [0] = 0 |
| 8511 | |
| 8512 | ; |
| 8513 | return 0; |
| 8514 | } |
| 8515 | _ACEOF |
| 8516 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8517 | if { (ac_try="$ac_compile" |
| 8518 | case "(($ac_try" in |
| 8519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8520 | *) ac_try_echo=$ac_try;; |
| 8521 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8523 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8526 | rm -f conftest.er1 |
| 8527 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8529 | (exit $ac_status); } && { |
| 8530 | test -z "$ac_c_werror_flag" || |
| 8531 | test ! -s conftest.err |
| 8532 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | ac_lo=$ac_mid; break |
| 8534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8537 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8538 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8539 | if test $ac_mid -le $ac_hi; then |
| 8540 | ac_lo= ac_hi= |
| 8541 | break |
| 8542 | fi |
| 8543 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8545 | |
| 8546 | 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] | 8547 | done |
| 8548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8552 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8554 | |
| 8555 | 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] | 8556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8557 | |
| 8558 | 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] | 8559 | # Binary search between lo and hi bounds. |
| 8560 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8561 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8563 | /* confdefs.h. */ |
| 8564 | _ACEOF |
| 8565 | cat confdefs.h >>conftest.$ac_ext |
| 8566 | cat >>conftest.$ac_ext <<_ACEOF |
| 8567 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8569 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | int |
| 8571 | main () |
| 8572 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8573 | 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] | 8574 | test_array [0] = 0 |
| 8575 | |
| 8576 | ; |
| 8577 | return 0; |
| 8578 | } |
| 8579 | _ACEOF |
| 8580 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8581 | if { (ac_try="$ac_compile" |
| 8582 | case "(($ac_try" in |
| 8583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8584 | *) ac_try_echo=$ac_try;; |
| 8585 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8587 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8590 | rm -f conftest.er1 |
| 8591 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8593 | (exit $ac_status); } && { |
| 8594 | test -z "$ac_c_werror_flag" || |
| 8595 | test ! -s conftest.err |
| 8596 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | ac_hi=$ac_mid |
| 8598 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8601 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8602 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8604 | |
| 8605 | 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] | 8606 | done |
| 8607 | case $ac_lo in |
| 8608 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8609 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8610 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8611 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8612 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8613 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8614 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8615 | else |
| 8616 | ac_cv_sizeof_void_p=0 |
| 8617 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8621 | /* confdefs.h. */ |
| 8622 | _ACEOF |
| 8623 | cat confdefs.h >>conftest.$ac_ext |
| 8624 | cat >>conftest.$ac_ext <<_ACEOF |
| 8625 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8627 | typedef void * ac__type_sizeof_; |
| 8628 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8629 | 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] | 8630 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | int |
| 8633 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8634 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | |
| 8636 | FILE *f = fopen ("conftest.val", "w"); |
| 8637 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8638 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8639 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8640 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8641 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8642 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8643 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8644 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | } |
| 8646 | else |
| 8647 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8648 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8649 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8650 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8651 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8653 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | |
| 8655 | ; |
| 8656 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8657 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | _ACEOF |
| 8659 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8660 | if { (ac_try="$ac_link" |
| 8661 | case "(($ac_try" in |
| 8662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8663 | *) ac_try_echo=$ac_try;; |
| 8664 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8666 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8670 | { (case "(($ac_try" in |
| 8671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8672 | *) ac_try_echo=$ac_try;; |
| 8673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8675 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | (exit $ac_status); }; }; then |
| 8679 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8686 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8687 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8688 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8689 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8690 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8691 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8692 | else |
| 8693 | ac_cv_sizeof_void_p=0 |
| 8694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8696 | 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] | 8697 | fi |
| 8698 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8699 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8700 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8701 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8702 | |
| 8703 | |
| 8704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8706 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8708 | |
| 8709 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8710 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8711 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8712 | if test "${ac_cv_type_short+set}" = set; then |
| 8713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8714 | else |
| 8715 | cat >conftest.$ac_ext <<_ACEOF |
| 8716 | /* confdefs.h. */ |
| 8717 | _ACEOF |
| 8718 | cat confdefs.h >>conftest.$ac_ext |
| 8719 | cat >>conftest.$ac_ext <<_ACEOF |
| 8720 | /* end confdefs.h. */ |
| 8721 | $ac_includes_default |
| 8722 | typedef short ac__type_new_; |
| 8723 | int |
| 8724 | main () |
| 8725 | { |
| 8726 | if ((ac__type_new_ *) 0) |
| 8727 | return 0; |
| 8728 | if (sizeof (ac__type_new_)) |
| 8729 | return 0; |
| 8730 | ; |
| 8731 | return 0; |
| 8732 | } |
| 8733 | _ACEOF |
| 8734 | rm -f conftest.$ac_objext |
| 8735 | if { (ac_try="$ac_compile" |
| 8736 | case "(($ac_try" in |
| 8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8738 | *) ac_try_echo=$ac_try;; |
| 8739 | esac |
| 8740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8741 | (eval "$ac_compile") 2>conftest.er1 |
| 8742 | ac_status=$? |
| 8743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8744 | rm -f conftest.er1 |
| 8745 | cat conftest.err >&5 |
| 8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8747 | (exit $ac_status); } && { |
| 8748 | test -z "$ac_c_werror_flag" || |
| 8749 | test ! -s conftest.err |
| 8750 | } && test -s conftest.$ac_objext; then |
| 8751 | ac_cv_type_short=yes |
| 8752 | else |
| 8753 | echo "$as_me: failed program was:" >&5 |
| 8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8755 | |
| 8756 | ac_cv_type_short=no |
| 8757 | fi |
| 8758 | |
| 8759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8760 | fi |
| 8761 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8762 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8764 | # The cast to long int works around a bug in the HP C Compiler |
| 8765 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8766 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8767 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8768 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8769 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | if test "$cross_compiling" = yes; then |
| 8774 | # Depending upon the size, compute the lo and hi bounds. |
| 8775 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | /* confdefs.h. */ |
| 8777 | _ACEOF |
| 8778 | cat confdefs.h >>conftest.$ac_ext |
| 8779 | cat >>conftest.$ac_ext <<_ACEOF |
| 8780 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8781 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8782 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | int |
| 8784 | main () |
| 8785 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8786 | 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] | 8787 | test_array [0] = 0 |
| 8788 | |
| 8789 | ; |
| 8790 | return 0; |
| 8791 | } |
| 8792 | _ACEOF |
| 8793 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8794 | if { (ac_try="$ac_compile" |
| 8795 | case "(($ac_try" in |
| 8796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8797 | *) ac_try_echo=$ac_try;; |
| 8798 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8800 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8806 | (exit $ac_status); } && { |
| 8807 | test -z "$ac_c_werror_flag" || |
| 8808 | test ! -s conftest.err |
| 8809 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | ac_lo=0 ac_mid=0 |
| 8811 | while :; do |
| 8812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8813 | /* confdefs.h. */ |
| 8814 | _ACEOF |
| 8815 | cat confdefs.h >>conftest.$ac_ext |
| 8816 | cat >>conftest.$ac_ext <<_ACEOF |
| 8817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8819 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | int |
| 8821 | main () |
| 8822 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8823 | 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] | 8824 | test_array [0] = 0 |
| 8825 | |
| 8826 | ; |
| 8827 | return 0; |
| 8828 | } |
| 8829 | _ACEOF |
| 8830 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8831 | if { (ac_try="$ac_compile" |
| 8832 | case "(($ac_try" in |
| 8833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8834 | *) ac_try_echo=$ac_try;; |
| 8835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8840 | rm -f conftest.er1 |
| 8841 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8843 | (exit $ac_status); } && { |
| 8844 | test -z "$ac_c_werror_flag" || |
| 8845 | test ! -s conftest.err |
| 8846 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | ac_hi=$ac_mid; break |
| 8848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8852 | ac_lo=`expr $ac_mid + 1` |
| 8853 | if test $ac_lo -le $ac_mid; then |
| 8854 | ac_lo= ac_hi= |
| 8855 | break |
| 8856 | fi |
| 8857 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8859 | |
| 8860 | 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] | 8861 | done |
| 8862 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8867 | /* confdefs.h. */ |
| 8868 | _ACEOF |
| 8869 | cat confdefs.h >>conftest.$ac_ext |
| 8870 | cat >>conftest.$ac_ext <<_ACEOF |
| 8871 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8873 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | int |
| 8875 | main () |
| 8876 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8877 | 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] | 8878 | test_array [0] = 0 |
| 8879 | |
| 8880 | ; |
| 8881 | return 0; |
| 8882 | } |
| 8883 | _ACEOF |
| 8884 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8885 | if { (ac_try="$ac_compile" |
| 8886 | case "(($ac_try" in |
| 8887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8888 | *) ac_try_echo=$ac_try;; |
| 8889 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8891 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8894 | rm -f conftest.er1 |
| 8895 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8897 | (exit $ac_status); } && { |
| 8898 | test -z "$ac_c_werror_flag" || |
| 8899 | test ! -s conftest.err |
| 8900 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | ac_hi=-1 ac_mid=-1 |
| 8902 | while :; do |
| 8903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8904 | /* confdefs.h. */ |
| 8905 | _ACEOF |
| 8906 | cat confdefs.h >>conftest.$ac_ext |
| 8907 | cat >>conftest.$ac_ext <<_ACEOF |
| 8908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8910 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | int |
| 8912 | main () |
| 8913 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8914 | 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] | 8915 | test_array [0] = 0 |
| 8916 | |
| 8917 | ; |
| 8918 | return 0; |
| 8919 | } |
| 8920 | _ACEOF |
| 8921 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8922 | if { (ac_try="$ac_compile" |
| 8923 | case "(($ac_try" in |
| 8924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8925 | *) ac_try_echo=$ac_try;; |
| 8926 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8928 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8931 | rm -f conftest.er1 |
| 8932 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8934 | (exit $ac_status); } && { |
| 8935 | test -z "$ac_c_werror_flag" || |
| 8936 | test ! -s conftest.err |
| 8937 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | ac_lo=$ac_mid; break |
| 8939 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8942 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8943 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8944 | if test $ac_mid -le $ac_hi; then |
| 8945 | ac_lo= ac_hi= |
| 8946 | break |
| 8947 | fi |
| 8948 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8950 | |
| 8951 | 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] | 8952 | done |
| 8953 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8957 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8959 | |
| 8960 | 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] | 8961 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8962 | |
| 8963 | 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] | 8964 | # Binary search between lo and hi bounds. |
| 8965 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8966 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8968 | /* confdefs.h. */ |
| 8969 | _ACEOF |
| 8970 | cat confdefs.h >>conftest.$ac_ext |
| 8971 | cat >>conftest.$ac_ext <<_ACEOF |
| 8972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8974 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | int |
| 8976 | main () |
| 8977 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8978 | 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] | 8979 | test_array [0] = 0 |
| 8980 | |
| 8981 | ; |
| 8982 | return 0; |
| 8983 | } |
| 8984 | _ACEOF |
| 8985 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8986 | if { (ac_try="$ac_compile" |
| 8987 | case "(($ac_try" in |
| 8988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8989 | *) ac_try_echo=$ac_try;; |
| 8990 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8992 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8995 | rm -f conftest.er1 |
| 8996 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8998 | (exit $ac_status); } && { |
| 8999 | test -z "$ac_c_werror_flag" || |
| 9000 | test ! -s conftest.err |
| 9001 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | ac_hi=$ac_mid |
| 9003 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9007 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9009 | |
| 9010 | 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] | 9011 | done |
| 9012 | case $ac_lo in |
| 9013 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9014 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9015 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9016 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9017 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9018 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9019 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9020 | else |
| 9021 | ac_cv_sizeof_short=0 |
| 9022 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9026 | /* confdefs.h. */ |
| 9027 | _ACEOF |
| 9028 | cat confdefs.h >>conftest.$ac_ext |
| 9029 | cat >>conftest.$ac_ext <<_ACEOF |
| 9030 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9032 | typedef short ac__type_sizeof_; |
| 9033 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9034 | 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] | 9035 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | int |
| 9038 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9039 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | |
| 9041 | FILE *f = fopen ("conftest.val", "w"); |
| 9042 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9043 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9044 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9046 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9047 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9048 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9049 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | } |
| 9051 | else |
| 9052 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9053 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9054 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9055 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9056 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9058 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | |
| 9060 | ; |
| 9061 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9062 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | _ACEOF |
| 9064 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9065 | if { (ac_try="$ac_link" |
| 9066 | case "(($ac_try" in |
| 9067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9068 | *) ac_try_echo=$ac_try;; |
| 9069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9071 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9075 | { (case "(($ac_try" in |
| 9076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9077 | *) ac_try_echo=$ac_try;; |
| 9078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9080 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | (exit $ac_status); }; }; then |
| 9084 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9086 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9091 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9092 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9093 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9094 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9095 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9096 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9097 | else |
| 9098 | ac_cv_sizeof_short=0 |
| 9099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9101 | 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] | 9102 | fi |
| 9103 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9104 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9105 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9106 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9107 | |
| 9108 | |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9111 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9113 | |
| 9114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9115 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9116 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9117 | if test "${ac_cv_type_float+set}" = set; then |
| 9118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9119 | else |
| 9120 | cat >conftest.$ac_ext <<_ACEOF |
| 9121 | /* confdefs.h. */ |
| 9122 | _ACEOF |
| 9123 | cat confdefs.h >>conftest.$ac_ext |
| 9124 | cat >>conftest.$ac_ext <<_ACEOF |
| 9125 | /* end confdefs.h. */ |
| 9126 | $ac_includes_default |
| 9127 | typedef float ac__type_new_; |
| 9128 | int |
| 9129 | main () |
| 9130 | { |
| 9131 | if ((ac__type_new_ *) 0) |
| 9132 | return 0; |
| 9133 | if (sizeof (ac__type_new_)) |
| 9134 | return 0; |
| 9135 | ; |
| 9136 | return 0; |
| 9137 | } |
| 9138 | _ACEOF |
| 9139 | rm -f conftest.$ac_objext |
| 9140 | if { (ac_try="$ac_compile" |
| 9141 | case "(($ac_try" in |
| 9142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9143 | *) ac_try_echo=$ac_try;; |
| 9144 | esac |
| 9145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9146 | (eval "$ac_compile") 2>conftest.er1 |
| 9147 | ac_status=$? |
| 9148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9149 | rm -f conftest.er1 |
| 9150 | cat conftest.err >&5 |
| 9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9152 | (exit $ac_status); } && { |
| 9153 | test -z "$ac_c_werror_flag" || |
| 9154 | test ! -s conftest.err |
| 9155 | } && test -s conftest.$ac_objext; then |
| 9156 | ac_cv_type_float=yes |
| 9157 | else |
| 9158 | echo "$as_me: failed program was:" >&5 |
| 9159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9160 | |
| 9161 | ac_cv_type_float=no |
| 9162 | fi |
| 9163 | |
| 9164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9165 | fi |
| 9166 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9167 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9169 | # The cast to long int works around a bug in the HP C Compiler |
| 9170 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9171 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9172 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9173 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9174 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | if test "$cross_compiling" = yes; then |
| 9179 | # Depending upon the size, compute the lo and hi bounds. |
| 9180 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9181 | /* confdefs.h. */ |
| 9182 | _ACEOF |
| 9183 | cat confdefs.h >>conftest.$ac_ext |
| 9184 | cat >>conftest.$ac_ext <<_ACEOF |
| 9185 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9187 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | int |
| 9189 | main () |
| 9190 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9191 | 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] | 9192 | test_array [0] = 0 |
| 9193 | |
| 9194 | ; |
| 9195 | return 0; |
| 9196 | } |
| 9197 | _ACEOF |
| 9198 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9199 | if { (ac_try="$ac_compile" |
| 9200 | case "(($ac_try" in |
| 9201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9202 | *) ac_try_echo=$ac_try;; |
| 9203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9205 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9208 | rm -f conftest.er1 |
| 9209 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9211 | (exit $ac_status); } && { |
| 9212 | test -z "$ac_c_werror_flag" || |
| 9213 | test ! -s conftest.err |
| 9214 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | ac_lo=0 ac_mid=0 |
| 9216 | while :; do |
| 9217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9218 | /* confdefs.h. */ |
| 9219 | _ACEOF |
| 9220 | cat confdefs.h >>conftest.$ac_ext |
| 9221 | cat >>conftest.$ac_ext <<_ACEOF |
| 9222 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9223 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9224 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | int |
| 9226 | main () |
| 9227 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9228 | 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] | 9229 | test_array [0] = 0 |
| 9230 | |
| 9231 | ; |
| 9232 | return 0; |
| 9233 | } |
| 9234 | _ACEOF |
| 9235 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9236 | if { (ac_try="$ac_compile" |
| 9237 | case "(($ac_try" in |
| 9238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9239 | *) ac_try_echo=$ac_try;; |
| 9240 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9242 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9245 | rm -f conftest.er1 |
| 9246 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9248 | (exit $ac_status); } && { |
| 9249 | test -z "$ac_c_werror_flag" || |
| 9250 | test ! -s conftest.err |
| 9251 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | ac_hi=$ac_mid; break |
| 9253 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9254 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9257 | ac_lo=`expr $ac_mid + 1` |
| 9258 | if test $ac_lo -le $ac_mid; then |
| 9259 | ac_lo= ac_hi= |
| 9260 | break |
| 9261 | fi |
| 9262 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9264 | |
| 9265 | 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] | 9266 | done |
| 9267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9272 | /* confdefs.h. */ |
| 9273 | _ACEOF |
| 9274 | cat confdefs.h >>conftest.$ac_ext |
| 9275 | cat >>conftest.$ac_ext <<_ACEOF |
| 9276 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9278 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 | int |
| 9280 | main () |
| 9281 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9282 | 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] | 9283 | test_array [0] = 0 |
| 9284 | |
| 9285 | ; |
| 9286 | return 0; |
| 9287 | } |
| 9288 | _ACEOF |
| 9289 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9290 | if { (ac_try="$ac_compile" |
| 9291 | case "(($ac_try" in |
| 9292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9293 | *) ac_try_echo=$ac_try;; |
| 9294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9296 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9299 | rm -f conftest.er1 |
| 9300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9302 | (exit $ac_status); } && { |
| 9303 | test -z "$ac_c_werror_flag" || |
| 9304 | test ! -s conftest.err |
| 9305 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | ac_hi=-1 ac_mid=-1 |
| 9307 | while :; do |
| 9308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9309 | /* confdefs.h. */ |
| 9310 | _ACEOF |
| 9311 | cat confdefs.h >>conftest.$ac_ext |
| 9312 | cat >>conftest.$ac_ext <<_ACEOF |
| 9313 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9315 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9316 | int |
| 9317 | main () |
| 9318 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9319 | 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] | 9320 | test_array [0] = 0 |
| 9321 | |
| 9322 | ; |
| 9323 | return 0; |
| 9324 | } |
| 9325 | _ACEOF |
| 9326 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9327 | if { (ac_try="$ac_compile" |
| 9328 | case "(($ac_try" in |
| 9329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9330 | *) ac_try_echo=$ac_try;; |
| 9331 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9333 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9336 | rm -f conftest.er1 |
| 9337 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9339 | (exit $ac_status); } && { |
| 9340 | test -z "$ac_c_werror_flag" || |
| 9341 | test ! -s conftest.err |
| 9342 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | ac_lo=$ac_mid; break |
| 9344 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9345 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9347 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9348 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9349 | if test $ac_mid -le $ac_hi; then |
| 9350 | ac_lo= ac_hi= |
| 9351 | break |
| 9352 | fi |
| 9353 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9355 | |
| 9356 | 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] | 9357 | done |
| 9358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9361 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9362 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9364 | |
| 9365 | 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] | 9366 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9367 | |
| 9368 | 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] | 9369 | # Binary search between lo and hi bounds. |
| 9370 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9371 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
| 9377 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9379 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | int |
| 9381 | main () |
| 9382 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9383 | 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] | 9384 | test_array [0] = 0 |
| 9385 | |
| 9386 | ; |
| 9387 | return 0; |
| 9388 | } |
| 9389 | _ACEOF |
| 9390 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9391 | if { (ac_try="$ac_compile" |
| 9392 | case "(($ac_try" in |
| 9393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9394 | *) ac_try_echo=$ac_try;; |
| 9395 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9400 | rm -f conftest.er1 |
| 9401 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9403 | (exit $ac_status); } && { |
| 9404 | test -z "$ac_c_werror_flag" || |
| 9405 | test ! -s conftest.err |
| 9406 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | ac_hi=$ac_mid |
| 9408 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9412 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9414 | |
| 9415 | 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] | 9416 | done |
| 9417 | case $ac_lo in |
| 9418 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9419 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9420 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9421 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9422 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9424 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9425 | else |
| 9426 | ac_cv_sizeof_float=0 |
| 9427 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9431 | /* confdefs.h. */ |
| 9432 | _ACEOF |
| 9433 | cat confdefs.h >>conftest.$ac_ext |
| 9434 | cat >>conftest.$ac_ext <<_ACEOF |
| 9435 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9437 | typedef float ac__type_sizeof_; |
| 9438 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9439 | 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] | 9440 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | int |
| 9443 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9444 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | |
| 9446 | FILE *f = fopen ("conftest.val", "w"); |
| 9447 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9448 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9449 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9450 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9451 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9452 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9453 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9454 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | } |
| 9456 | else |
| 9457 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9458 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9459 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9460 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9461 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9463 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | |
| 9465 | ; |
| 9466 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9467 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | _ACEOF |
| 9469 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9470 | if { (ac_try="$ac_link" |
| 9471 | case "(($ac_try" in |
| 9472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9473 | *) ac_try_echo=$ac_try;; |
| 9474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9476 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9480 | { (case "(($ac_try" in |
| 9481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9482 | *) ac_try_echo=$ac_try;; |
| 9483 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9485 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | (exit $ac_status); }; }; then |
| 9489 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9490 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9491 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9496 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9497 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9498 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9499 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9500 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9501 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9502 | else |
| 9503 | ac_cv_sizeof_float=0 |
| 9504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9506 | 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] | 9507 | fi |
| 9508 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9509 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9510 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9511 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9512 | |
| 9513 | |
| 9514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9516 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9518 | |
| 9519 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9520 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9521 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9522 | if test "${ac_cv_type_double+set}" = set; then |
| 9523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9524 | else |
| 9525 | cat >conftest.$ac_ext <<_ACEOF |
| 9526 | /* confdefs.h. */ |
| 9527 | _ACEOF |
| 9528 | cat confdefs.h >>conftest.$ac_ext |
| 9529 | cat >>conftest.$ac_ext <<_ACEOF |
| 9530 | /* end confdefs.h. */ |
| 9531 | $ac_includes_default |
| 9532 | typedef double ac__type_new_; |
| 9533 | int |
| 9534 | main () |
| 9535 | { |
| 9536 | if ((ac__type_new_ *) 0) |
| 9537 | return 0; |
| 9538 | if (sizeof (ac__type_new_)) |
| 9539 | return 0; |
| 9540 | ; |
| 9541 | return 0; |
| 9542 | } |
| 9543 | _ACEOF |
| 9544 | rm -f conftest.$ac_objext |
| 9545 | if { (ac_try="$ac_compile" |
| 9546 | case "(($ac_try" in |
| 9547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9548 | *) ac_try_echo=$ac_try;; |
| 9549 | esac |
| 9550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9551 | (eval "$ac_compile") 2>conftest.er1 |
| 9552 | ac_status=$? |
| 9553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9554 | rm -f conftest.er1 |
| 9555 | cat conftest.err >&5 |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); } && { |
| 9558 | test -z "$ac_c_werror_flag" || |
| 9559 | test ! -s conftest.err |
| 9560 | } && test -s conftest.$ac_objext; then |
| 9561 | ac_cv_type_double=yes |
| 9562 | else |
| 9563 | echo "$as_me: failed program was:" >&5 |
| 9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9565 | |
| 9566 | ac_cv_type_double=no |
| 9567 | fi |
| 9568 | |
| 9569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9570 | fi |
| 9571 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9572 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9574 | # The cast to long int works around a bug in the HP C Compiler |
| 9575 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9576 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9577 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9578 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9579 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | if test "$cross_compiling" = yes; then |
| 9584 | # Depending upon the size, compute the lo and hi bounds. |
| 9585 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9586 | /* confdefs.h. */ |
| 9587 | _ACEOF |
| 9588 | cat confdefs.h >>conftest.$ac_ext |
| 9589 | cat >>conftest.$ac_ext <<_ACEOF |
| 9590 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9592 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | int |
| 9594 | main () |
| 9595 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9596 | 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] | 9597 | test_array [0] = 0 |
| 9598 | |
| 9599 | ; |
| 9600 | return 0; |
| 9601 | } |
| 9602 | _ACEOF |
| 9603 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9604 | if { (ac_try="$ac_compile" |
| 9605 | case "(($ac_try" in |
| 9606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9607 | *) ac_try_echo=$ac_try;; |
| 9608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9610 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9613 | rm -f conftest.er1 |
| 9614 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9616 | (exit $ac_status); } && { |
| 9617 | test -z "$ac_c_werror_flag" || |
| 9618 | test ! -s conftest.err |
| 9619 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | ac_lo=0 ac_mid=0 |
| 9621 | while :; do |
| 9622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9623 | /* confdefs.h. */ |
| 9624 | _ACEOF |
| 9625 | cat confdefs.h >>conftest.$ac_ext |
| 9626 | cat >>conftest.$ac_ext <<_ACEOF |
| 9627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9629 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | int |
| 9631 | main () |
| 9632 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9633 | 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] | 9634 | test_array [0] = 0 |
| 9635 | |
| 9636 | ; |
| 9637 | return 0; |
| 9638 | } |
| 9639 | _ACEOF |
| 9640 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9641 | if { (ac_try="$ac_compile" |
| 9642 | case "(($ac_try" in |
| 9643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9644 | *) ac_try_echo=$ac_try;; |
| 9645 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9647 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9650 | rm -f conftest.er1 |
| 9651 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9653 | (exit $ac_status); } && { |
| 9654 | test -z "$ac_c_werror_flag" || |
| 9655 | test ! -s conftest.err |
| 9656 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | ac_hi=$ac_mid; break |
| 9658 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9661 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9662 | ac_lo=`expr $ac_mid + 1` |
| 9663 | if test $ac_lo -le $ac_mid; then |
| 9664 | ac_lo= ac_hi= |
| 9665 | break |
| 9666 | fi |
| 9667 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9669 | |
| 9670 | 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] | 9671 | done |
| 9672 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9675 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9677 | /* confdefs.h. */ |
| 9678 | _ACEOF |
| 9679 | cat confdefs.h >>conftest.$ac_ext |
| 9680 | cat >>conftest.$ac_ext <<_ACEOF |
| 9681 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9683 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | int |
| 9685 | main () |
| 9686 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9687 | 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] | 9688 | test_array [0] = 0 |
| 9689 | |
| 9690 | ; |
| 9691 | return 0; |
| 9692 | } |
| 9693 | _ACEOF |
| 9694 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9695 | if { (ac_try="$ac_compile" |
| 9696 | case "(($ac_try" in |
| 9697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9698 | *) ac_try_echo=$ac_try;; |
| 9699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9701 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9704 | rm -f conftest.er1 |
| 9705 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9707 | (exit $ac_status); } && { |
| 9708 | test -z "$ac_c_werror_flag" || |
| 9709 | test ! -s conftest.err |
| 9710 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9711 | ac_hi=-1 ac_mid=-1 |
| 9712 | while :; do |
| 9713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9714 | /* confdefs.h. */ |
| 9715 | _ACEOF |
| 9716 | cat confdefs.h >>conftest.$ac_ext |
| 9717 | cat >>conftest.$ac_ext <<_ACEOF |
| 9718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9719 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9720 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | int |
| 9722 | main () |
| 9723 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9724 | 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] | 9725 | test_array [0] = 0 |
| 9726 | |
| 9727 | ; |
| 9728 | return 0; |
| 9729 | } |
| 9730 | _ACEOF |
| 9731 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9732 | if { (ac_try="$ac_compile" |
| 9733 | case "(($ac_try" in |
| 9734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9735 | *) ac_try_echo=$ac_try;; |
| 9736 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9738 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9741 | rm -f conftest.er1 |
| 9742 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9744 | (exit $ac_status); } && { |
| 9745 | test -z "$ac_c_werror_flag" || |
| 9746 | test ! -s conftest.err |
| 9747 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | ac_lo=$ac_mid; break |
| 9749 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9753 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9754 | if test $ac_mid -le $ac_hi; then |
| 9755 | ac_lo= ac_hi= |
| 9756 | break |
| 9757 | fi |
| 9758 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9760 | |
| 9761 | 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] | 9762 | done |
| 9763 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9767 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9769 | |
| 9770 | 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] | 9771 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9772 | |
| 9773 | 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] | 9774 | # Binary search between lo and hi bounds. |
| 9775 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9776 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9778 | /* confdefs.h. */ |
| 9779 | _ACEOF |
| 9780 | cat confdefs.h >>conftest.$ac_ext |
| 9781 | cat >>conftest.$ac_ext <<_ACEOF |
| 9782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9784 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 | int |
| 9786 | main () |
| 9787 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9788 | 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] | 9789 | test_array [0] = 0 |
| 9790 | |
| 9791 | ; |
| 9792 | return 0; |
| 9793 | } |
| 9794 | _ACEOF |
| 9795 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9796 | if { (ac_try="$ac_compile" |
| 9797 | case "(($ac_try" in |
| 9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9799 | *) ac_try_echo=$ac_try;; |
| 9800 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9802 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9805 | rm -f conftest.er1 |
| 9806 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9808 | (exit $ac_status); } && { |
| 9809 | test -z "$ac_c_werror_flag" || |
| 9810 | test ! -s conftest.err |
| 9811 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | ac_hi=$ac_mid |
| 9813 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9816 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9817 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9819 | |
| 9820 | 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] | 9821 | done |
| 9822 | case $ac_lo in |
| 9823 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9824 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9825 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9826 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9827 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9828 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9829 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9830 | else |
| 9831 | ac_cv_sizeof_double=0 |
| 9832 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9836 | /* confdefs.h. */ |
| 9837 | _ACEOF |
| 9838 | cat confdefs.h >>conftest.$ac_ext |
| 9839 | cat >>conftest.$ac_ext <<_ACEOF |
| 9840 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9842 | typedef double ac__type_sizeof_; |
| 9843 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9844 | 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] | 9845 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | int |
| 9848 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9849 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | |
| 9851 | FILE *f = fopen ("conftest.val", "w"); |
| 9852 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9853 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9854 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9856 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9857 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9858 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9859 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | } |
| 9861 | else |
| 9862 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9863 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9864 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9866 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9868 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | |
| 9870 | ; |
| 9871 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9872 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | _ACEOF |
| 9874 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9875 | if { (ac_try="$ac_link" |
| 9876 | case "(($ac_try" in |
| 9877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9878 | *) ac_try_echo=$ac_try;; |
| 9879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9881 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9885 | { (case "(($ac_try" in |
| 9886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9887 | *) ac_try_echo=$ac_try;; |
| 9888 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9890 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | (exit $ac_status); }; }; then |
| 9894 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9895 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9896 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9901 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9902 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9904 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9905 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9906 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9907 | else |
| 9908 | ac_cv_sizeof_double=0 |
| 9909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9911 | 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] | 9912 | fi |
| 9913 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9914 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9915 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9916 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9917 | |
| 9918 | |
| 9919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9921 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9923 | |
| 9924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9925 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9926 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9927 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9929 | else |
| 9930 | cat >conftest.$ac_ext <<_ACEOF |
| 9931 | /* confdefs.h. */ |
| 9932 | _ACEOF |
| 9933 | cat confdefs.h >>conftest.$ac_ext |
| 9934 | cat >>conftest.$ac_ext <<_ACEOF |
| 9935 | /* end confdefs.h. */ |
| 9936 | $ac_includes_default |
| 9937 | typedef fpos_t ac__type_new_; |
| 9938 | int |
| 9939 | main () |
| 9940 | { |
| 9941 | if ((ac__type_new_ *) 0) |
| 9942 | return 0; |
| 9943 | if (sizeof (ac__type_new_)) |
| 9944 | return 0; |
| 9945 | ; |
| 9946 | return 0; |
| 9947 | } |
| 9948 | _ACEOF |
| 9949 | rm -f conftest.$ac_objext |
| 9950 | if { (ac_try="$ac_compile" |
| 9951 | case "(($ac_try" in |
| 9952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9953 | *) ac_try_echo=$ac_try;; |
| 9954 | esac |
| 9955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9956 | (eval "$ac_compile") 2>conftest.er1 |
| 9957 | ac_status=$? |
| 9958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9959 | rm -f conftest.er1 |
| 9960 | cat conftest.err >&5 |
| 9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9962 | (exit $ac_status); } && { |
| 9963 | test -z "$ac_c_werror_flag" || |
| 9964 | test ! -s conftest.err |
| 9965 | } && test -s conftest.$ac_objext; then |
| 9966 | ac_cv_type_fpos_t=yes |
| 9967 | else |
| 9968 | echo "$as_me: failed program was:" >&5 |
| 9969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9970 | |
| 9971 | ac_cv_type_fpos_t=no |
| 9972 | fi |
| 9973 | |
| 9974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9975 | fi |
| 9976 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9977 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9979 | # The cast to long int works around a bug in the HP C Compiler |
| 9980 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9981 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9982 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9983 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9984 | 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] | 9985 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | if test "$cross_compiling" = yes; then |
| 9989 | # Depending upon the size, compute the lo and hi bounds. |
| 9990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9991 | /* confdefs.h. */ |
| 9992 | _ACEOF |
| 9993 | cat confdefs.h >>conftest.$ac_ext |
| 9994 | cat >>conftest.$ac_ext <<_ACEOF |
| 9995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9997 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | int |
| 9999 | main () |
| 10000 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10001 | 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] | 10002 | test_array [0] = 0 |
| 10003 | |
| 10004 | ; |
| 10005 | return 0; |
| 10006 | } |
| 10007 | _ACEOF |
| 10008 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10009 | if { (ac_try="$ac_compile" |
| 10010 | case "(($ac_try" in |
| 10011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10012 | *) ac_try_echo=$ac_try;; |
| 10013 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10015 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10018 | rm -f conftest.er1 |
| 10019 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10021 | (exit $ac_status); } && { |
| 10022 | test -z "$ac_c_werror_flag" || |
| 10023 | test ! -s conftest.err |
| 10024 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 | ac_lo=0 ac_mid=0 |
| 10026 | while :; do |
| 10027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10028 | /* confdefs.h. */ |
| 10029 | _ACEOF |
| 10030 | cat confdefs.h >>conftest.$ac_ext |
| 10031 | cat >>conftest.$ac_ext <<_ACEOF |
| 10032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10033 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10034 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | int |
| 10036 | main () |
| 10037 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10038 | 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] | 10039 | test_array [0] = 0 |
| 10040 | |
| 10041 | ; |
| 10042 | return 0; |
| 10043 | } |
| 10044 | _ACEOF |
| 10045 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10046 | if { (ac_try="$ac_compile" |
| 10047 | case "(($ac_try" in |
| 10048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10049 | *) ac_try_echo=$ac_try;; |
| 10050 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10052 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10055 | rm -f conftest.er1 |
| 10056 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10058 | (exit $ac_status); } && { |
| 10059 | test -z "$ac_c_werror_flag" || |
| 10060 | test ! -s conftest.err |
| 10061 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | ac_hi=$ac_mid; break |
| 10063 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10066 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10067 | ac_lo=`expr $ac_mid + 1` |
| 10068 | if test $ac_lo -le $ac_mid; then |
| 10069 | ac_lo= ac_hi= |
| 10070 | break |
| 10071 | fi |
| 10072 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10073 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10074 | |
| 10075 | 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] | 10076 | done |
| 10077 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10082 | /* confdefs.h. */ |
| 10083 | _ACEOF |
| 10084 | cat confdefs.h >>conftest.$ac_ext |
| 10085 | cat >>conftest.$ac_ext <<_ACEOF |
| 10086 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10087 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10088 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10089 | int |
| 10090 | main () |
| 10091 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10092 | 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] | 10093 | test_array [0] = 0 |
| 10094 | |
| 10095 | ; |
| 10096 | return 0; |
| 10097 | } |
| 10098 | _ACEOF |
| 10099 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10100 | if { (ac_try="$ac_compile" |
| 10101 | case "(($ac_try" in |
| 10102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10103 | *) ac_try_echo=$ac_try;; |
| 10104 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10106 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10109 | rm -f conftest.er1 |
| 10110 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10112 | (exit $ac_status); } && { |
| 10113 | test -z "$ac_c_werror_flag" || |
| 10114 | test ! -s conftest.err |
| 10115 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 | ac_hi=-1 ac_mid=-1 |
| 10117 | while :; do |
| 10118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10119 | /* confdefs.h. */ |
| 10120 | _ACEOF |
| 10121 | cat confdefs.h >>conftest.$ac_ext |
| 10122 | cat >>conftest.$ac_ext <<_ACEOF |
| 10123 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10124 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10125 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | int |
| 10127 | main () |
| 10128 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10129 | 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] | 10130 | test_array [0] = 0 |
| 10131 | |
| 10132 | ; |
| 10133 | return 0; |
| 10134 | } |
| 10135 | _ACEOF |
| 10136 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10137 | if { (ac_try="$ac_compile" |
| 10138 | case "(($ac_try" in |
| 10139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10140 | *) ac_try_echo=$ac_try;; |
| 10141 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10143 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10146 | rm -f conftest.er1 |
| 10147 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10149 | (exit $ac_status); } && { |
| 10150 | test -z "$ac_c_werror_flag" || |
| 10151 | test ! -s conftest.err |
| 10152 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | ac_lo=$ac_mid; break |
| 10154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10158 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10159 | if test $ac_mid -le $ac_hi; then |
| 10160 | ac_lo= ac_hi= |
| 10161 | break |
| 10162 | fi |
| 10163 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10164 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10165 | |
| 10166 | 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] | 10167 | done |
| 10168 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10172 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10174 | |
| 10175 | 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] | 10176 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10177 | |
| 10178 | 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] | 10179 | # Binary search between lo and hi bounds. |
| 10180 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10181 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10183 | /* confdefs.h. */ |
| 10184 | _ACEOF |
| 10185 | cat confdefs.h >>conftest.$ac_ext |
| 10186 | cat >>conftest.$ac_ext <<_ACEOF |
| 10187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10189 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10190 | int |
| 10191 | main () |
| 10192 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10193 | 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] | 10194 | test_array [0] = 0 |
| 10195 | |
| 10196 | ; |
| 10197 | return 0; |
| 10198 | } |
| 10199 | _ACEOF |
| 10200 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10201 | if { (ac_try="$ac_compile" |
| 10202 | case "(($ac_try" in |
| 10203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10204 | *) ac_try_echo=$ac_try;; |
| 10205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10210 | rm -f conftest.er1 |
| 10211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10213 | (exit $ac_status); } && { |
| 10214 | test -z "$ac_c_werror_flag" || |
| 10215 | test ! -s conftest.err |
| 10216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | ac_hi=$ac_mid |
| 10218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10222 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10223 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10224 | |
| 10225 | 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] | 10226 | done |
| 10227 | case $ac_lo in |
| 10228 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10229 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10230 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10231 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10232 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10233 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10234 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10235 | else |
| 10236 | ac_cv_sizeof_fpos_t=0 |
| 10237 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10241 | /* confdefs.h. */ |
| 10242 | _ACEOF |
| 10243 | cat confdefs.h >>conftest.$ac_ext |
| 10244 | cat >>conftest.$ac_ext <<_ACEOF |
| 10245 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10247 | typedef fpos_t ac__type_sizeof_; |
| 10248 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10249 | 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] | 10250 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | int |
| 10253 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10254 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | |
| 10256 | FILE *f = fopen ("conftest.val", "w"); |
| 10257 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10258 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10259 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10261 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10262 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10263 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10264 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | } |
| 10266 | else |
| 10267 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10268 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10269 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10270 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10271 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10273 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | |
| 10275 | ; |
| 10276 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10277 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10278 | _ACEOF |
| 10279 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10280 | if { (ac_try="$ac_link" |
| 10281 | case "(($ac_try" in |
| 10282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10283 | *) ac_try_echo=$ac_try;; |
| 10284 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10286 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10290 | { (case "(($ac_try" in |
| 10291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10292 | *) ac_try_echo=$ac_try;; |
| 10293 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | (exit $ac_status); }; }; then |
| 10299 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10300 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10301 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10306 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10307 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10309 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10310 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10311 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10312 | else |
| 10313 | ac_cv_sizeof_fpos_t=0 |
| 10314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10316 | 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] | 10317 | fi |
| 10318 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10319 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10320 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10321 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10322 | |
| 10323 | |
| 10324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10326 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10328 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10329 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10330 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10331 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10332 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10334 | else |
| 10335 | cat >conftest.$ac_ext <<_ACEOF |
| 10336 | /* confdefs.h. */ |
| 10337 | _ACEOF |
| 10338 | cat confdefs.h >>conftest.$ac_ext |
| 10339 | cat >>conftest.$ac_ext <<_ACEOF |
| 10340 | /* end confdefs.h. */ |
| 10341 | $ac_includes_default |
| 10342 | typedef size_t ac__type_new_; |
| 10343 | int |
| 10344 | main () |
| 10345 | { |
| 10346 | if ((ac__type_new_ *) 0) |
| 10347 | return 0; |
| 10348 | if (sizeof (ac__type_new_)) |
| 10349 | return 0; |
| 10350 | ; |
| 10351 | return 0; |
| 10352 | } |
| 10353 | _ACEOF |
| 10354 | rm -f conftest.$ac_objext |
| 10355 | if { (ac_try="$ac_compile" |
| 10356 | case "(($ac_try" in |
| 10357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10358 | *) ac_try_echo=$ac_try;; |
| 10359 | esac |
| 10360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10361 | (eval "$ac_compile") 2>conftest.er1 |
| 10362 | ac_status=$? |
| 10363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10364 | rm -f conftest.er1 |
| 10365 | cat conftest.err >&5 |
| 10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 | (exit $ac_status); } && { |
| 10368 | test -z "$ac_c_werror_flag" || |
| 10369 | test ! -s conftest.err |
| 10370 | } && test -s conftest.$ac_objext; then |
| 10371 | ac_cv_type_size_t=yes |
| 10372 | else |
| 10373 | echo "$as_me: failed program was:" >&5 |
| 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
| 10376 | ac_cv_type_size_t=no |
| 10377 | fi |
| 10378 | |
| 10379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10380 | fi |
| 10381 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10382 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10383 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10384 | # The cast to long int works around a bug in the HP C Compiler |
| 10385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10387 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10388 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10389 | 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] | 10390 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10392 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10393 | if test "$cross_compiling" = yes; then |
| 10394 | # Depending upon the size, compute the lo and hi bounds. |
| 10395 | cat >conftest.$ac_ext <<_ACEOF |
| 10396 | /* confdefs.h. */ |
| 10397 | _ACEOF |
| 10398 | cat confdefs.h >>conftest.$ac_ext |
| 10399 | cat >>conftest.$ac_ext <<_ACEOF |
| 10400 | /* end confdefs.h. */ |
| 10401 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10402 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10403 | int |
| 10404 | main () |
| 10405 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10406 | 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] | 10407 | test_array [0] = 0 |
| 10408 | |
| 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
| 10413 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10414 | if { (ac_try="$ac_compile" |
| 10415 | case "(($ac_try" in |
| 10416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10417 | *) ac_try_echo=$ac_try;; |
| 10418 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10420 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10421 | ac_status=$? |
| 10422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10423 | rm -f conftest.er1 |
| 10424 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10426 | (exit $ac_status); } && { |
| 10427 | test -z "$ac_c_werror_flag" || |
| 10428 | test ! -s conftest.err |
| 10429 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10430 | ac_lo=0 ac_mid=0 |
| 10431 | while :; do |
| 10432 | cat >conftest.$ac_ext <<_ACEOF |
| 10433 | /* confdefs.h. */ |
| 10434 | _ACEOF |
| 10435 | cat confdefs.h >>conftest.$ac_ext |
| 10436 | cat >>conftest.$ac_ext <<_ACEOF |
| 10437 | /* end confdefs.h. */ |
| 10438 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10439 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10440 | int |
| 10441 | main () |
| 10442 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10443 | 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] | 10444 | test_array [0] = 0 |
| 10445 | |
| 10446 | ; |
| 10447 | return 0; |
| 10448 | } |
| 10449 | _ACEOF |
| 10450 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10451 | if { (ac_try="$ac_compile" |
| 10452 | case "(($ac_try" in |
| 10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10454 | *) ac_try_echo=$ac_try;; |
| 10455 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10457 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10458 | ac_status=$? |
| 10459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10460 | rm -f conftest.er1 |
| 10461 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10463 | (exit $ac_status); } && { |
| 10464 | test -z "$ac_c_werror_flag" || |
| 10465 | test ! -s conftest.err |
| 10466 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10467 | ac_hi=$ac_mid; break |
| 10468 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10469 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10472 | ac_lo=`expr $ac_mid + 1` |
| 10473 | if test $ac_lo -le $ac_mid; then |
| 10474 | ac_lo= ac_hi= |
| 10475 | break |
| 10476 | fi |
| 10477 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10479 | |
| 10480 | 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] | 10481 | done |
| 10482 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10483 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10486 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10487 | /* confdefs.h. */ |
| 10488 | _ACEOF |
| 10489 | cat confdefs.h >>conftest.$ac_ext |
| 10490 | cat >>conftest.$ac_ext <<_ACEOF |
| 10491 | /* end confdefs.h. */ |
| 10492 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10493 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10494 | int |
| 10495 | main () |
| 10496 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10497 | 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] | 10498 | test_array [0] = 0 |
| 10499 | |
| 10500 | ; |
| 10501 | return 0; |
| 10502 | } |
| 10503 | _ACEOF |
| 10504 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10505 | if { (ac_try="$ac_compile" |
| 10506 | case "(($ac_try" in |
| 10507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10508 | *) ac_try_echo=$ac_try;; |
| 10509 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10511 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10512 | ac_status=$? |
| 10513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10514 | rm -f conftest.er1 |
| 10515 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10517 | (exit $ac_status); } && { |
| 10518 | test -z "$ac_c_werror_flag" || |
| 10519 | test ! -s conftest.err |
| 10520 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10521 | ac_hi=-1 ac_mid=-1 |
| 10522 | while :; do |
| 10523 | cat >conftest.$ac_ext <<_ACEOF |
| 10524 | /* confdefs.h. */ |
| 10525 | _ACEOF |
| 10526 | cat confdefs.h >>conftest.$ac_ext |
| 10527 | cat >>conftest.$ac_ext <<_ACEOF |
| 10528 | /* end confdefs.h. */ |
| 10529 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10530 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10531 | int |
| 10532 | main () |
| 10533 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10534 | 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] | 10535 | test_array [0] = 0 |
| 10536 | |
| 10537 | ; |
| 10538 | return 0; |
| 10539 | } |
| 10540 | _ACEOF |
| 10541 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10542 | if { (ac_try="$ac_compile" |
| 10543 | case "(($ac_try" in |
| 10544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10545 | *) ac_try_echo=$ac_try;; |
| 10546 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10548 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10549 | ac_status=$? |
| 10550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10551 | rm -f conftest.er1 |
| 10552 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10554 | (exit $ac_status); } && { |
| 10555 | test -z "$ac_c_werror_flag" || |
| 10556 | test ! -s conftest.err |
| 10557 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10558 | ac_lo=$ac_mid; break |
| 10559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10560 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10563 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10564 | if test $ac_mid -le $ac_hi; then |
| 10565 | ac_lo= ac_hi= |
| 10566 | break |
| 10567 | fi |
| 10568 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10570 | |
| 10571 | 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] | 10572 | done |
| 10573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10574 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10577 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10579 | |
| 10580 | 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] | 10581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10582 | |
| 10583 | 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] | 10584 | # Binary search between lo and hi bounds. |
| 10585 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10586 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10587 | cat >conftest.$ac_ext <<_ACEOF |
| 10588 | /* confdefs.h. */ |
| 10589 | _ACEOF |
| 10590 | cat confdefs.h >>conftest.$ac_ext |
| 10591 | cat >>conftest.$ac_ext <<_ACEOF |
| 10592 | /* end confdefs.h. */ |
| 10593 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10594 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10595 | int |
| 10596 | main () |
| 10597 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10598 | 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] | 10599 | test_array [0] = 0 |
| 10600 | |
| 10601 | ; |
| 10602 | return 0; |
| 10603 | } |
| 10604 | _ACEOF |
| 10605 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10606 | if { (ac_try="$ac_compile" |
| 10607 | case "(($ac_try" in |
| 10608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10609 | *) ac_try_echo=$ac_try;; |
| 10610 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10612 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | ac_status=$? |
| 10614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10615 | rm -f conftest.er1 |
| 10616 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10618 | (exit $ac_status); } && { |
| 10619 | test -z "$ac_c_werror_flag" || |
| 10620 | test ! -s conftest.err |
| 10621 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10622 | ac_hi=$ac_mid |
| 10623 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10624 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10626 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10627 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10628 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10629 | |
| 10630 | 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] | 10631 | done |
| 10632 | case $ac_lo in |
| 10633 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10634 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10635 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10636 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10637 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10638 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10639 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10640 | else |
| 10641 | ac_cv_sizeof_size_t=0 |
| 10642 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10643 | esac |
| 10644 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10645 | cat >conftest.$ac_ext <<_ACEOF |
| 10646 | /* confdefs.h. */ |
| 10647 | _ACEOF |
| 10648 | cat confdefs.h >>conftest.$ac_ext |
| 10649 | cat >>conftest.$ac_ext <<_ACEOF |
| 10650 | /* end confdefs.h. */ |
| 10651 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10652 | typedef size_t ac__type_sizeof_; |
| 10653 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10654 | 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] | 10655 | #include <stdio.h> |
| 10656 | #include <stdlib.h> |
| 10657 | int |
| 10658 | main () |
| 10659 | { |
| 10660 | |
| 10661 | FILE *f = fopen ("conftest.val", "w"); |
| 10662 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10663 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10664 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10665 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10666 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10667 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10668 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10669 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10670 | } |
| 10671 | else |
| 10672 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10673 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10674 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10675 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10676 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10677 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10678 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10679 | |
| 10680 | ; |
| 10681 | return 0; |
| 10682 | } |
| 10683 | _ACEOF |
| 10684 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10685 | if { (ac_try="$ac_link" |
| 10686 | case "(($ac_try" in |
| 10687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10688 | *) ac_try_echo=$ac_try;; |
| 10689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10691 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10692 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10695 | { (case "(($ac_try" in |
| 10696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10697 | *) ac_try_echo=$ac_try;; |
| 10698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10700 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10701 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10703 | (exit $ac_status); }; }; then |
| 10704 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10706 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10707 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10709 | |
| 10710 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10711 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10712 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10713 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10714 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10715 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10716 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10717 | else |
| 10718 | ac_cv_sizeof_size_t=0 |
| 10719 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10720 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10721 | 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] | 10722 | fi |
| 10723 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10724 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10725 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10726 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10727 | |
| 10728 | |
| 10729 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10730 | cat >>confdefs.h <<_ACEOF |
| 10731 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10732 | _ACEOF |
| 10733 | |
| 10734 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10735 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10736 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10737 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10739 | else |
| 10740 | cat >conftest.$ac_ext <<_ACEOF |
| 10741 | /* confdefs.h. */ |
| 10742 | _ACEOF |
| 10743 | cat confdefs.h >>conftest.$ac_ext |
| 10744 | cat >>conftest.$ac_ext <<_ACEOF |
| 10745 | /* end confdefs.h. */ |
| 10746 | $ac_includes_default |
| 10747 | typedef pid_t ac__type_new_; |
| 10748 | int |
| 10749 | main () |
| 10750 | { |
| 10751 | if ((ac__type_new_ *) 0) |
| 10752 | return 0; |
| 10753 | if (sizeof (ac__type_new_)) |
| 10754 | return 0; |
| 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
| 10758 | _ACEOF |
| 10759 | rm -f conftest.$ac_objext |
| 10760 | if { (ac_try="$ac_compile" |
| 10761 | case "(($ac_try" in |
| 10762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10763 | *) ac_try_echo=$ac_try;; |
| 10764 | esac |
| 10765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10766 | (eval "$ac_compile") 2>conftest.er1 |
| 10767 | ac_status=$? |
| 10768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10769 | rm -f conftest.er1 |
| 10770 | cat conftest.err >&5 |
| 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10772 | (exit $ac_status); } && { |
| 10773 | test -z "$ac_c_werror_flag" || |
| 10774 | test ! -s conftest.err |
| 10775 | } && test -s conftest.$ac_objext; then |
| 10776 | ac_cv_type_pid_t=yes |
| 10777 | else |
| 10778 | echo "$as_me: failed program was:" >&5 |
| 10779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10780 | |
| 10781 | ac_cv_type_pid_t=no |
| 10782 | fi |
| 10783 | |
| 10784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10785 | fi |
| 10786 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10787 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10788 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10789 | # The cast to long int works around a bug in the HP C Compiler |
| 10790 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10791 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10792 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10793 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10794 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10795 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10797 | else |
| 10798 | if test "$cross_compiling" = yes; then |
| 10799 | # Depending upon the size, compute the lo and hi bounds. |
| 10800 | cat >conftest.$ac_ext <<_ACEOF |
| 10801 | /* confdefs.h. */ |
| 10802 | _ACEOF |
| 10803 | cat confdefs.h >>conftest.$ac_ext |
| 10804 | cat >>conftest.$ac_ext <<_ACEOF |
| 10805 | /* end confdefs.h. */ |
| 10806 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10807 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10808 | int |
| 10809 | main () |
| 10810 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10811 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10812 | test_array [0] = 0 |
| 10813 | |
| 10814 | ; |
| 10815 | return 0; |
| 10816 | } |
| 10817 | _ACEOF |
| 10818 | rm -f conftest.$ac_objext |
| 10819 | if { (ac_try="$ac_compile" |
| 10820 | case "(($ac_try" in |
| 10821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10822 | *) ac_try_echo=$ac_try;; |
| 10823 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10825 | (eval "$ac_compile") 2>conftest.er1 |
| 10826 | ac_status=$? |
| 10827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10828 | rm -f conftest.er1 |
| 10829 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10831 | (exit $ac_status); } && { |
| 10832 | test -z "$ac_c_werror_flag" || |
| 10833 | test ! -s conftest.err |
| 10834 | } && test -s conftest.$ac_objext; then |
| 10835 | ac_lo=0 ac_mid=0 |
| 10836 | while :; do |
| 10837 | cat >conftest.$ac_ext <<_ACEOF |
| 10838 | /* confdefs.h. */ |
| 10839 | _ACEOF |
| 10840 | cat confdefs.h >>conftest.$ac_ext |
| 10841 | cat >>conftest.$ac_ext <<_ACEOF |
| 10842 | /* end confdefs.h. */ |
| 10843 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10844 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10845 | int |
| 10846 | main () |
| 10847 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10848 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10849 | test_array [0] = 0 |
| 10850 | |
| 10851 | ; |
| 10852 | return 0; |
| 10853 | } |
| 10854 | _ACEOF |
| 10855 | rm -f conftest.$ac_objext |
| 10856 | if { (ac_try="$ac_compile" |
| 10857 | case "(($ac_try" in |
| 10858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10859 | *) ac_try_echo=$ac_try;; |
| 10860 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10862 | (eval "$ac_compile") 2>conftest.er1 |
| 10863 | ac_status=$? |
| 10864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10865 | rm -f conftest.er1 |
| 10866 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10868 | (exit $ac_status); } && { |
| 10869 | test -z "$ac_c_werror_flag" || |
| 10870 | test ! -s conftest.err |
| 10871 | } && test -s conftest.$ac_objext; then |
| 10872 | ac_hi=$ac_mid; break |
| 10873 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10874 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10876 | |
| 10877 | ac_lo=`expr $ac_mid + 1` |
| 10878 | if test $ac_lo -le $ac_mid; then |
| 10879 | ac_lo= ac_hi= |
| 10880 | break |
| 10881 | fi |
| 10882 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10883 | fi |
| 10884 | |
| 10885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10886 | done |
| 10887 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10888 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10890 | |
| 10891 | cat >conftest.$ac_ext <<_ACEOF |
| 10892 | /* confdefs.h. */ |
| 10893 | _ACEOF |
| 10894 | cat confdefs.h >>conftest.$ac_ext |
| 10895 | cat >>conftest.$ac_ext <<_ACEOF |
| 10896 | /* end confdefs.h. */ |
| 10897 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10898 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10899 | int |
| 10900 | main () |
| 10901 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10902 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10903 | test_array [0] = 0 |
| 10904 | |
| 10905 | ; |
| 10906 | return 0; |
| 10907 | } |
| 10908 | _ACEOF |
| 10909 | rm -f conftest.$ac_objext |
| 10910 | if { (ac_try="$ac_compile" |
| 10911 | case "(($ac_try" in |
| 10912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10913 | *) ac_try_echo=$ac_try;; |
| 10914 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10916 | (eval "$ac_compile") 2>conftest.er1 |
| 10917 | ac_status=$? |
| 10918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10919 | rm -f conftest.er1 |
| 10920 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10922 | (exit $ac_status); } && { |
| 10923 | test -z "$ac_c_werror_flag" || |
| 10924 | test ! -s conftest.err |
| 10925 | } && test -s conftest.$ac_objext; then |
| 10926 | ac_hi=-1 ac_mid=-1 |
| 10927 | while :; do |
| 10928 | cat >conftest.$ac_ext <<_ACEOF |
| 10929 | /* confdefs.h. */ |
| 10930 | _ACEOF |
| 10931 | cat confdefs.h >>conftest.$ac_ext |
| 10932 | cat >>conftest.$ac_ext <<_ACEOF |
| 10933 | /* end confdefs.h. */ |
| 10934 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10935 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10936 | int |
| 10937 | main () |
| 10938 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10939 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10940 | test_array [0] = 0 |
| 10941 | |
| 10942 | ; |
| 10943 | return 0; |
| 10944 | } |
| 10945 | _ACEOF |
| 10946 | rm -f conftest.$ac_objext |
| 10947 | if { (ac_try="$ac_compile" |
| 10948 | case "(($ac_try" in |
| 10949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10950 | *) ac_try_echo=$ac_try;; |
| 10951 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10953 | (eval "$ac_compile") 2>conftest.er1 |
| 10954 | ac_status=$? |
| 10955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10956 | rm -f conftest.er1 |
| 10957 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10959 | (exit $ac_status); } && { |
| 10960 | test -z "$ac_c_werror_flag" || |
| 10961 | test ! -s conftest.err |
| 10962 | } && test -s conftest.$ac_objext; then |
| 10963 | ac_lo=$ac_mid; break |
| 10964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10965 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10967 | |
| 10968 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10969 | if test $ac_mid -le $ac_hi; then |
| 10970 | ac_lo= ac_hi= |
| 10971 | break |
| 10972 | fi |
| 10973 | ac_mid=`expr 2 '*' $ac_mid` |
| 10974 | fi |
| 10975 | |
| 10976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10977 | done |
| 10978 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10979 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10981 | |
| 10982 | ac_lo= ac_hi= |
| 10983 | fi |
| 10984 | |
| 10985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10986 | fi |
| 10987 | |
| 10988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10989 | # Binary search between lo and hi bounds. |
| 10990 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10991 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10992 | cat >conftest.$ac_ext <<_ACEOF |
| 10993 | /* confdefs.h. */ |
| 10994 | _ACEOF |
| 10995 | cat confdefs.h >>conftest.$ac_ext |
| 10996 | cat >>conftest.$ac_ext <<_ACEOF |
| 10997 | /* end confdefs.h. */ |
| 10998 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10999 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11000 | int |
| 11001 | main () |
| 11002 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11003 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11004 | test_array [0] = 0 |
| 11005 | |
| 11006 | ; |
| 11007 | return 0; |
| 11008 | } |
| 11009 | _ACEOF |
| 11010 | rm -f conftest.$ac_objext |
| 11011 | if { (ac_try="$ac_compile" |
| 11012 | case "(($ac_try" in |
| 11013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11014 | *) ac_try_echo=$ac_try;; |
| 11015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11017 | (eval "$ac_compile") 2>conftest.er1 |
| 11018 | ac_status=$? |
| 11019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11020 | rm -f conftest.er1 |
| 11021 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11023 | (exit $ac_status); } && { |
| 11024 | test -z "$ac_c_werror_flag" || |
| 11025 | test ! -s conftest.err |
| 11026 | } && test -s conftest.$ac_objext; then |
| 11027 | ac_hi=$ac_mid |
| 11028 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11029 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11031 | |
| 11032 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11033 | fi |
| 11034 | |
| 11035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11036 | done |
| 11037 | case $ac_lo in |
| 11038 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11039 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11041 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11042 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11043 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11044 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11045 | else |
| 11046 | ac_cv_sizeof_pid_t=0 |
| 11047 | fi ;; |
| 11048 | esac |
| 11049 | else |
| 11050 | cat >conftest.$ac_ext <<_ACEOF |
| 11051 | /* confdefs.h. */ |
| 11052 | _ACEOF |
| 11053 | cat confdefs.h >>conftest.$ac_ext |
| 11054 | cat >>conftest.$ac_ext <<_ACEOF |
| 11055 | /* end confdefs.h. */ |
| 11056 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11057 | typedef pid_t ac__type_sizeof_; |
| 11058 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11059 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11060 | #include <stdio.h> |
| 11061 | #include <stdlib.h> |
| 11062 | int |
| 11063 | main () |
| 11064 | { |
| 11065 | |
| 11066 | FILE *f = fopen ("conftest.val", "w"); |
| 11067 | if (! f) |
| 11068 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11069 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11070 | { |
| 11071 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11072 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11073 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11074 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11075 | } |
| 11076 | else |
| 11077 | { |
| 11078 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11079 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11080 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11081 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11082 | } |
| 11083 | return ferror (f) || fclose (f) != 0; |
| 11084 | |
| 11085 | ; |
| 11086 | return 0; |
| 11087 | } |
| 11088 | _ACEOF |
| 11089 | rm -f conftest$ac_exeext |
| 11090 | if { (ac_try="$ac_link" |
| 11091 | case "(($ac_try" in |
| 11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11093 | *) ac_try_echo=$ac_try;; |
| 11094 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11096 | (eval "$ac_link") 2>&5 |
| 11097 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11100 | { (case "(($ac_try" in |
| 11101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11102 | *) ac_try_echo=$ac_try;; |
| 11103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11105 | (eval "$ac_try") 2>&5 |
| 11106 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11108 | (exit $ac_status); }; }; then |
| 11109 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11110 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11111 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11112 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11114 | |
| 11115 | ( exit $ac_status ) |
| 11116 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11117 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11118 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11119 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11120 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11121 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11122 | else |
| 11123 | ac_cv_sizeof_pid_t=0 |
| 11124 | fi |
| 11125 | fi |
| 11126 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11127 | fi |
| 11128 | rm -f conftest.val |
| 11129 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11130 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11131 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11132 | |
| 11133 | |
| 11134 | |
| 11135 | cat >>confdefs.h <<_ACEOF |
| 11136 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11137 | _ACEOF |
| 11138 | |
| 11139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11141 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11142 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11143 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11145 | /* confdefs.h. */ |
| 11146 | _ACEOF |
| 11147 | cat confdefs.h >>conftest.$ac_ext |
| 11148 | cat >>conftest.$ac_ext <<_ACEOF |
| 11149 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | int |
| 11152 | main () |
| 11153 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11154 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | ; |
| 11156 | return 0; |
| 11157 | } |
| 11158 | _ACEOF |
| 11159 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11160 | if { (ac_try="$ac_compile" |
| 11161 | case "(($ac_try" in |
| 11162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11163 | *) ac_try_echo=$ac_try;; |
| 11164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11166 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11169 | rm -f conftest.er1 |
| 11170 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11172 | (exit $ac_status); } && { |
| 11173 | test -z "$ac_c_werror_flag" || |
| 11174 | test ! -s conftest.err |
| 11175 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 | |
| 11177 | |
| 11178 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11179 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | _ACEOF |
| 11181 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11182 | have_long_long=yes |
| 11183 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11184 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11188 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11189 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11190 | |
| 11191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11192 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11193 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11194 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11195 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11196 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11197 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11199 | else |
| 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 11201 | /* confdefs.h. */ |
| 11202 | _ACEOF |
| 11203 | cat confdefs.h >>conftest.$ac_ext |
| 11204 | cat >>conftest.$ac_ext <<_ACEOF |
| 11205 | /* end confdefs.h. */ |
| 11206 | $ac_includes_default |
| 11207 | typedef long long ac__type_new_; |
| 11208 | int |
| 11209 | main () |
| 11210 | { |
| 11211 | if ((ac__type_new_ *) 0) |
| 11212 | return 0; |
| 11213 | if (sizeof (ac__type_new_)) |
| 11214 | return 0; |
| 11215 | ; |
| 11216 | return 0; |
| 11217 | } |
| 11218 | _ACEOF |
| 11219 | rm -f conftest.$ac_objext |
| 11220 | if { (ac_try="$ac_compile" |
| 11221 | case "(($ac_try" in |
| 11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11223 | *) ac_try_echo=$ac_try;; |
| 11224 | esac |
| 11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11226 | (eval "$ac_compile") 2>conftest.er1 |
| 11227 | ac_status=$? |
| 11228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11229 | rm -f conftest.er1 |
| 11230 | cat conftest.err >&5 |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); } && { |
| 11233 | test -z "$ac_c_werror_flag" || |
| 11234 | test ! -s conftest.err |
| 11235 | } && test -s conftest.$ac_objext; then |
| 11236 | ac_cv_type_long_long=yes |
| 11237 | else |
| 11238 | echo "$as_me: failed program was:" >&5 |
| 11239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11240 | |
| 11241 | ac_cv_type_long_long=no |
| 11242 | fi |
| 11243 | |
| 11244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11245 | fi |
| 11246 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11247 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11249 | # The cast to long int works around a bug in the HP C Compiler |
| 11250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11252 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11253 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11254 | 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] | 11255 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | if test "$cross_compiling" = yes; then |
| 11259 | # Depending upon the size, compute the lo and hi bounds. |
| 11260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11261 | /* confdefs.h. */ |
| 11262 | _ACEOF |
| 11263 | cat confdefs.h >>conftest.$ac_ext |
| 11264 | cat >>conftest.$ac_ext <<_ACEOF |
| 11265 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11267 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | int |
| 11269 | main () |
| 11270 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11271 | 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] | 11272 | test_array [0] = 0 |
| 11273 | |
| 11274 | ; |
| 11275 | return 0; |
| 11276 | } |
| 11277 | _ACEOF |
| 11278 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11279 | if { (ac_try="$ac_compile" |
| 11280 | case "(($ac_try" in |
| 11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11282 | *) ac_try_echo=$ac_try;; |
| 11283 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11285 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11288 | rm -f conftest.er1 |
| 11289 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11291 | (exit $ac_status); } && { |
| 11292 | test -z "$ac_c_werror_flag" || |
| 11293 | test ! -s conftest.err |
| 11294 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | ac_lo=0 ac_mid=0 |
| 11296 | while :; do |
| 11297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11298 | /* confdefs.h. */ |
| 11299 | _ACEOF |
| 11300 | cat confdefs.h >>conftest.$ac_ext |
| 11301 | cat >>conftest.$ac_ext <<_ACEOF |
| 11302 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11304 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | int |
| 11306 | main () |
| 11307 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11308 | 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] | 11309 | test_array [0] = 0 |
| 11310 | |
| 11311 | ; |
| 11312 | return 0; |
| 11313 | } |
| 11314 | _ACEOF |
| 11315 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11316 | if { (ac_try="$ac_compile" |
| 11317 | case "(($ac_try" in |
| 11318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11319 | *) ac_try_echo=$ac_try;; |
| 11320 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11322 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11325 | rm -f conftest.er1 |
| 11326 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11328 | (exit $ac_status); } && { |
| 11329 | test -z "$ac_c_werror_flag" || |
| 11330 | test ! -s conftest.err |
| 11331 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | ac_hi=$ac_mid; break |
| 11333 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11337 | ac_lo=`expr $ac_mid + 1` |
| 11338 | if test $ac_lo -le $ac_mid; then |
| 11339 | ac_lo= ac_hi= |
| 11340 | break |
| 11341 | fi |
| 11342 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11344 | |
| 11345 | 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] | 11346 | done |
| 11347 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11348 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11350 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11351 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11352 | /* confdefs.h. */ |
| 11353 | _ACEOF |
| 11354 | cat confdefs.h >>conftest.$ac_ext |
| 11355 | cat >>conftest.$ac_ext <<_ACEOF |
| 11356 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11358 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | int |
| 11360 | main () |
| 11361 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11362 | 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] | 11363 | test_array [0] = 0 |
| 11364 | |
| 11365 | ; |
| 11366 | return 0; |
| 11367 | } |
| 11368 | _ACEOF |
| 11369 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11370 | if { (ac_try="$ac_compile" |
| 11371 | case "(($ac_try" in |
| 11372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11373 | *) ac_try_echo=$ac_try;; |
| 11374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11379 | rm -f conftest.er1 |
| 11380 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11382 | (exit $ac_status); } && { |
| 11383 | test -z "$ac_c_werror_flag" || |
| 11384 | test ! -s conftest.err |
| 11385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | ac_hi=-1 ac_mid=-1 |
| 11387 | while :; do |
| 11388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11389 | /* confdefs.h. */ |
| 11390 | _ACEOF |
| 11391 | cat confdefs.h >>conftest.$ac_ext |
| 11392 | cat >>conftest.$ac_ext <<_ACEOF |
| 11393 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11395 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | int |
| 11397 | main () |
| 11398 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11399 | 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] | 11400 | test_array [0] = 0 |
| 11401 | |
| 11402 | ; |
| 11403 | return 0; |
| 11404 | } |
| 11405 | _ACEOF |
| 11406 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11407 | if { (ac_try="$ac_compile" |
| 11408 | case "(($ac_try" in |
| 11409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11410 | *) ac_try_echo=$ac_try;; |
| 11411 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11413 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11416 | rm -f conftest.er1 |
| 11417 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11419 | (exit $ac_status); } && { |
| 11420 | test -z "$ac_c_werror_flag" || |
| 11421 | test ! -s conftest.err |
| 11422 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11423 | ac_lo=$ac_mid; break |
| 11424 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11429 | if test $ac_mid -le $ac_hi; then |
| 11430 | ac_lo= ac_hi= |
| 11431 | break |
| 11432 | fi |
| 11433 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11435 | |
| 11436 | 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] | 11437 | done |
| 11438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11442 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11444 | |
| 11445 | 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] | 11446 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11447 | |
| 11448 | 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] | 11449 | # Binary search between lo and hi bounds. |
| 11450 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11451 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11453 | /* confdefs.h. */ |
| 11454 | _ACEOF |
| 11455 | cat confdefs.h >>conftest.$ac_ext |
| 11456 | cat >>conftest.$ac_ext <<_ACEOF |
| 11457 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11459 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | int |
| 11461 | main () |
| 11462 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11463 | 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] | 11464 | test_array [0] = 0 |
| 11465 | |
| 11466 | ; |
| 11467 | return 0; |
| 11468 | } |
| 11469 | _ACEOF |
| 11470 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11471 | if { (ac_try="$ac_compile" |
| 11472 | case "(($ac_try" in |
| 11473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11474 | *) ac_try_echo=$ac_try;; |
| 11475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11477 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11480 | rm -f conftest.er1 |
| 11481 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11483 | (exit $ac_status); } && { |
| 11484 | test -z "$ac_c_werror_flag" || |
| 11485 | test ! -s conftest.err |
| 11486 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | ac_hi=$ac_mid |
| 11488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11492 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11494 | |
| 11495 | 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] | 11496 | done |
| 11497 | case $ac_lo in |
| 11498 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11499 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11500 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11501 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11502 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11503 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11504 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11505 | else |
| 11506 | ac_cv_sizeof_long_long=0 |
| 11507 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11511 | /* confdefs.h. */ |
| 11512 | _ACEOF |
| 11513 | cat confdefs.h >>conftest.$ac_ext |
| 11514 | cat >>conftest.$ac_ext <<_ACEOF |
| 11515 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11516 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11517 | typedef long long ac__type_sizeof_; |
| 11518 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11519 | 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] | 11520 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | int |
| 11523 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11524 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | |
| 11526 | FILE *f = fopen ("conftest.val", "w"); |
| 11527 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11528 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11529 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11530 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11531 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11532 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11533 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11534 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | } |
| 11536 | else |
| 11537 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11538 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11539 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11540 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11541 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11543 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | |
| 11545 | ; |
| 11546 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11547 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | _ACEOF |
| 11549 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11550 | if { (ac_try="$ac_link" |
| 11551 | case "(($ac_try" in |
| 11552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11553 | *) ac_try_echo=$ac_try;; |
| 11554 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11556 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11560 | { (case "(($ac_try" in |
| 11561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11562 | *) ac_try_echo=$ac_try;; |
| 11563 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | (exit $ac_status); }; }; then |
| 11569 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11570 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11571 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11576 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11577 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11579 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11580 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11581 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11582 | else |
| 11583 | ac_cv_sizeof_long_long=0 |
| 11584 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11586 | 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] | 11587 | fi |
| 11588 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11589 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11590 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11591 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11592 | |
| 11593 | |
| 11594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11596 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11598 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11599 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11600 | fi |
| 11601 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11602 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11603 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11604 | have_long_double=no |
| 11605 | cat >conftest.$ac_ext <<_ACEOF |
| 11606 | /* confdefs.h. */ |
| 11607 | _ACEOF |
| 11608 | cat confdefs.h >>conftest.$ac_ext |
| 11609 | cat >>conftest.$ac_ext <<_ACEOF |
| 11610 | /* end confdefs.h. */ |
| 11611 | |
| 11612 | int |
| 11613 | main () |
| 11614 | { |
| 11615 | long double x; x = (long double)0.; |
| 11616 | ; |
| 11617 | return 0; |
| 11618 | } |
| 11619 | _ACEOF |
| 11620 | rm -f conftest.$ac_objext |
| 11621 | if { (ac_try="$ac_compile" |
| 11622 | case "(($ac_try" in |
| 11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11624 | *) ac_try_echo=$ac_try;; |
| 11625 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11627 | (eval "$ac_compile") 2>conftest.er1 |
| 11628 | ac_status=$? |
| 11629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11630 | rm -f conftest.er1 |
| 11631 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11633 | (exit $ac_status); } && { |
| 11634 | test -z "$ac_c_werror_flag" || |
| 11635 | test ! -s conftest.err |
| 11636 | } && test -s conftest.$ac_objext; then |
| 11637 | |
| 11638 | |
| 11639 | cat >>confdefs.h <<\_ACEOF |
| 11640 | #define HAVE_LONG_DOUBLE 1 |
| 11641 | _ACEOF |
| 11642 | |
| 11643 | have_long_double=yes |
| 11644 | |
| 11645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11646 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11648 | |
| 11649 | |
| 11650 | fi |
| 11651 | |
| 11652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11653 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11654 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11655 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11656 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11657 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11658 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11660 | else |
| 11661 | cat >conftest.$ac_ext <<_ACEOF |
| 11662 | /* confdefs.h. */ |
| 11663 | _ACEOF |
| 11664 | cat confdefs.h >>conftest.$ac_ext |
| 11665 | cat >>conftest.$ac_ext <<_ACEOF |
| 11666 | /* end confdefs.h. */ |
| 11667 | $ac_includes_default |
| 11668 | typedef long double ac__type_new_; |
| 11669 | int |
| 11670 | main () |
| 11671 | { |
| 11672 | if ((ac__type_new_ *) 0) |
| 11673 | return 0; |
| 11674 | if (sizeof (ac__type_new_)) |
| 11675 | return 0; |
| 11676 | ; |
| 11677 | return 0; |
| 11678 | } |
| 11679 | _ACEOF |
| 11680 | rm -f conftest.$ac_objext |
| 11681 | if { (ac_try="$ac_compile" |
| 11682 | case "(($ac_try" in |
| 11683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11684 | *) ac_try_echo=$ac_try;; |
| 11685 | esac |
| 11686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11687 | (eval "$ac_compile") 2>conftest.er1 |
| 11688 | ac_status=$? |
| 11689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11690 | rm -f conftest.er1 |
| 11691 | cat conftest.err >&5 |
| 11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11693 | (exit $ac_status); } && { |
| 11694 | test -z "$ac_c_werror_flag" || |
| 11695 | test ! -s conftest.err |
| 11696 | } && test -s conftest.$ac_objext; then |
| 11697 | ac_cv_type_long_double=yes |
| 11698 | else |
| 11699 | echo "$as_me: failed program was:" >&5 |
| 11700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11701 | |
| 11702 | ac_cv_type_long_double=no |
| 11703 | fi |
| 11704 | |
| 11705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11706 | fi |
| 11707 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11708 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11709 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11710 | # The cast to long int works around a bug in the HP C Compiler |
| 11711 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11712 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11713 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11714 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11715 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11716 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11718 | else |
| 11719 | if test "$cross_compiling" = yes; then |
| 11720 | # Depending upon the size, compute the lo and hi bounds. |
| 11721 | cat >conftest.$ac_ext <<_ACEOF |
| 11722 | /* confdefs.h. */ |
| 11723 | _ACEOF |
| 11724 | cat confdefs.h >>conftest.$ac_ext |
| 11725 | cat >>conftest.$ac_ext <<_ACEOF |
| 11726 | /* end confdefs.h. */ |
| 11727 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11728 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11729 | int |
| 11730 | main () |
| 11731 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11733 | test_array [0] = 0 |
| 11734 | |
| 11735 | ; |
| 11736 | return 0; |
| 11737 | } |
| 11738 | _ACEOF |
| 11739 | rm -f conftest.$ac_objext |
| 11740 | if { (ac_try="$ac_compile" |
| 11741 | case "(($ac_try" in |
| 11742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11743 | *) ac_try_echo=$ac_try;; |
| 11744 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11746 | (eval "$ac_compile") 2>conftest.er1 |
| 11747 | ac_status=$? |
| 11748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11749 | rm -f conftest.er1 |
| 11750 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11752 | (exit $ac_status); } && { |
| 11753 | test -z "$ac_c_werror_flag" || |
| 11754 | test ! -s conftest.err |
| 11755 | } && test -s conftest.$ac_objext; then |
| 11756 | ac_lo=0 ac_mid=0 |
| 11757 | while :; do |
| 11758 | cat >conftest.$ac_ext <<_ACEOF |
| 11759 | /* confdefs.h. */ |
| 11760 | _ACEOF |
| 11761 | cat confdefs.h >>conftest.$ac_ext |
| 11762 | cat >>conftest.$ac_ext <<_ACEOF |
| 11763 | /* end confdefs.h. */ |
| 11764 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11765 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11766 | int |
| 11767 | main () |
| 11768 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11769 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11770 | test_array [0] = 0 |
| 11771 | |
| 11772 | ; |
| 11773 | return 0; |
| 11774 | } |
| 11775 | _ACEOF |
| 11776 | rm -f conftest.$ac_objext |
| 11777 | if { (ac_try="$ac_compile" |
| 11778 | case "(($ac_try" in |
| 11779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11780 | *) ac_try_echo=$ac_try;; |
| 11781 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11783 | (eval "$ac_compile") 2>conftest.er1 |
| 11784 | ac_status=$? |
| 11785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11786 | rm -f conftest.er1 |
| 11787 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11789 | (exit $ac_status); } && { |
| 11790 | test -z "$ac_c_werror_flag" || |
| 11791 | test ! -s conftest.err |
| 11792 | } && test -s conftest.$ac_objext; then |
| 11793 | ac_hi=$ac_mid; break |
| 11794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11795 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11797 | |
| 11798 | ac_lo=`expr $ac_mid + 1` |
| 11799 | if test $ac_lo -le $ac_mid; then |
| 11800 | ac_lo= ac_hi= |
| 11801 | break |
| 11802 | fi |
| 11803 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11804 | fi |
| 11805 | |
| 11806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11807 | done |
| 11808 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11809 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11811 | |
| 11812 | cat >conftest.$ac_ext <<_ACEOF |
| 11813 | /* confdefs.h. */ |
| 11814 | _ACEOF |
| 11815 | cat confdefs.h >>conftest.$ac_ext |
| 11816 | cat >>conftest.$ac_ext <<_ACEOF |
| 11817 | /* end confdefs.h. */ |
| 11818 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11819 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11820 | int |
| 11821 | main () |
| 11822 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11823 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11824 | test_array [0] = 0 |
| 11825 | |
| 11826 | ; |
| 11827 | return 0; |
| 11828 | } |
| 11829 | _ACEOF |
| 11830 | rm -f conftest.$ac_objext |
| 11831 | if { (ac_try="$ac_compile" |
| 11832 | case "(($ac_try" in |
| 11833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11834 | *) ac_try_echo=$ac_try;; |
| 11835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11837 | (eval "$ac_compile") 2>conftest.er1 |
| 11838 | ac_status=$? |
| 11839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11840 | rm -f conftest.er1 |
| 11841 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11843 | (exit $ac_status); } && { |
| 11844 | test -z "$ac_c_werror_flag" || |
| 11845 | test ! -s conftest.err |
| 11846 | } && test -s conftest.$ac_objext; then |
| 11847 | ac_hi=-1 ac_mid=-1 |
| 11848 | while :; do |
| 11849 | cat >conftest.$ac_ext <<_ACEOF |
| 11850 | /* confdefs.h. */ |
| 11851 | _ACEOF |
| 11852 | cat confdefs.h >>conftest.$ac_ext |
| 11853 | cat >>conftest.$ac_ext <<_ACEOF |
| 11854 | /* end confdefs.h. */ |
| 11855 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11856 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11857 | int |
| 11858 | main () |
| 11859 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11860 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11861 | test_array [0] = 0 |
| 11862 | |
| 11863 | ; |
| 11864 | return 0; |
| 11865 | } |
| 11866 | _ACEOF |
| 11867 | rm -f conftest.$ac_objext |
| 11868 | if { (ac_try="$ac_compile" |
| 11869 | case "(($ac_try" in |
| 11870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11871 | *) ac_try_echo=$ac_try;; |
| 11872 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11874 | (eval "$ac_compile") 2>conftest.er1 |
| 11875 | ac_status=$? |
| 11876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11877 | rm -f conftest.er1 |
| 11878 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11880 | (exit $ac_status); } && { |
| 11881 | test -z "$ac_c_werror_flag" || |
| 11882 | test ! -s conftest.err |
| 11883 | } && test -s conftest.$ac_objext; then |
| 11884 | ac_lo=$ac_mid; break |
| 11885 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11886 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11888 | |
| 11889 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11890 | if test $ac_mid -le $ac_hi; then |
| 11891 | ac_lo= ac_hi= |
| 11892 | break |
| 11893 | fi |
| 11894 | ac_mid=`expr 2 '*' $ac_mid` |
| 11895 | fi |
| 11896 | |
| 11897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11898 | done |
| 11899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11900 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11902 | |
| 11903 | ac_lo= ac_hi= |
| 11904 | fi |
| 11905 | |
| 11906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11907 | fi |
| 11908 | |
| 11909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11910 | # Binary search between lo and hi bounds. |
| 11911 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11912 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11913 | cat >conftest.$ac_ext <<_ACEOF |
| 11914 | /* confdefs.h. */ |
| 11915 | _ACEOF |
| 11916 | cat confdefs.h >>conftest.$ac_ext |
| 11917 | cat >>conftest.$ac_ext <<_ACEOF |
| 11918 | /* end confdefs.h. */ |
| 11919 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11920 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11921 | int |
| 11922 | main () |
| 11923 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11924 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11925 | test_array [0] = 0 |
| 11926 | |
| 11927 | ; |
| 11928 | return 0; |
| 11929 | } |
| 11930 | _ACEOF |
| 11931 | rm -f conftest.$ac_objext |
| 11932 | if { (ac_try="$ac_compile" |
| 11933 | case "(($ac_try" in |
| 11934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11935 | *) ac_try_echo=$ac_try;; |
| 11936 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11938 | (eval "$ac_compile") 2>conftest.er1 |
| 11939 | ac_status=$? |
| 11940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11941 | rm -f conftest.er1 |
| 11942 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11944 | (exit $ac_status); } && { |
| 11945 | test -z "$ac_c_werror_flag" || |
| 11946 | test ! -s conftest.err |
| 11947 | } && test -s conftest.$ac_objext; then |
| 11948 | ac_hi=$ac_mid |
| 11949 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11950 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11952 | |
| 11953 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11954 | fi |
| 11955 | |
| 11956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11957 | done |
| 11958 | case $ac_lo in |
| 11959 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11960 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11961 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11962 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11963 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11964 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11965 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11966 | else |
| 11967 | ac_cv_sizeof_long_double=0 |
| 11968 | fi ;; |
| 11969 | esac |
| 11970 | else |
| 11971 | cat >conftest.$ac_ext <<_ACEOF |
| 11972 | /* confdefs.h. */ |
| 11973 | _ACEOF |
| 11974 | cat confdefs.h >>conftest.$ac_ext |
| 11975 | cat >>conftest.$ac_ext <<_ACEOF |
| 11976 | /* end confdefs.h. */ |
| 11977 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11978 | typedef long double ac__type_sizeof_; |
| 11979 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11980 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11981 | #include <stdio.h> |
| 11982 | #include <stdlib.h> |
| 11983 | int |
| 11984 | main () |
| 11985 | { |
| 11986 | |
| 11987 | FILE *f = fopen ("conftest.val", "w"); |
| 11988 | if (! f) |
| 11989 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11990 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11991 | { |
| 11992 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11993 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11994 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11995 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11996 | } |
| 11997 | else |
| 11998 | { |
| 11999 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12000 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12001 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12002 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12003 | } |
| 12004 | return ferror (f) || fclose (f) != 0; |
| 12005 | |
| 12006 | ; |
| 12007 | return 0; |
| 12008 | } |
| 12009 | _ACEOF |
| 12010 | rm -f conftest$ac_exeext |
| 12011 | if { (ac_try="$ac_link" |
| 12012 | case "(($ac_try" in |
| 12013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12014 | *) ac_try_echo=$ac_try;; |
| 12015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12017 | (eval "$ac_link") 2>&5 |
| 12018 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12020 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12021 | { (case "(($ac_try" in |
| 12022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12023 | *) ac_try_echo=$ac_try;; |
| 12024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12026 | (eval "$ac_try") 2>&5 |
| 12027 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12029 | (exit $ac_status); }; }; then |
| 12030 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12031 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12032 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12033 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12035 | |
| 12036 | ( exit $ac_status ) |
| 12037 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12039 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12040 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12041 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12042 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12043 | else |
| 12044 | ac_cv_sizeof_long_double=0 |
| 12045 | fi |
| 12046 | fi |
| 12047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12048 | fi |
| 12049 | rm -f conftest.val |
| 12050 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12051 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12052 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12053 | |
| 12054 | |
| 12055 | |
| 12056 | cat >>confdefs.h <<_ACEOF |
| 12057 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12058 | _ACEOF |
| 12059 | |
| 12060 | |
| 12061 | fi |
| 12062 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12063 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12064 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12065 | have_c99_bool=no |
| 12066 | cat >conftest.$ac_ext <<_ACEOF |
| 12067 | /* confdefs.h. */ |
| 12068 | _ACEOF |
| 12069 | cat confdefs.h >>conftest.$ac_ext |
| 12070 | cat >>conftest.$ac_ext <<_ACEOF |
| 12071 | /* end confdefs.h. */ |
| 12072 | |
| 12073 | int |
| 12074 | main () |
| 12075 | { |
| 12076 | _Bool x; x = (_Bool)0; |
| 12077 | ; |
| 12078 | return 0; |
| 12079 | } |
| 12080 | _ACEOF |
| 12081 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12082 | if { (ac_try="$ac_compile" |
| 12083 | case "(($ac_try" in |
| 12084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12085 | *) ac_try_echo=$ac_try;; |
| 12086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12088 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12089 | ac_status=$? |
| 12090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12091 | rm -f conftest.er1 |
| 12092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12094 | (exit $ac_status); } && { |
| 12095 | test -z "$ac_c_werror_flag" || |
| 12096 | test ! -s conftest.err |
| 12097 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12098 | |
| 12099 | |
| 12100 | cat >>confdefs.h <<\_ACEOF |
| 12101 | #define HAVE_C99_BOOL 1 |
| 12102 | _ACEOF |
| 12103 | |
| 12104 | have_c99_bool=yes |
| 12105 | |
| 12106 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12107 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12109 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12110 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12111 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12112 | |
| 12113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12114 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12115 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12116 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12117 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12118 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12119 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12121 | else |
| 12122 | cat >conftest.$ac_ext <<_ACEOF |
| 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
| 12128 | $ac_includes_default |
| 12129 | typedef _Bool ac__type_new_; |
| 12130 | int |
| 12131 | main () |
| 12132 | { |
| 12133 | if ((ac__type_new_ *) 0) |
| 12134 | return 0; |
| 12135 | if (sizeof (ac__type_new_)) |
| 12136 | return 0; |
| 12137 | ; |
| 12138 | return 0; |
| 12139 | } |
| 12140 | _ACEOF |
| 12141 | rm -f conftest.$ac_objext |
| 12142 | if { (ac_try="$ac_compile" |
| 12143 | case "(($ac_try" in |
| 12144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12145 | *) ac_try_echo=$ac_try;; |
| 12146 | esac |
| 12147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12148 | (eval "$ac_compile") 2>conftest.er1 |
| 12149 | ac_status=$? |
| 12150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12151 | rm -f conftest.er1 |
| 12152 | cat conftest.err >&5 |
| 12153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12154 | (exit $ac_status); } && { |
| 12155 | test -z "$ac_c_werror_flag" || |
| 12156 | test ! -s conftest.err |
| 12157 | } && test -s conftest.$ac_objext; then |
| 12158 | ac_cv_type__Bool=yes |
| 12159 | else |
| 12160 | echo "$as_me: failed program was:" >&5 |
| 12161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12162 | |
| 12163 | ac_cv_type__Bool=no |
| 12164 | fi |
| 12165 | |
| 12166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12167 | fi |
| 12168 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12169 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12171 | # The cast to long int works around a bug in the HP C Compiler |
| 12172 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12173 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12174 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12175 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12176 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12177 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12179 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12180 | if test "$cross_compiling" = yes; then |
| 12181 | # Depending upon the size, compute the lo and hi bounds. |
| 12182 | cat >conftest.$ac_ext <<_ACEOF |
| 12183 | /* confdefs.h. */ |
| 12184 | _ACEOF |
| 12185 | cat confdefs.h >>conftest.$ac_ext |
| 12186 | cat >>conftest.$ac_ext <<_ACEOF |
| 12187 | /* end confdefs.h. */ |
| 12188 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12189 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12190 | int |
| 12191 | main () |
| 12192 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12193 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12194 | test_array [0] = 0 |
| 12195 | |
| 12196 | ; |
| 12197 | return 0; |
| 12198 | } |
| 12199 | _ACEOF |
| 12200 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12201 | if { (ac_try="$ac_compile" |
| 12202 | case "(($ac_try" in |
| 12203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12204 | *) ac_try_echo=$ac_try;; |
| 12205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12208 | ac_status=$? |
| 12209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12210 | rm -f conftest.er1 |
| 12211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12213 | (exit $ac_status); } && { |
| 12214 | test -z "$ac_c_werror_flag" || |
| 12215 | test ! -s conftest.err |
| 12216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12217 | ac_lo=0 ac_mid=0 |
| 12218 | while :; do |
| 12219 | cat >conftest.$ac_ext <<_ACEOF |
| 12220 | /* confdefs.h. */ |
| 12221 | _ACEOF |
| 12222 | cat confdefs.h >>conftest.$ac_ext |
| 12223 | cat >>conftest.$ac_ext <<_ACEOF |
| 12224 | /* end confdefs.h. */ |
| 12225 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12226 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12227 | int |
| 12228 | main () |
| 12229 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12230 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12231 | test_array [0] = 0 |
| 12232 | |
| 12233 | ; |
| 12234 | return 0; |
| 12235 | } |
| 12236 | _ACEOF |
| 12237 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12238 | if { (ac_try="$ac_compile" |
| 12239 | case "(($ac_try" in |
| 12240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12241 | *) ac_try_echo=$ac_try;; |
| 12242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12244 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12245 | ac_status=$? |
| 12246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12247 | rm -f conftest.er1 |
| 12248 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12250 | (exit $ac_status); } && { |
| 12251 | test -z "$ac_c_werror_flag" || |
| 12252 | test ! -s conftest.err |
| 12253 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12254 | ac_hi=$ac_mid; break |
| 12255 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12256 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12259 | ac_lo=`expr $ac_mid + 1` |
| 12260 | if test $ac_lo -le $ac_mid; then |
| 12261 | ac_lo= ac_hi= |
| 12262 | break |
| 12263 | fi |
| 12264 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12266 | |
| 12267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12268 | done |
| 12269 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12270 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12272 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12273 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12274 | /* confdefs.h. */ |
| 12275 | _ACEOF |
| 12276 | cat confdefs.h >>conftest.$ac_ext |
| 12277 | cat >>conftest.$ac_ext <<_ACEOF |
| 12278 | /* end confdefs.h. */ |
| 12279 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12280 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12281 | int |
| 12282 | main () |
| 12283 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12284 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12285 | test_array [0] = 0 |
| 12286 | |
| 12287 | ; |
| 12288 | return 0; |
| 12289 | } |
| 12290 | _ACEOF |
| 12291 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12292 | if { (ac_try="$ac_compile" |
| 12293 | case "(($ac_try" in |
| 12294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12295 | *) ac_try_echo=$ac_try;; |
| 12296 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12298 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12299 | ac_status=$? |
| 12300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12301 | rm -f conftest.er1 |
| 12302 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12304 | (exit $ac_status); } && { |
| 12305 | test -z "$ac_c_werror_flag" || |
| 12306 | test ! -s conftest.err |
| 12307 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12308 | ac_hi=-1 ac_mid=-1 |
| 12309 | while :; do |
| 12310 | cat >conftest.$ac_ext <<_ACEOF |
| 12311 | /* confdefs.h. */ |
| 12312 | _ACEOF |
| 12313 | cat confdefs.h >>conftest.$ac_ext |
| 12314 | cat >>conftest.$ac_ext <<_ACEOF |
| 12315 | /* end confdefs.h. */ |
| 12316 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12317 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12318 | int |
| 12319 | main () |
| 12320 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12321 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12322 | test_array [0] = 0 |
| 12323 | |
| 12324 | ; |
| 12325 | return 0; |
| 12326 | } |
| 12327 | _ACEOF |
| 12328 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12329 | if { (ac_try="$ac_compile" |
| 12330 | case "(($ac_try" in |
| 12331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12332 | *) ac_try_echo=$ac_try;; |
| 12333 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12335 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12336 | ac_status=$? |
| 12337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12338 | rm -f conftest.er1 |
| 12339 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12341 | (exit $ac_status); } && { |
| 12342 | test -z "$ac_c_werror_flag" || |
| 12343 | test ! -s conftest.err |
| 12344 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12345 | ac_lo=$ac_mid; break |
| 12346 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12347 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12350 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12351 | if test $ac_mid -le $ac_hi; then |
| 12352 | ac_lo= ac_hi= |
| 12353 | break |
| 12354 | fi |
| 12355 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12356 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12357 | |
| 12358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12359 | done |
| 12360 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12361 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12363 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12364 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12365 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12366 | |
| 12367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12368 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12369 | |
| 12370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12371 | # Binary search between lo and hi bounds. |
| 12372 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12373 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12374 | cat >conftest.$ac_ext <<_ACEOF |
| 12375 | /* confdefs.h. */ |
| 12376 | _ACEOF |
| 12377 | cat confdefs.h >>conftest.$ac_ext |
| 12378 | cat >>conftest.$ac_ext <<_ACEOF |
| 12379 | /* end confdefs.h. */ |
| 12380 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12381 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12382 | int |
| 12383 | main () |
| 12384 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12385 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12386 | test_array [0] = 0 |
| 12387 | |
| 12388 | ; |
| 12389 | return 0; |
| 12390 | } |
| 12391 | _ACEOF |
| 12392 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12393 | if { (ac_try="$ac_compile" |
| 12394 | case "(($ac_try" in |
| 12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12396 | *) ac_try_echo=$ac_try;; |
| 12397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12399 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12400 | ac_status=$? |
| 12401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12402 | rm -f conftest.er1 |
| 12403 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12405 | (exit $ac_status); } && { |
| 12406 | test -z "$ac_c_werror_flag" || |
| 12407 | test ! -s conftest.err |
| 12408 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12409 | ac_hi=$ac_mid |
| 12410 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12411 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12413 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12414 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12415 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12416 | |
| 12417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12418 | done |
| 12419 | case $ac_lo in |
| 12420 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12421 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12422 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12423 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12424 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12425 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12426 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12427 | else |
| 12428 | ac_cv_sizeof__Bool=0 |
| 12429 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12430 | esac |
| 12431 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12432 | cat >conftest.$ac_ext <<_ACEOF |
| 12433 | /* confdefs.h. */ |
| 12434 | _ACEOF |
| 12435 | cat confdefs.h >>conftest.$ac_ext |
| 12436 | cat >>conftest.$ac_ext <<_ACEOF |
| 12437 | /* end confdefs.h. */ |
| 12438 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12439 | typedef _Bool ac__type_sizeof_; |
| 12440 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12441 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12442 | #include <stdio.h> |
| 12443 | #include <stdlib.h> |
| 12444 | int |
| 12445 | main () |
| 12446 | { |
| 12447 | |
| 12448 | FILE *f = fopen ("conftest.val", "w"); |
| 12449 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12450 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12451 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12452 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12453 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12454 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12455 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12456 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12457 | } |
| 12458 | else |
| 12459 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12460 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12461 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12462 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12463 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12464 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12465 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12466 | |
| 12467 | ; |
| 12468 | return 0; |
| 12469 | } |
| 12470 | _ACEOF |
| 12471 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12472 | if { (ac_try="$ac_link" |
| 12473 | case "(($ac_try" in |
| 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12475 | *) ac_try_echo=$ac_try;; |
| 12476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12478 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12479 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12482 | { (case "(($ac_try" in |
| 12483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12484 | *) ac_try_echo=$ac_try;; |
| 12485 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12488 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12490 | (exit $ac_status); }; }; then |
| 12491 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12492 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12494 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12496 | |
| 12497 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12498 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12499 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12500 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12501 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12502 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12503 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12504 | else |
| 12505 | ac_cv_sizeof__Bool=0 |
| 12506 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12507 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12509 | fi |
| 12510 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12511 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12512 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12513 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12514 | |
| 12515 | |
| 12516 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12517 | cat >>confdefs.h <<_ACEOF |
| 12518 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12519 | _ACEOF |
| 12520 | |
| 12521 | |
| 12522 | fi |
| 12523 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12524 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12525 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12526 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12528 | else |
| 12529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12530 | /* confdefs.h. */ |
| 12531 | _ACEOF |
| 12532 | cat confdefs.h >>conftest.$ac_ext |
| 12533 | cat >>conftest.$ac_ext <<_ACEOF |
| 12534 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12535 | #ifdef HAVE_STDINT_H |
| 12536 | #include <stdint.h> |
| 12537 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12539 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 | int |
| 12541 | main () |
| 12542 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12543 | if ((ac__type_new_ *) 0) |
| 12544 | return 0; |
| 12545 | if (sizeof (ac__type_new_)) |
| 12546 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | ; |
| 12548 | return 0; |
| 12549 | } |
| 12550 | _ACEOF |
| 12551 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12552 | if { (ac_try="$ac_compile" |
| 12553 | case "(($ac_try" in |
| 12554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12555 | *) ac_try_echo=$ac_try;; |
| 12556 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12558 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12559 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12561 | rm -f conftest.er1 |
| 12562 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12564 | (exit $ac_status); } && { |
| 12565 | test -z "$ac_c_werror_flag" || |
| 12566 | test ! -s conftest.err |
| 12567 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12568 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12569 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12570 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12572 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12573 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12574 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12575 | |
| 12576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12577 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12578 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12579 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12580 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12581 | |
| 12582 | cat >>confdefs.h <<_ACEOF |
| 12583 | #define HAVE_UINTPTR_T 1 |
| 12584 | _ACEOF |
| 12585 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12586 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12587 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12588 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12590 | else |
| 12591 | cat >conftest.$ac_ext <<_ACEOF |
| 12592 | /* confdefs.h. */ |
| 12593 | _ACEOF |
| 12594 | cat confdefs.h >>conftest.$ac_ext |
| 12595 | cat >>conftest.$ac_ext <<_ACEOF |
| 12596 | /* end confdefs.h. */ |
| 12597 | $ac_includes_default |
| 12598 | typedef uintptr_t ac__type_new_; |
| 12599 | int |
| 12600 | main () |
| 12601 | { |
| 12602 | if ((ac__type_new_ *) 0) |
| 12603 | return 0; |
| 12604 | if (sizeof (ac__type_new_)) |
| 12605 | return 0; |
| 12606 | ; |
| 12607 | return 0; |
| 12608 | } |
| 12609 | _ACEOF |
| 12610 | rm -f conftest.$ac_objext |
| 12611 | if { (ac_try="$ac_compile" |
| 12612 | case "(($ac_try" in |
| 12613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12614 | *) ac_try_echo=$ac_try;; |
| 12615 | esac |
| 12616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12617 | (eval "$ac_compile") 2>conftest.er1 |
| 12618 | ac_status=$? |
| 12619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12620 | rm -f conftest.er1 |
| 12621 | cat conftest.err >&5 |
| 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12623 | (exit $ac_status); } && { |
| 12624 | test -z "$ac_c_werror_flag" || |
| 12625 | test ! -s conftest.err |
| 12626 | } && test -s conftest.$ac_objext; then |
| 12627 | ac_cv_type_uintptr_t=yes |
| 12628 | else |
| 12629 | echo "$as_me: failed program was:" >&5 |
| 12630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12631 | |
| 12632 | ac_cv_type_uintptr_t=no |
| 12633 | fi |
| 12634 | |
| 12635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12636 | fi |
| 12637 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12638 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12640 | # The cast to long int works around a bug in the HP C Compiler |
| 12641 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12642 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12643 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12644 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12645 | 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] | 12646 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | if test "$cross_compiling" = yes; then |
| 12650 | # Depending upon the size, compute the lo and hi bounds. |
| 12651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12652 | /* confdefs.h. */ |
| 12653 | _ACEOF |
| 12654 | cat confdefs.h >>conftest.$ac_ext |
| 12655 | cat >>conftest.$ac_ext <<_ACEOF |
| 12656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12658 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | int |
| 12660 | main () |
| 12661 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12662 | 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] | 12663 | test_array [0] = 0 |
| 12664 | |
| 12665 | ; |
| 12666 | return 0; |
| 12667 | } |
| 12668 | _ACEOF |
| 12669 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12670 | if { (ac_try="$ac_compile" |
| 12671 | case "(($ac_try" in |
| 12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12673 | *) ac_try_echo=$ac_try;; |
| 12674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12676 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12679 | rm -f conftest.er1 |
| 12680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12682 | (exit $ac_status); } && { |
| 12683 | test -z "$ac_c_werror_flag" || |
| 12684 | test ! -s conftest.err |
| 12685 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 | ac_lo=0 ac_mid=0 |
| 12687 | while :; do |
| 12688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12689 | /* confdefs.h. */ |
| 12690 | _ACEOF |
| 12691 | cat confdefs.h >>conftest.$ac_ext |
| 12692 | cat >>conftest.$ac_ext <<_ACEOF |
| 12693 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12695 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | int |
| 12697 | main () |
| 12698 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12699 | 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] | 12700 | test_array [0] = 0 |
| 12701 | |
| 12702 | ; |
| 12703 | return 0; |
| 12704 | } |
| 12705 | _ACEOF |
| 12706 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12707 | if { (ac_try="$ac_compile" |
| 12708 | case "(($ac_try" in |
| 12709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12710 | *) ac_try_echo=$ac_try;; |
| 12711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12713 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12716 | rm -f conftest.er1 |
| 12717 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12719 | (exit $ac_status); } && { |
| 12720 | test -z "$ac_c_werror_flag" || |
| 12721 | test ! -s conftest.err |
| 12722 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | ac_hi=$ac_mid; break |
| 12724 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12728 | ac_lo=`expr $ac_mid + 1` |
| 12729 | if test $ac_lo -le $ac_mid; then |
| 12730 | ac_lo= ac_hi= |
| 12731 | break |
| 12732 | fi |
| 12733 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12735 | |
| 12736 | 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] | 12737 | done |
| 12738 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12743 | /* confdefs.h. */ |
| 12744 | _ACEOF |
| 12745 | cat confdefs.h >>conftest.$ac_ext |
| 12746 | cat >>conftest.$ac_ext <<_ACEOF |
| 12747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12749 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | int |
| 12751 | main () |
| 12752 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12753 | 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] | 12754 | test_array [0] = 0 |
| 12755 | |
| 12756 | ; |
| 12757 | return 0; |
| 12758 | } |
| 12759 | _ACEOF |
| 12760 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12761 | if { (ac_try="$ac_compile" |
| 12762 | case "(($ac_try" in |
| 12763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12764 | *) ac_try_echo=$ac_try;; |
| 12765 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12767 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12770 | rm -f conftest.er1 |
| 12771 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12773 | (exit $ac_status); } && { |
| 12774 | test -z "$ac_c_werror_flag" || |
| 12775 | test ! -s conftest.err |
| 12776 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | ac_hi=-1 ac_mid=-1 |
| 12778 | while :; do |
| 12779 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12780 | /* confdefs.h. */ |
| 12781 | _ACEOF |
| 12782 | cat confdefs.h >>conftest.$ac_ext |
| 12783 | cat >>conftest.$ac_ext <<_ACEOF |
| 12784 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12786 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | int |
| 12788 | main () |
| 12789 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12790 | 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] | 12791 | test_array [0] = 0 |
| 12792 | |
| 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12798 | if { (ac_try="$ac_compile" |
| 12799 | case "(($ac_try" in |
| 12800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12801 | *) ac_try_echo=$ac_try;; |
| 12802 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12804 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12807 | rm -f conftest.er1 |
| 12808 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12810 | (exit $ac_status); } && { |
| 12811 | test -z "$ac_c_werror_flag" || |
| 12812 | test ! -s conftest.err |
| 12813 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | ac_lo=$ac_mid; break |
| 12815 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12816 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12819 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12820 | if test $ac_mid -le $ac_hi; then |
| 12821 | ac_lo= ac_hi= |
| 12822 | break |
| 12823 | fi |
| 12824 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12826 | |
| 12827 | 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] | 12828 | done |
| 12829 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12832 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12833 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12835 | |
| 12836 | 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] | 12837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12838 | |
| 12839 | 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] | 12840 | # Binary search between lo and hi bounds. |
| 12841 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12842 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12844 | /* confdefs.h. */ |
| 12845 | _ACEOF |
| 12846 | cat confdefs.h >>conftest.$ac_ext |
| 12847 | cat >>conftest.$ac_ext <<_ACEOF |
| 12848 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12850 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | int |
| 12852 | main () |
| 12853 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12854 | 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] | 12855 | test_array [0] = 0 |
| 12856 | |
| 12857 | ; |
| 12858 | return 0; |
| 12859 | } |
| 12860 | _ACEOF |
| 12861 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12862 | if { (ac_try="$ac_compile" |
| 12863 | case "(($ac_try" in |
| 12864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12865 | *) ac_try_echo=$ac_try;; |
| 12866 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12868 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12871 | rm -f conftest.er1 |
| 12872 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12874 | (exit $ac_status); } && { |
| 12875 | test -z "$ac_c_werror_flag" || |
| 12876 | test ! -s conftest.err |
| 12877 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | ac_hi=$ac_mid |
| 12879 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12883 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12885 | |
| 12886 | 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] | 12887 | done |
| 12888 | case $ac_lo in |
| 12889 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12890 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12891 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12892 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12893 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12894 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12895 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12896 | else |
| 12897 | ac_cv_sizeof_uintptr_t=0 |
| 12898 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12902 | /* confdefs.h. */ |
| 12903 | _ACEOF |
| 12904 | cat confdefs.h >>conftest.$ac_ext |
| 12905 | cat >>conftest.$ac_ext <<_ACEOF |
| 12906 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12908 | typedef uintptr_t ac__type_sizeof_; |
| 12909 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12910 | 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] | 12911 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 | int |
| 12914 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12915 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | |
| 12917 | FILE *f = fopen ("conftest.val", "w"); |
| 12918 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12919 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12920 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12921 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12922 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12923 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12924 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12925 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | } |
| 12927 | else |
| 12928 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12929 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12930 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12931 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12932 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12934 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | |
| 12936 | ; |
| 12937 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12938 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | _ACEOF |
| 12940 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12951 | { (case "(($ac_try" in |
| 12952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12953 | *) ac_try_echo=$ac_try;; |
| 12954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 |
| 12960 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12961 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12967 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12968 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12969 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12970 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12971 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12972 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12973 | else |
| 12974 | ac_cv_sizeof_uintptr_t=0 |
| 12975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12977 | 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] | 12978 | fi |
| 12979 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12980 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12981 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12982 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12983 | |
| 12984 | |
| 12985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12986 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12987 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12989 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12990 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12991 | fi |
| 12992 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12993 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 12994 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 12995 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 12996 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
| 13004 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13005 | |
| 13006 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13007 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13008 | #endif |
| 13009 | |
| 13010 | |
| 13011 | typedef off_t ac__type_new_; |
| 13012 | int |
| 13013 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13014 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13015 | if ((ac__type_new_ *) 0) |
| 13016 | return 0; |
| 13017 | if (sizeof (ac__type_new_)) |
| 13018 | return 0; |
| 13019 | ; |
| 13020 | return 0; |
| 13021 | } |
| 13022 | _ACEOF |
| 13023 | rm -f conftest.$ac_objext |
| 13024 | if { (ac_try="$ac_compile" |
| 13025 | case "(($ac_try" in |
| 13026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13027 | *) ac_try_echo=$ac_try;; |
| 13028 | esac |
| 13029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13030 | (eval "$ac_compile") 2>conftest.er1 |
| 13031 | ac_status=$? |
| 13032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13033 | rm -f conftest.er1 |
| 13034 | cat conftest.err >&5 |
| 13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13036 | (exit $ac_status); } && { |
| 13037 | test -z "$ac_c_werror_flag" || |
| 13038 | test ! -s conftest.err |
| 13039 | } && test -s conftest.$ac_objext; then |
| 13040 | ac_cv_type_off_t=yes |
| 13041 | else |
| 13042 | echo "$as_me: failed program was:" >&5 |
| 13043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13044 | |
| 13045 | ac_cv_type_off_t=no |
| 13046 | fi |
| 13047 | |
| 13048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13049 | fi |
| 13050 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13051 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13052 | |
| 13053 | # The cast to long int works around a bug in the HP C Compiler |
| 13054 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13055 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13056 | # This bug is HP SR number 8606223364. |
| 13057 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13058 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13059 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13061 | else |
| 13062 | if test "$cross_compiling" = yes; then |
| 13063 | # Depending upon the size, compute the lo and hi bounds. |
| 13064 | cat >conftest.$ac_ext <<_ACEOF |
| 13065 | /* confdefs.h. */ |
| 13066 | _ACEOF |
| 13067 | cat confdefs.h >>conftest.$ac_ext |
| 13068 | cat >>conftest.$ac_ext <<_ACEOF |
| 13069 | /* end confdefs.h. */ |
| 13070 | |
| 13071 | #ifdef HAVE_SYS_TYPES_H |
| 13072 | #include <sys/types.h> |
| 13073 | #endif |
| 13074 | |
| 13075 | |
| 13076 | typedef off_t ac__type_sizeof_; |
| 13077 | int |
| 13078 | main () |
| 13079 | { |
| 13080 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13081 | test_array [0] = 0 |
| 13082 | |
| 13083 | ; |
| 13084 | return 0; |
| 13085 | } |
| 13086 | _ACEOF |
| 13087 | rm -f conftest.$ac_objext |
| 13088 | if { (ac_try="$ac_compile" |
| 13089 | case "(($ac_try" in |
| 13090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13091 | *) ac_try_echo=$ac_try;; |
| 13092 | esac |
| 13093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13094 | (eval "$ac_compile") 2>conftest.er1 |
| 13095 | ac_status=$? |
| 13096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13097 | rm -f conftest.er1 |
| 13098 | cat conftest.err >&5 |
| 13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13100 | (exit $ac_status); } && { |
| 13101 | test -z "$ac_c_werror_flag" || |
| 13102 | test ! -s conftest.err |
| 13103 | } && test -s conftest.$ac_objext; then |
| 13104 | ac_lo=0 ac_mid=0 |
| 13105 | while :; do |
| 13106 | cat >conftest.$ac_ext <<_ACEOF |
| 13107 | /* confdefs.h. */ |
| 13108 | _ACEOF |
| 13109 | cat confdefs.h >>conftest.$ac_ext |
| 13110 | cat >>conftest.$ac_ext <<_ACEOF |
| 13111 | /* end confdefs.h. */ |
| 13112 | |
| 13113 | #ifdef HAVE_SYS_TYPES_H |
| 13114 | #include <sys/types.h> |
| 13115 | #endif |
| 13116 | |
| 13117 | |
| 13118 | typedef off_t ac__type_sizeof_; |
| 13119 | int |
| 13120 | main () |
| 13121 | { |
| 13122 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13123 | test_array [0] = 0 |
| 13124 | |
| 13125 | ; |
| 13126 | return 0; |
| 13127 | } |
| 13128 | _ACEOF |
| 13129 | rm -f conftest.$ac_objext |
| 13130 | if { (ac_try="$ac_compile" |
| 13131 | case "(($ac_try" in |
| 13132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13133 | *) ac_try_echo=$ac_try;; |
| 13134 | esac |
| 13135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13136 | (eval "$ac_compile") 2>conftest.er1 |
| 13137 | ac_status=$? |
| 13138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13139 | rm -f conftest.er1 |
| 13140 | cat conftest.err >&5 |
| 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13142 | (exit $ac_status); } && { |
| 13143 | test -z "$ac_c_werror_flag" || |
| 13144 | test ! -s conftest.err |
| 13145 | } && test -s conftest.$ac_objext; then |
| 13146 | ac_hi=$ac_mid; break |
| 13147 | else |
| 13148 | echo "$as_me: failed program was:" >&5 |
| 13149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13150 | |
| 13151 | ac_lo=`expr $ac_mid + 1` |
| 13152 | if test $ac_lo -le $ac_mid; then |
| 13153 | ac_lo= ac_hi= |
| 13154 | break |
| 13155 | fi |
| 13156 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13157 | fi |
| 13158 | |
| 13159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13160 | done |
| 13161 | else |
| 13162 | echo "$as_me: failed program was:" >&5 |
| 13163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13164 | |
| 13165 | cat >conftest.$ac_ext <<_ACEOF |
| 13166 | /* confdefs.h. */ |
| 13167 | _ACEOF |
| 13168 | cat confdefs.h >>conftest.$ac_ext |
| 13169 | cat >>conftest.$ac_ext <<_ACEOF |
| 13170 | /* end confdefs.h. */ |
| 13171 | |
| 13172 | #ifdef HAVE_SYS_TYPES_H |
| 13173 | #include <sys/types.h> |
| 13174 | #endif |
| 13175 | |
| 13176 | |
| 13177 | typedef off_t ac__type_sizeof_; |
| 13178 | int |
| 13179 | main () |
| 13180 | { |
| 13181 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13182 | test_array [0] = 0 |
| 13183 | |
| 13184 | ; |
| 13185 | return 0; |
| 13186 | } |
| 13187 | _ACEOF |
| 13188 | rm -f conftest.$ac_objext |
| 13189 | if { (ac_try="$ac_compile" |
| 13190 | case "(($ac_try" in |
| 13191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13192 | *) ac_try_echo=$ac_try;; |
| 13193 | esac |
| 13194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13195 | (eval "$ac_compile") 2>conftest.er1 |
| 13196 | ac_status=$? |
| 13197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13198 | rm -f conftest.er1 |
| 13199 | cat conftest.err >&5 |
| 13200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13201 | (exit $ac_status); } && { |
| 13202 | test -z "$ac_c_werror_flag" || |
| 13203 | test ! -s conftest.err |
| 13204 | } && test -s conftest.$ac_objext; then |
| 13205 | ac_hi=-1 ac_mid=-1 |
| 13206 | while :; do |
| 13207 | cat >conftest.$ac_ext <<_ACEOF |
| 13208 | /* confdefs.h. */ |
| 13209 | _ACEOF |
| 13210 | cat confdefs.h >>conftest.$ac_ext |
| 13211 | cat >>conftest.$ac_ext <<_ACEOF |
| 13212 | /* end confdefs.h. */ |
| 13213 | |
| 13214 | #ifdef HAVE_SYS_TYPES_H |
| 13215 | #include <sys/types.h> |
| 13216 | #endif |
| 13217 | |
| 13218 | |
| 13219 | typedef off_t ac__type_sizeof_; |
| 13220 | int |
| 13221 | main () |
| 13222 | { |
| 13223 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13224 | test_array [0] = 0 |
| 13225 | |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
| 13229 | _ACEOF |
| 13230 | rm -f conftest.$ac_objext |
| 13231 | if { (ac_try="$ac_compile" |
| 13232 | case "(($ac_try" in |
| 13233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13234 | *) ac_try_echo=$ac_try;; |
| 13235 | esac |
| 13236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13237 | (eval "$ac_compile") 2>conftest.er1 |
| 13238 | ac_status=$? |
| 13239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13240 | rm -f conftest.er1 |
| 13241 | cat conftest.err >&5 |
| 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13243 | (exit $ac_status); } && { |
| 13244 | test -z "$ac_c_werror_flag" || |
| 13245 | test ! -s conftest.err |
| 13246 | } && test -s conftest.$ac_objext; then |
| 13247 | ac_lo=$ac_mid; break |
| 13248 | else |
| 13249 | echo "$as_me: failed program was:" >&5 |
| 13250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13251 | |
| 13252 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13253 | if test $ac_mid -le $ac_hi; then |
| 13254 | ac_lo= ac_hi= |
| 13255 | break |
| 13256 | fi |
| 13257 | ac_mid=`expr 2 '*' $ac_mid` |
| 13258 | fi |
| 13259 | |
| 13260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13261 | done |
| 13262 | else |
| 13263 | echo "$as_me: failed program was:" >&5 |
| 13264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13265 | |
| 13266 | ac_lo= ac_hi= |
| 13267 | fi |
| 13268 | |
| 13269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13270 | fi |
| 13271 | |
| 13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13273 | # Binary search between lo and hi bounds. |
| 13274 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13275 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13276 | cat >conftest.$ac_ext <<_ACEOF |
| 13277 | /* confdefs.h. */ |
| 13278 | _ACEOF |
| 13279 | cat confdefs.h >>conftest.$ac_ext |
| 13280 | cat >>conftest.$ac_ext <<_ACEOF |
| 13281 | /* end confdefs.h. */ |
| 13282 | |
| 13283 | #ifdef HAVE_SYS_TYPES_H |
| 13284 | #include <sys/types.h> |
| 13285 | #endif |
| 13286 | |
| 13287 | |
| 13288 | typedef off_t ac__type_sizeof_; |
| 13289 | int |
| 13290 | main () |
| 13291 | { |
| 13292 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13293 | test_array [0] = 0 |
| 13294 | |
| 13295 | ; |
| 13296 | return 0; |
| 13297 | } |
| 13298 | _ACEOF |
| 13299 | rm -f conftest.$ac_objext |
| 13300 | if { (ac_try="$ac_compile" |
| 13301 | case "(($ac_try" in |
| 13302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13303 | *) ac_try_echo=$ac_try;; |
| 13304 | esac |
| 13305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13306 | (eval "$ac_compile") 2>conftest.er1 |
| 13307 | ac_status=$? |
| 13308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13309 | rm -f conftest.er1 |
| 13310 | cat conftest.err >&5 |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); } && { |
| 13313 | test -z "$ac_c_werror_flag" || |
| 13314 | test ! -s conftest.err |
| 13315 | } && test -s conftest.$ac_objext; then |
| 13316 | ac_hi=$ac_mid |
| 13317 | else |
| 13318 | echo "$as_me: failed program was:" >&5 |
| 13319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13320 | |
| 13321 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13322 | fi |
| 13323 | |
| 13324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13325 | done |
| 13326 | case $ac_lo in |
| 13327 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13328 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13329 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13330 | See \`config.log' for more details." >&5 |
| 13331 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13332 | See \`config.log' for more details." >&2;} |
| 13333 | { (exit 77); exit 77; }; } |
| 13334 | else |
| 13335 | ac_cv_sizeof_off_t=0 |
| 13336 | fi ;; |
| 13337 | esac |
| 13338 | else |
| 13339 | cat >conftest.$ac_ext <<_ACEOF |
| 13340 | /* confdefs.h. */ |
| 13341 | _ACEOF |
| 13342 | cat confdefs.h >>conftest.$ac_ext |
| 13343 | cat >>conftest.$ac_ext <<_ACEOF |
| 13344 | /* end confdefs.h. */ |
| 13345 | |
| 13346 | #ifdef HAVE_SYS_TYPES_H |
| 13347 | #include <sys/types.h> |
| 13348 | #endif |
| 13349 | |
| 13350 | |
| 13351 | typedef off_t ac__type_sizeof_; |
| 13352 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13353 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13354 | #include <stdio.h> |
| 13355 | #include <stdlib.h> |
| 13356 | int |
| 13357 | main () |
| 13358 | { |
| 13359 | |
| 13360 | FILE *f = fopen ("conftest.val", "w"); |
| 13361 | if (! f) |
| 13362 | return 1; |
| 13363 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13364 | { |
| 13365 | long int i = longval (); |
| 13366 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13367 | return 1; |
| 13368 | fprintf (f, "%ld\n", i); |
| 13369 | } |
| 13370 | else |
| 13371 | { |
| 13372 | unsigned long int i = ulongval (); |
| 13373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13374 | return 1; |
| 13375 | fprintf (f, "%lu\n", i); |
| 13376 | } |
| 13377 | return ferror (f) || fclose (f) != 0; |
| 13378 | |
| 13379 | ; |
| 13380 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13381 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13382 | _ACEOF |
| 13383 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13384 | if { (ac_try="$ac_link" |
| 13385 | case "(($ac_try" in |
| 13386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13387 | *) ac_try_echo=$ac_try;; |
| 13388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13390 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13394 | { (case "(($ac_try" in |
| 13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13396 | *) ac_try_echo=$ac_try;; |
| 13397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13399 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13400 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13402 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13403 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13404 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13410 | if test "$ac_cv_type_off_t" = yes; then |
| 13411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13412 | See \`config.log' for more details." >&5 |
| 13413 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13414 | See \`config.log' for more details." >&2;} |
| 13415 | { (exit 77); exit 77; }; } |
| 13416 | else |
| 13417 | ac_cv_sizeof_off_t=0 |
| 13418 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13419 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13420 | 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] | 13421 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13422 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13423 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13424 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13425 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13427 | |
| 13428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13430 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13432 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13433 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13434 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13435 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13436 | 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] | 13437 | if test "$have_long_long" = yes -a \ |
| 13438 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13439 | "$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] | 13440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | cat >>confdefs.h <<\_ACEOF |
| 13442 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13443 | _ACEOF |
| 13444 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13445 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13446 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13447 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13449 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13450 | fi |
| 13451 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13452 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13453 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13454 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13458 | /* confdefs.h. */ |
| 13459 | _ACEOF |
| 13460 | cat confdefs.h >>conftest.$ac_ext |
| 13461 | cat >>conftest.$ac_ext <<_ACEOF |
| 13462 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13463 | |
| 13464 | #ifdef HAVE_SYS_TYPES_H |
| 13465 | #include <sys/types.h> |
| 13466 | #endif |
| 13467 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13468 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13469 | #endif |
| 13470 | |
| 13471 | |
| 13472 | typedef time_t ac__type_new_; |
| 13473 | int |
| 13474 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13475 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13476 | if ((ac__type_new_ *) 0) |
| 13477 | return 0; |
| 13478 | if (sizeof (ac__type_new_)) |
| 13479 | return 0; |
| 13480 | ; |
| 13481 | return 0; |
| 13482 | } |
| 13483 | _ACEOF |
| 13484 | rm -f conftest.$ac_objext |
| 13485 | if { (ac_try="$ac_compile" |
| 13486 | case "(($ac_try" in |
| 13487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13488 | *) ac_try_echo=$ac_try;; |
| 13489 | esac |
| 13490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13491 | (eval "$ac_compile") 2>conftest.er1 |
| 13492 | ac_status=$? |
| 13493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13494 | rm -f conftest.er1 |
| 13495 | cat conftest.err >&5 |
| 13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13497 | (exit $ac_status); } && { |
| 13498 | test -z "$ac_c_werror_flag" || |
| 13499 | test ! -s conftest.err |
| 13500 | } && test -s conftest.$ac_objext; then |
| 13501 | ac_cv_type_time_t=yes |
| 13502 | else |
| 13503 | echo "$as_me: failed program was:" >&5 |
| 13504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13505 | |
| 13506 | ac_cv_type_time_t=no |
| 13507 | fi |
| 13508 | |
| 13509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13510 | fi |
| 13511 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13512 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13513 | |
| 13514 | # The cast to long int works around a bug in the HP C Compiler |
| 13515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13517 | # This bug is HP SR number 8606223364. |
| 13518 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13519 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13520 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13522 | else |
| 13523 | if test "$cross_compiling" = yes; then |
| 13524 | # Depending upon the size, compute the lo and hi bounds. |
| 13525 | cat >conftest.$ac_ext <<_ACEOF |
| 13526 | /* confdefs.h. */ |
| 13527 | _ACEOF |
| 13528 | cat confdefs.h >>conftest.$ac_ext |
| 13529 | cat >>conftest.$ac_ext <<_ACEOF |
| 13530 | /* end confdefs.h. */ |
| 13531 | |
| 13532 | #ifdef HAVE_SYS_TYPES_H |
| 13533 | #include <sys/types.h> |
| 13534 | #endif |
| 13535 | #ifdef HAVE_TIME_H |
| 13536 | #include <time.h> |
| 13537 | #endif |
| 13538 | |
| 13539 | |
| 13540 | typedef time_t ac__type_sizeof_; |
| 13541 | int |
| 13542 | main () |
| 13543 | { |
| 13544 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13545 | test_array [0] = 0 |
| 13546 | |
| 13547 | ; |
| 13548 | return 0; |
| 13549 | } |
| 13550 | _ACEOF |
| 13551 | rm -f conftest.$ac_objext |
| 13552 | if { (ac_try="$ac_compile" |
| 13553 | case "(($ac_try" in |
| 13554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13555 | *) ac_try_echo=$ac_try;; |
| 13556 | esac |
| 13557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13558 | (eval "$ac_compile") 2>conftest.er1 |
| 13559 | ac_status=$? |
| 13560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13561 | rm -f conftest.er1 |
| 13562 | cat conftest.err >&5 |
| 13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13564 | (exit $ac_status); } && { |
| 13565 | test -z "$ac_c_werror_flag" || |
| 13566 | test ! -s conftest.err |
| 13567 | } && test -s conftest.$ac_objext; then |
| 13568 | ac_lo=0 ac_mid=0 |
| 13569 | while :; do |
| 13570 | cat >conftest.$ac_ext <<_ACEOF |
| 13571 | /* confdefs.h. */ |
| 13572 | _ACEOF |
| 13573 | cat confdefs.h >>conftest.$ac_ext |
| 13574 | cat >>conftest.$ac_ext <<_ACEOF |
| 13575 | /* end confdefs.h. */ |
| 13576 | |
| 13577 | #ifdef HAVE_SYS_TYPES_H |
| 13578 | #include <sys/types.h> |
| 13579 | #endif |
| 13580 | #ifdef HAVE_TIME_H |
| 13581 | #include <time.h> |
| 13582 | #endif |
| 13583 | |
| 13584 | |
| 13585 | typedef time_t ac__type_sizeof_; |
| 13586 | int |
| 13587 | main () |
| 13588 | { |
| 13589 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13590 | test_array [0] = 0 |
| 13591 | |
| 13592 | ; |
| 13593 | return 0; |
| 13594 | } |
| 13595 | _ACEOF |
| 13596 | rm -f conftest.$ac_objext |
| 13597 | if { (ac_try="$ac_compile" |
| 13598 | case "(($ac_try" in |
| 13599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13600 | *) ac_try_echo=$ac_try;; |
| 13601 | esac |
| 13602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13603 | (eval "$ac_compile") 2>conftest.er1 |
| 13604 | ac_status=$? |
| 13605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13606 | rm -f conftest.er1 |
| 13607 | cat conftest.err >&5 |
| 13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13609 | (exit $ac_status); } && { |
| 13610 | test -z "$ac_c_werror_flag" || |
| 13611 | test ! -s conftest.err |
| 13612 | } && test -s conftest.$ac_objext; then |
| 13613 | ac_hi=$ac_mid; break |
| 13614 | else |
| 13615 | echo "$as_me: failed program was:" >&5 |
| 13616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13617 | |
| 13618 | ac_lo=`expr $ac_mid + 1` |
| 13619 | if test $ac_lo -le $ac_mid; then |
| 13620 | ac_lo= ac_hi= |
| 13621 | break |
| 13622 | fi |
| 13623 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13624 | fi |
| 13625 | |
| 13626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13627 | done |
| 13628 | else |
| 13629 | echo "$as_me: failed program was:" >&5 |
| 13630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13631 | |
| 13632 | cat >conftest.$ac_ext <<_ACEOF |
| 13633 | /* confdefs.h. */ |
| 13634 | _ACEOF |
| 13635 | cat confdefs.h >>conftest.$ac_ext |
| 13636 | cat >>conftest.$ac_ext <<_ACEOF |
| 13637 | /* end confdefs.h. */ |
| 13638 | |
| 13639 | #ifdef HAVE_SYS_TYPES_H |
| 13640 | #include <sys/types.h> |
| 13641 | #endif |
| 13642 | #ifdef HAVE_TIME_H |
| 13643 | #include <time.h> |
| 13644 | #endif |
| 13645 | |
| 13646 | |
| 13647 | typedef time_t ac__type_sizeof_; |
| 13648 | int |
| 13649 | main () |
| 13650 | { |
| 13651 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13652 | test_array [0] = 0 |
| 13653 | |
| 13654 | ; |
| 13655 | return 0; |
| 13656 | } |
| 13657 | _ACEOF |
| 13658 | rm -f conftest.$ac_objext |
| 13659 | if { (ac_try="$ac_compile" |
| 13660 | case "(($ac_try" in |
| 13661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13662 | *) ac_try_echo=$ac_try;; |
| 13663 | esac |
| 13664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13665 | (eval "$ac_compile") 2>conftest.er1 |
| 13666 | ac_status=$? |
| 13667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13668 | rm -f conftest.er1 |
| 13669 | cat conftest.err >&5 |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); } && { |
| 13672 | test -z "$ac_c_werror_flag" || |
| 13673 | test ! -s conftest.err |
| 13674 | } && test -s conftest.$ac_objext; then |
| 13675 | ac_hi=-1 ac_mid=-1 |
| 13676 | while :; do |
| 13677 | cat >conftest.$ac_ext <<_ACEOF |
| 13678 | /* confdefs.h. */ |
| 13679 | _ACEOF |
| 13680 | cat confdefs.h >>conftest.$ac_ext |
| 13681 | cat >>conftest.$ac_ext <<_ACEOF |
| 13682 | /* end confdefs.h. */ |
| 13683 | |
| 13684 | #ifdef HAVE_SYS_TYPES_H |
| 13685 | #include <sys/types.h> |
| 13686 | #endif |
| 13687 | #ifdef HAVE_TIME_H |
| 13688 | #include <time.h> |
| 13689 | #endif |
| 13690 | |
| 13691 | |
| 13692 | typedef time_t ac__type_sizeof_; |
| 13693 | int |
| 13694 | main () |
| 13695 | { |
| 13696 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13697 | test_array [0] = 0 |
| 13698 | |
| 13699 | ; |
| 13700 | return 0; |
| 13701 | } |
| 13702 | _ACEOF |
| 13703 | rm -f conftest.$ac_objext |
| 13704 | if { (ac_try="$ac_compile" |
| 13705 | case "(($ac_try" in |
| 13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13707 | *) ac_try_echo=$ac_try;; |
| 13708 | esac |
| 13709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13710 | (eval "$ac_compile") 2>conftest.er1 |
| 13711 | ac_status=$? |
| 13712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13713 | rm -f conftest.er1 |
| 13714 | cat conftest.err >&5 |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13716 | (exit $ac_status); } && { |
| 13717 | test -z "$ac_c_werror_flag" || |
| 13718 | test ! -s conftest.err |
| 13719 | } && test -s conftest.$ac_objext; then |
| 13720 | ac_lo=$ac_mid; break |
| 13721 | else |
| 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13724 | |
| 13725 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13726 | if test $ac_mid -le $ac_hi; then |
| 13727 | ac_lo= ac_hi= |
| 13728 | break |
| 13729 | fi |
| 13730 | ac_mid=`expr 2 '*' $ac_mid` |
| 13731 | fi |
| 13732 | |
| 13733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13734 | done |
| 13735 | else |
| 13736 | echo "$as_me: failed program was:" >&5 |
| 13737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13738 | |
| 13739 | ac_lo= ac_hi= |
| 13740 | fi |
| 13741 | |
| 13742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13743 | fi |
| 13744 | |
| 13745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13746 | # Binary search between lo and hi bounds. |
| 13747 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13749 | cat >conftest.$ac_ext <<_ACEOF |
| 13750 | /* confdefs.h. */ |
| 13751 | _ACEOF |
| 13752 | cat confdefs.h >>conftest.$ac_ext |
| 13753 | cat >>conftest.$ac_ext <<_ACEOF |
| 13754 | /* end confdefs.h. */ |
| 13755 | |
| 13756 | #ifdef HAVE_SYS_TYPES_H |
| 13757 | #include <sys/types.h> |
| 13758 | #endif |
| 13759 | #ifdef HAVE_TIME_H |
| 13760 | #include <time.h> |
| 13761 | #endif |
| 13762 | |
| 13763 | |
| 13764 | typedef time_t ac__type_sizeof_; |
| 13765 | int |
| 13766 | main () |
| 13767 | { |
| 13768 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13769 | test_array [0] = 0 |
| 13770 | |
| 13771 | ; |
| 13772 | return 0; |
| 13773 | } |
| 13774 | _ACEOF |
| 13775 | rm -f conftest.$ac_objext |
| 13776 | if { (ac_try="$ac_compile" |
| 13777 | case "(($ac_try" in |
| 13778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13779 | *) ac_try_echo=$ac_try;; |
| 13780 | esac |
| 13781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13782 | (eval "$ac_compile") 2>conftest.er1 |
| 13783 | ac_status=$? |
| 13784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13785 | rm -f conftest.er1 |
| 13786 | cat conftest.err >&5 |
| 13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13788 | (exit $ac_status); } && { |
| 13789 | test -z "$ac_c_werror_flag" || |
| 13790 | test ! -s conftest.err |
| 13791 | } && test -s conftest.$ac_objext; then |
| 13792 | ac_hi=$ac_mid |
| 13793 | else |
| 13794 | echo "$as_me: failed program was:" >&5 |
| 13795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13796 | |
| 13797 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13798 | fi |
| 13799 | |
| 13800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13801 | done |
| 13802 | case $ac_lo in |
| 13803 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13804 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13805 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13806 | See \`config.log' for more details." >&5 |
| 13807 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13808 | See \`config.log' for more details." >&2;} |
| 13809 | { (exit 77); exit 77; }; } |
| 13810 | else |
| 13811 | ac_cv_sizeof_time_t=0 |
| 13812 | fi ;; |
| 13813 | esac |
| 13814 | else |
| 13815 | cat >conftest.$ac_ext <<_ACEOF |
| 13816 | /* confdefs.h. */ |
| 13817 | _ACEOF |
| 13818 | cat confdefs.h >>conftest.$ac_ext |
| 13819 | cat >>conftest.$ac_ext <<_ACEOF |
| 13820 | /* end confdefs.h. */ |
| 13821 | |
| 13822 | #ifdef HAVE_SYS_TYPES_H |
| 13823 | #include <sys/types.h> |
| 13824 | #endif |
| 13825 | #ifdef HAVE_TIME_H |
| 13826 | #include <time.h> |
| 13827 | #endif |
| 13828 | |
| 13829 | |
| 13830 | typedef time_t ac__type_sizeof_; |
| 13831 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13832 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13833 | #include <stdio.h> |
| 13834 | #include <stdlib.h> |
| 13835 | int |
| 13836 | main () |
| 13837 | { |
| 13838 | |
| 13839 | FILE *f = fopen ("conftest.val", "w"); |
| 13840 | if (! f) |
| 13841 | return 1; |
| 13842 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13843 | { |
| 13844 | long int i = longval (); |
| 13845 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13846 | return 1; |
| 13847 | fprintf (f, "%ld\n", i); |
| 13848 | } |
| 13849 | else |
| 13850 | { |
| 13851 | unsigned long int i = ulongval (); |
| 13852 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13853 | return 1; |
| 13854 | fprintf (f, "%lu\n", i); |
| 13855 | } |
| 13856 | return ferror (f) || fclose (f) != 0; |
| 13857 | |
| 13858 | ; |
| 13859 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13860 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13861 | _ACEOF |
| 13862 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13863 | if { (ac_try="$ac_link" |
| 13864 | case "(($ac_try" in |
| 13865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13866 | *) ac_try_echo=$ac_try;; |
| 13867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13869 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13870 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13873 | { (case "(($ac_try" in |
| 13874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13875 | *) ac_try_echo=$ac_try;; |
| 13876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13878 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13879 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13881 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13882 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13883 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13884 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13888 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13889 | if test "$ac_cv_type_time_t" = yes; then |
| 13890 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13891 | See \`config.log' for more details." >&5 |
| 13892 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13893 | See \`config.log' for more details." >&2;} |
| 13894 | { (exit 77); exit 77; }; } |
| 13895 | else |
| 13896 | ac_cv_sizeof_time_t=0 |
| 13897 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13898 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13899 | 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] | 13900 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13901 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13902 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13903 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13904 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13906 | |
| 13907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13909 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13911 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13912 | |
| 13913 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13914 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13915 | ac_save_cc="$CC" |
| 13916 | if test "$ac_cv_kpthread" = "yes" |
| 13917 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13918 | elif test "$ac_cv_kthread" = "yes" |
| 13919 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13920 | elif test "$ac_cv_pthread" = "yes" |
| 13921 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13922 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13923 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13924 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13925 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13927 | /* confdefs.h. */ |
| 13928 | _ACEOF |
| 13929 | cat confdefs.h >>conftest.$ac_ext |
| 13930 | cat >>conftest.$ac_ext <<_ACEOF |
| 13931 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13932 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | int |
| 13934 | main () |
| 13935 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13936 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | ; |
| 13938 | return 0; |
| 13939 | } |
| 13940 | _ACEOF |
| 13941 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13942 | if { (ac_try="$ac_compile" |
| 13943 | case "(($ac_try" in |
| 13944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13945 | *) ac_try_echo=$ac_try;; |
| 13946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13948 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13951 | rm -f conftest.er1 |
| 13952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13954 | (exit $ac_status); } && { |
| 13955 | test -z "$ac_c_werror_flag" || |
| 13956 | test ! -s conftest.err |
| 13957 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13958 | have_pthread_t=yes |
| 13959 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13963 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13965 | |
| 13966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13967 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13968 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13969 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13970 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13971 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 13972 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13976 | /* confdefs.h. */ |
| 13977 | _ACEOF |
| 13978 | cat confdefs.h >>conftest.$ac_ext |
| 13979 | cat >>conftest.$ac_ext <<_ACEOF |
| 13980 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13981 | |
| 13982 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13983 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13984 | #endif |
| 13985 | |
| 13986 | |
| 13987 | typedef pthread_t ac__type_new_; |
| 13988 | int |
| 13989 | main () |
| 13990 | { |
| 13991 | if ((ac__type_new_ *) 0) |
| 13992 | return 0; |
| 13993 | if (sizeof (ac__type_new_)) |
| 13994 | return 0; |
| 13995 | ; |
| 13996 | return 0; |
| 13997 | } |
| 13998 | _ACEOF |
| 13999 | rm -f conftest.$ac_objext |
| 14000 | if { (ac_try="$ac_compile" |
| 14001 | case "(($ac_try" in |
| 14002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14003 | *) ac_try_echo=$ac_try;; |
| 14004 | esac |
| 14005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14006 | (eval "$ac_compile") 2>conftest.er1 |
| 14007 | ac_status=$? |
| 14008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14009 | rm -f conftest.er1 |
| 14010 | cat conftest.err >&5 |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); } && { |
| 14013 | test -z "$ac_c_werror_flag" || |
| 14014 | test ! -s conftest.err |
| 14015 | } && test -s conftest.$ac_objext; then |
| 14016 | ac_cv_type_pthread_t=yes |
| 14017 | else |
| 14018 | echo "$as_me: failed program was:" >&5 |
| 14019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14020 | |
| 14021 | ac_cv_type_pthread_t=no |
| 14022 | fi |
| 14023 | |
| 14024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14025 | fi |
| 14026 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14027 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14028 | |
| 14029 | # The cast to long int works around a bug in the HP C Compiler |
| 14030 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14031 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14032 | # This bug is HP SR number 8606223364. |
| 14033 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14034 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14035 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14037 | else |
| 14038 | if test "$cross_compiling" = yes; then |
| 14039 | # Depending upon the size, compute the lo and hi bounds. |
| 14040 | cat >conftest.$ac_ext <<_ACEOF |
| 14041 | /* confdefs.h. */ |
| 14042 | _ACEOF |
| 14043 | cat confdefs.h >>conftest.$ac_ext |
| 14044 | cat >>conftest.$ac_ext <<_ACEOF |
| 14045 | /* end confdefs.h. */ |
| 14046 | |
| 14047 | #ifdef HAVE_PTHREAD_H |
| 14048 | #include <pthread.h> |
| 14049 | #endif |
| 14050 | |
| 14051 | |
| 14052 | typedef pthread_t ac__type_sizeof_; |
| 14053 | int |
| 14054 | main () |
| 14055 | { |
| 14056 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14057 | test_array [0] = 0 |
| 14058 | |
| 14059 | ; |
| 14060 | return 0; |
| 14061 | } |
| 14062 | _ACEOF |
| 14063 | rm -f conftest.$ac_objext |
| 14064 | if { (ac_try="$ac_compile" |
| 14065 | case "(($ac_try" in |
| 14066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14067 | *) ac_try_echo=$ac_try;; |
| 14068 | esac |
| 14069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14070 | (eval "$ac_compile") 2>conftest.er1 |
| 14071 | ac_status=$? |
| 14072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14073 | rm -f conftest.er1 |
| 14074 | cat conftest.err >&5 |
| 14075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14076 | (exit $ac_status); } && { |
| 14077 | test -z "$ac_c_werror_flag" || |
| 14078 | test ! -s conftest.err |
| 14079 | } && test -s conftest.$ac_objext; then |
| 14080 | ac_lo=0 ac_mid=0 |
| 14081 | while :; do |
| 14082 | cat >conftest.$ac_ext <<_ACEOF |
| 14083 | /* confdefs.h. */ |
| 14084 | _ACEOF |
| 14085 | cat confdefs.h >>conftest.$ac_ext |
| 14086 | cat >>conftest.$ac_ext <<_ACEOF |
| 14087 | /* end confdefs.h. */ |
| 14088 | |
| 14089 | #ifdef HAVE_PTHREAD_H |
| 14090 | #include <pthread.h> |
| 14091 | #endif |
| 14092 | |
| 14093 | |
| 14094 | typedef pthread_t ac__type_sizeof_; |
| 14095 | int |
| 14096 | main () |
| 14097 | { |
| 14098 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14099 | test_array [0] = 0 |
| 14100 | |
| 14101 | ; |
| 14102 | return 0; |
| 14103 | } |
| 14104 | _ACEOF |
| 14105 | rm -f conftest.$ac_objext |
| 14106 | if { (ac_try="$ac_compile" |
| 14107 | case "(($ac_try" in |
| 14108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14109 | *) ac_try_echo=$ac_try;; |
| 14110 | esac |
| 14111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14112 | (eval "$ac_compile") 2>conftest.er1 |
| 14113 | ac_status=$? |
| 14114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14115 | rm -f conftest.er1 |
| 14116 | cat conftest.err >&5 |
| 14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14118 | (exit $ac_status); } && { |
| 14119 | test -z "$ac_c_werror_flag" || |
| 14120 | test ! -s conftest.err |
| 14121 | } && test -s conftest.$ac_objext; then |
| 14122 | ac_hi=$ac_mid; break |
| 14123 | else |
| 14124 | echo "$as_me: failed program was:" >&5 |
| 14125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14126 | |
| 14127 | ac_lo=`expr $ac_mid + 1` |
| 14128 | if test $ac_lo -le $ac_mid; then |
| 14129 | ac_lo= ac_hi= |
| 14130 | break |
| 14131 | fi |
| 14132 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14133 | fi |
| 14134 | |
| 14135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14136 | done |
| 14137 | else |
| 14138 | echo "$as_me: failed program was:" >&5 |
| 14139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14140 | |
| 14141 | cat >conftest.$ac_ext <<_ACEOF |
| 14142 | /* confdefs.h. */ |
| 14143 | _ACEOF |
| 14144 | cat confdefs.h >>conftest.$ac_ext |
| 14145 | cat >>conftest.$ac_ext <<_ACEOF |
| 14146 | /* end confdefs.h. */ |
| 14147 | |
| 14148 | #ifdef HAVE_PTHREAD_H |
| 14149 | #include <pthread.h> |
| 14150 | #endif |
| 14151 | |
| 14152 | |
| 14153 | typedef pthread_t ac__type_sizeof_; |
| 14154 | int |
| 14155 | main () |
| 14156 | { |
| 14157 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14158 | test_array [0] = 0 |
| 14159 | |
| 14160 | ; |
| 14161 | return 0; |
| 14162 | } |
| 14163 | _ACEOF |
| 14164 | rm -f conftest.$ac_objext |
| 14165 | if { (ac_try="$ac_compile" |
| 14166 | case "(($ac_try" in |
| 14167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14168 | *) ac_try_echo=$ac_try;; |
| 14169 | esac |
| 14170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14171 | (eval "$ac_compile") 2>conftest.er1 |
| 14172 | ac_status=$? |
| 14173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14174 | rm -f conftest.er1 |
| 14175 | cat conftest.err >&5 |
| 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14177 | (exit $ac_status); } && { |
| 14178 | test -z "$ac_c_werror_flag" || |
| 14179 | test ! -s conftest.err |
| 14180 | } && test -s conftest.$ac_objext; then |
| 14181 | ac_hi=-1 ac_mid=-1 |
| 14182 | while :; do |
| 14183 | cat >conftest.$ac_ext <<_ACEOF |
| 14184 | /* confdefs.h. */ |
| 14185 | _ACEOF |
| 14186 | cat confdefs.h >>conftest.$ac_ext |
| 14187 | cat >>conftest.$ac_ext <<_ACEOF |
| 14188 | /* end confdefs.h. */ |
| 14189 | |
| 14190 | #ifdef HAVE_PTHREAD_H |
| 14191 | #include <pthread.h> |
| 14192 | #endif |
| 14193 | |
| 14194 | |
| 14195 | typedef pthread_t ac__type_sizeof_; |
| 14196 | int |
| 14197 | main () |
| 14198 | { |
| 14199 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14200 | test_array [0] = 0 |
| 14201 | |
| 14202 | ; |
| 14203 | return 0; |
| 14204 | } |
| 14205 | _ACEOF |
| 14206 | rm -f conftest.$ac_objext |
| 14207 | if { (ac_try="$ac_compile" |
| 14208 | case "(($ac_try" in |
| 14209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14210 | *) ac_try_echo=$ac_try;; |
| 14211 | esac |
| 14212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14213 | (eval "$ac_compile") 2>conftest.er1 |
| 14214 | ac_status=$? |
| 14215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14216 | rm -f conftest.er1 |
| 14217 | cat conftest.err >&5 |
| 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14219 | (exit $ac_status); } && { |
| 14220 | test -z "$ac_c_werror_flag" || |
| 14221 | test ! -s conftest.err |
| 14222 | } && test -s conftest.$ac_objext; then |
| 14223 | ac_lo=$ac_mid; break |
| 14224 | else |
| 14225 | echo "$as_me: failed program was:" >&5 |
| 14226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14227 | |
| 14228 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14229 | if test $ac_mid -le $ac_hi; then |
| 14230 | ac_lo= ac_hi= |
| 14231 | break |
| 14232 | fi |
| 14233 | ac_mid=`expr 2 '*' $ac_mid` |
| 14234 | fi |
| 14235 | |
| 14236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14237 | done |
| 14238 | else |
| 14239 | echo "$as_me: failed program was:" >&5 |
| 14240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14241 | |
| 14242 | ac_lo= ac_hi= |
| 14243 | fi |
| 14244 | |
| 14245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14246 | fi |
| 14247 | |
| 14248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14249 | # Binary search between lo and hi bounds. |
| 14250 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14251 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14252 | cat >conftest.$ac_ext <<_ACEOF |
| 14253 | /* confdefs.h. */ |
| 14254 | _ACEOF |
| 14255 | cat confdefs.h >>conftest.$ac_ext |
| 14256 | cat >>conftest.$ac_ext <<_ACEOF |
| 14257 | /* end confdefs.h. */ |
| 14258 | |
| 14259 | #ifdef HAVE_PTHREAD_H |
| 14260 | #include <pthread.h> |
| 14261 | #endif |
| 14262 | |
| 14263 | |
| 14264 | typedef pthread_t ac__type_sizeof_; |
| 14265 | int |
| 14266 | main () |
| 14267 | { |
| 14268 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14269 | test_array [0] = 0 |
| 14270 | |
| 14271 | ; |
| 14272 | return 0; |
| 14273 | } |
| 14274 | _ACEOF |
| 14275 | rm -f conftest.$ac_objext |
| 14276 | if { (ac_try="$ac_compile" |
| 14277 | case "(($ac_try" in |
| 14278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14279 | *) ac_try_echo=$ac_try;; |
| 14280 | esac |
| 14281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14282 | (eval "$ac_compile") 2>conftest.er1 |
| 14283 | ac_status=$? |
| 14284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14285 | rm -f conftest.er1 |
| 14286 | cat conftest.err >&5 |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); } && { |
| 14289 | test -z "$ac_c_werror_flag" || |
| 14290 | test ! -s conftest.err |
| 14291 | } && test -s conftest.$ac_objext; then |
| 14292 | ac_hi=$ac_mid |
| 14293 | else |
| 14294 | echo "$as_me: failed program was:" >&5 |
| 14295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14296 | |
| 14297 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14298 | fi |
| 14299 | |
| 14300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14301 | done |
| 14302 | case $ac_lo in |
| 14303 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14304 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14305 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14306 | See \`config.log' for more details." >&5 |
| 14307 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14308 | See \`config.log' for more details." >&2;} |
| 14309 | { (exit 77); exit 77; }; } |
| 14310 | else |
| 14311 | ac_cv_sizeof_pthread_t=0 |
| 14312 | fi ;; |
| 14313 | esac |
| 14314 | else |
| 14315 | cat >conftest.$ac_ext <<_ACEOF |
| 14316 | /* confdefs.h. */ |
| 14317 | _ACEOF |
| 14318 | cat confdefs.h >>conftest.$ac_ext |
| 14319 | cat >>conftest.$ac_ext <<_ACEOF |
| 14320 | /* end confdefs.h. */ |
| 14321 | |
| 14322 | #ifdef HAVE_PTHREAD_H |
| 14323 | #include <pthread.h> |
| 14324 | #endif |
| 14325 | |
| 14326 | |
| 14327 | typedef pthread_t ac__type_sizeof_; |
| 14328 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14329 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14330 | #include <stdio.h> |
| 14331 | #include <stdlib.h> |
| 14332 | int |
| 14333 | main () |
| 14334 | { |
| 14335 | |
| 14336 | FILE *f = fopen ("conftest.val", "w"); |
| 14337 | if (! f) |
| 14338 | return 1; |
| 14339 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14340 | { |
| 14341 | long int i = longval (); |
| 14342 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14343 | return 1; |
| 14344 | fprintf (f, "%ld\n", i); |
| 14345 | } |
| 14346 | else |
| 14347 | { |
| 14348 | unsigned long int i = ulongval (); |
| 14349 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14350 | return 1; |
| 14351 | fprintf (f, "%lu\n", i); |
| 14352 | } |
| 14353 | return ferror (f) || fclose (f) != 0; |
| 14354 | |
| 14355 | ; |
| 14356 | return 0; |
| 14357 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14358 | _ACEOF |
| 14359 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14360 | if { (ac_try="$ac_link" |
| 14361 | case "(($ac_try" in |
| 14362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14363 | *) ac_try_echo=$ac_try;; |
| 14364 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14366 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14367 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14370 | { (case "(($ac_try" in |
| 14371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14372 | *) ac_try_echo=$ac_try;; |
| 14373 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14375 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14379 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14380 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14381 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14386 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14387 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14388 | See \`config.log' for more details." >&5 |
| 14389 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14390 | See \`config.log' for more details." >&2;} |
| 14391 | { (exit 77); exit 77; }; } |
| 14392 | else |
| 14393 | ac_cv_sizeof_pthread_t=0 |
| 14394 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14396 | 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] | 14397 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14398 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14399 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14400 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14401 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14403 | |
| 14404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14406 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14408 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14409 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14410 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14411 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14412 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14413 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14414 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14415 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14416 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14417 | enableval=$enable_toolbox_glue; |
| 14418 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14419 | |
| 14420 | |
| 14421 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14423 | case $ac_sys_system/$ac_sys_release in |
| 14424 | Darwin/*) |
| 14425 | enable_toolbox_glue="yes";; |
| 14426 | *) |
| 14427 | enable_toolbox_glue="no";; |
| 14428 | esac |
| 14429 | fi |
| 14430 | case "$enable_toolbox_glue" in |
| 14431 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14432 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14433 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | |
| 14435 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14436 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14438 | |
| 14439 | ;; |
| 14440 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14441 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14442 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14443 | ;; |
| 14444 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14445 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14446 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14447 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14448 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14449 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14450 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14451 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14452 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14453 | ;; |
| 14454 | Darwin/*) |
| 14455 | OTHER_LIBTOOL_OPT="" |
| 14456 | ;; |
| 14457 | esac |
| 14458 | |
| 14459 | |
| 14460 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14461 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14462 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14463 | if test "${enable_universalsdk}"; then |
| 14464 | : |
| 14465 | else |
| 14466 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 14467 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14468 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14469 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14470 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14471 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14472 | if test ${gcc_version} '<' 4.0 |
| 14473 | then |
| 14474 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14475 | else |
| 14476 | LIBTOOL_CRUFT="" |
| 14477 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 14478 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14479 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14480 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14481 | esac |
| 14482 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14483 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14484 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14485 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14486 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14487 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14489 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | cat >>confdefs.h <<\_ACEOF |
| 14492 | #define WITH_NEXT_FRAMEWORK 1 |
| 14493 | _ACEOF |
| 14494 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14495 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14496 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14497 | if test $enable_shared = "yes" |
| 14498 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14499 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5 |
| 14500 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14501 | { (exit 1); exit 1; }; } |
| 14502 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14503 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14504 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14505 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14506 | fi |
| 14507 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14508 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14509 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14510 | case $ac_sys_system/$ac_sys_release in |
| 14511 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | cat >>confdefs.h <<\_ACEOF |
| 14514 | #define WITH_DYLD 1 |
| 14515 | _ACEOF |
| 14516 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14517 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14518 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14519 | ;; |
| 14520 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14521 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14522 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14523 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14524 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14525 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14526 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14527 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14532 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14533 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14534 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14535 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14536 | if test -z "$SO" |
| 14537 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14538 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14539 | hp*|HP*) |
| 14540 | case `uname -m` in |
| 14541 | ia64) SO=.so;; |
| 14542 | *) SO=.sl;; |
| 14543 | esac |
| 14544 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14545 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14546 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14547 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14548 | else |
| 14549 | # this might also be a termcap variable, see #610332 |
| 14550 | echo |
| 14551 | echo '=====================================================================' |
| 14552 | echo '+ +' |
| 14553 | echo '+ WARNING: You have set SO in your environment. +' |
| 14554 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14555 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14556 | echo '+ +' |
| 14557 | echo '=====================================================================' |
| 14558 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14559 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14560 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14561 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14562 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14563 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14564 | cat >>confdefs.h <<_ACEOF |
| 14565 | #define SHLIB_EXT "$SO" |
| 14566 | _ACEOF |
| 14567 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14568 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14569 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14570 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14571 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14572 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14573 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14574 | if test -z "$LDSHARED" |
| 14575 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14576 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14577 | AIX*) |
| 14578 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14579 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14580 | ;; |
| 14581 | BeOS*) |
| 14582 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14583 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14584 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14585 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14586 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14588 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14589 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14590 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14591 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14592 | hp*|HP*) |
| 14593 | if test "$GCC" = "yes" |
| 14594 | then LDSHARED='$(CC) -shared' |
| 14595 | else LDSHARED='ld -b'; |
| 14596 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14597 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14598 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14599 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14600 | if test "$enable_framework" ; then |
| 14601 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14602 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14603 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14604 | else |
| 14605 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14606 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14607 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14608 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14609 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14610 | if test "$enable_framework" ; then |
| 14611 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14612 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14613 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14614 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14615 | # No framework, use the Python app as bundle-loader |
| 14616 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14617 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14618 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14619 | Darwin/*) |
| 14620 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14621 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14622 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14623 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14624 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14625 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14626 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14627 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14628 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14629 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14630 | else |
| 14631 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14632 | if test "$enable_framework" ; then |
| 14633 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14634 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14635 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14636 | else |
| 14637 | # No framework, use the Python app as bundle-loader |
| 14638 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14639 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14640 | fi |
| 14641 | fi |
| 14642 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14643 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14644 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14645 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14646 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14647 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14648 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14649 | else |
| 14650 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14651 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14652 | OpenBSD*) |
| 14653 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14654 | then |
| 14655 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14656 | else |
| 14657 | case `uname -r` in |
| 14658 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14659 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14660 | ;; |
| 14661 | *) |
| 14662 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14663 | ;; |
| 14664 | esac |
| 14665 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14666 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14667 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14668 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14669 | then LDSHARED='$(CC) -shared' |
| 14670 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14671 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14672 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14673 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14674 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14675 | *) LDSHARED="ld";; |
| 14676 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14677 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14678 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14679 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14680 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14681 | # 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] | 14682 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14683 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14684 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14685 | if test -z "$CCSHARED" |
| 14686 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14687 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14688 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14689 | then CCSHARED="-fPIC"; |
| 14690 | elif test `uname -p` = sparc; |
| 14691 | then CCSHARED="-xcode=pic32"; |
| 14692 | else CCSHARED="-Kpic"; |
| 14693 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14694 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14695 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14696 | else CCSHARED="+z"; |
| 14697 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14698 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14699 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14700 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14701 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14702 | if test "$GCC" = "yes" |
| 14703 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14704 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14705 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14706 | SCO_SV*) |
| 14707 | if test "$GCC" = "yes" |
| 14708 | then CCSHARED="-fPIC" |
| 14709 | else CCSHARED="-Kpic -belf" |
| 14710 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14711 | IRIX*/6*) case $CC in |
| 14712 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14713 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14714 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14715 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14716 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14717 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14718 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14719 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14720 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14721 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14722 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14723 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14724 | if test -z "$LINKFORSHARED" |
| 14725 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14726 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14727 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14728 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14729 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14730 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14731 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14732 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14733 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14734 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14735 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14736 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14737 | # not used by the core itself but which needs to be in the core so |
| 14738 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14739 | # -prebind is no longer used, because it actually seems to give a |
| 14740 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14741 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14742 | |
| 14743 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14744 | if test "$enable_framework" |
| 14745 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14746 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14747 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14748 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14749 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14750 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14751 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14752 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14753 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14754 | then |
| 14755 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14756 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14757 | SunOS/5*) case $CC in |
| 14758 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14759 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14760 | then |
| 14761 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14762 | fi;; |
| 14763 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14764 | CYGWIN*) |
| 14765 | if test $enable_shared = "no" |
| 14766 | then |
| 14767 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14768 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14769 | QNX*) |
| 14770 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14771 | # symbol table so that they can be found when a module |
| 14772 | # is loaded. -N 2048K causes the stack size to be set |
| 14773 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14774 | # when running test_compile.py. |
| 14775 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14776 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14777 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14778 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14779 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14780 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14781 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14782 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14783 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14784 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14785 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14786 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14787 | case $ac_sys_system in |
| 14788 | CYGWIN*) |
| 14789 | # Cygwin needs CCSHARED when building extension DLLs |
| 14790 | # but not when building the interpreter DLL. |
| 14791 | CFLAGSFORSHARED='';; |
| 14792 | *) |
| 14793 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14794 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14795 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14796 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14797 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14798 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14799 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14800 | # library (with --enable-shared). |
| 14801 | # 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] | 14802 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14803 | # if it is not required, since it creates a dependency of the shared library |
| 14804 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14805 | # don't need to link LIBS explicitly. The default should be only changed |
| 14806 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14808 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14809 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14810 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14811 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14812 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14814 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14815 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14816 | |
| 14817 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14818 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14820 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14821 | 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] | 14822 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14826 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14828 | /* confdefs.h. */ |
| 14829 | _ACEOF |
| 14830 | cat confdefs.h >>conftest.$ac_ext |
| 14831 | cat >>conftest.$ac_ext <<_ACEOF |
| 14832 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14834 | /* Override any GCC internal prototype to avoid an error. |
| 14835 | Use char because int might match the return type of a GCC |
| 14836 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | #ifdef __cplusplus |
| 14838 | extern "C" |
| 14839 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14841 | int |
| 14842 | main () |
| 14843 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14844 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14845 | ; |
| 14846 | return 0; |
| 14847 | } |
| 14848 | _ACEOF |
| 14849 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14850 | if { (ac_try="$ac_link" |
| 14851 | case "(($ac_try" in |
| 14852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14853 | *) ac_try_echo=$ac_try;; |
| 14854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14856 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14857 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14859 | rm -f conftest.er1 |
| 14860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14862 | (exit $ac_status); } && { |
| 14863 | test -z "$ac_c_werror_flag" || |
| 14864 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14865 | } && test -s conftest$ac_exeext && |
| 14866 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14867 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14868 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14872 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14873 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14874 | |
| 14875 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14876 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14877 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14878 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14879 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14880 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 14881 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | cat >>confdefs.h <<_ACEOF |
| 14883 | #define HAVE_LIBDL 1 |
| 14884 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14885 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14886 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14887 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14888 | fi |
| 14889 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14891 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 14892 | 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] | 14893 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14896 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14897 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14899 | /* confdefs.h. */ |
| 14900 | _ACEOF |
| 14901 | cat confdefs.h >>conftest.$ac_ext |
| 14902 | cat >>conftest.$ac_ext <<_ACEOF |
| 14903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14905 | /* Override any GCC internal prototype to avoid an error. |
| 14906 | Use char because int might match the return type of a GCC |
| 14907 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14908 | #ifdef __cplusplus |
| 14909 | extern "C" |
| 14910 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14911 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | int |
| 14913 | main () |
| 14914 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14915 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14916 | ; |
| 14917 | return 0; |
| 14918 | } |
| 14919 | _ACEOF |
| 14920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14921 | if { (ac_try="$ac_link" |
| 14922 | case "(($ac_try" in |
| 14923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14924 | *) ac_try_echo=$ac_try;; |
| 14925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14927 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14930 | rm -f conftest.er1 |
| 14931 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14933 | (exit $ac_status); } && { |
| 14934 | test -z "$ac_c_werror_flag" || |
| 14935 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14936 | } && test -s conftest$ac_exeext && |
| 14937 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14939 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14942 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14943 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14944 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14945 | |
| 14946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14947 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14949 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14950 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 14951 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 14952 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | cat >>confdefs.h <<_ACEOF |
| 14954 | #define HAVE_LIBDLD 1 |
| 14955 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14956 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14957 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14958 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14959 | fi |
| 14960 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14961 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14962 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14963 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14964 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 14965 | 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] | 14966 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14968 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14969 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14971 | /* confdefs.h. */ |
| 14972 | _ACEOF |
| 14973 | cat confdefs.h >>conftest.$ac_ext |
| 14974 | cat >>conftest.$ac_ext <<_ACEOF |
| 14975 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14977 | /* Override any GCC internal prototype to avoid an error. |
| 14978 | Use char because int might match the return type of a GCC |
| 14979 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14980 | #ifdef __cplusplus |
| 14981 | extern "C" |
| 14982 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14984 | int |
| 14985 | main () |
| 14986 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14987 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | ; |
| 14989 | return 0; |
| 14990 | } |
| 14991 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14992 | for ac_lib in '' pthread rt posix4; do |
| 14993 | if test -z "$ac_lib"; then |
| 14994 | ac_res="none required" |
| 14995 | else |
| 14996 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14997 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14998 | fi |
| 14999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15000 | if { (ac_try="$ac_link" |
| 15001 | case "(($ac_try" in |
| 15002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15003 | *) ac_try_echo=$ac_try;; |
| 15004 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15006 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15007 | ac_status=$? |
| 15008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15009 | rm -f conftest.er1 |
| 15010 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15012 | (exit $ac_status); } && { |
| 15013 | test -z "$ac_c_werror_flag" || |
| 15014 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15015 | } && test -s conftest$ac_exeext && |
| 15016 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15017 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15018 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15021 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15022 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15023 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15024 | |
| 15025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15026 | conftest$ac_exeext |
| 15027 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15028 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15029 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15030 | done |
| 15031 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15032 | : |
| 15033 | else |
| 15034 | ac_cv_search_sem_init=no |
| 15035 | fi |
| 15036 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15037 | LIBS=$ac_func_search_save_LIBS |
| 15038 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15039 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15040 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15041 | ac_res=$ac_cv_search_sem_init |
| 15042 | if test "$ac_res" != no; then |
| 15043 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15044 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15045 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15046 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15047 | # posix4 on Solaris 2.6 |
| 15048 | # pthread (first!) on Linux |
| 15049 | fi |
| 15050 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15051 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15052 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15053 | 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] | 15054 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15056 | else |
| 15057 | ac_check_lib_save_LIBS=$LIBS |
| 15058 | LIBS="-lintl $LIBS" |
| 15059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15060 | /* confdefs.h. */ |
| 15061 | _ACEOF |
| 15062 | cat confdefs.h >>conftest.$ac_ext |
| 15063 | cat >>conftest.$ac_ext <<_ACEOF |
| 15064 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15066 | /* Override any GCC internal prototype to avoid an error. |
| 15067 | Use char because int might match the return type of a GCC |
| 15068 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15069 | #ifdef __cplusplus |
| 15070 | extern "C" |
| 15071 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15072 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15073 | int |
| 15074 | main () |
| 15075 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15076 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15077 | ; |
| 15078 | return 0; |
| 15079 | } |
| 15080 | _ACEOF |
| 15081 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15082 | if { (ac_try="$ac_link" |
| 15083 | case "(($ac_try" in |
| 15084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15085 | *) ac_try_echo=$ac_try;; |
| 15086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15088 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15091 | rm -f conftest.er1 |
| 15092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15094 | (exit $ac_status); } && { |
| 15095 | test -z "$ac_c_werror_flag" || |
| 15096 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15097 | } && test -s conftest$ac_exeext && |
| 15098 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15099 | ac_cv_lib_intl_textdomain=yes |
| 15100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15104 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15106 | |
| 15107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15108 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15109 | LIBS=$ac_check_lib_save_LIBS |
| 15110 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15111 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15112 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15113 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15114 | |
| 15115 | cat >>confdefs.h <<\_ACEOF |
| 15116 | #define WITH_LIBINTL 1 |
| 15117 | _ACEOF |
| 15118 | |
| 15119 | fi |
| 15120 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15121 | |
| 15122 | # checks for system dependent C++ extensions support |
| 15123 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15124 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15125 | 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] | 15126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15127 | /* confdefs.h. */ |
| 15128 | _ACEOF |
| 15129 | cat confdefs.h >>conftest.$ac_ext |
| 15130 | cat >>conftest.$ac_ext <<_ACEOF |
| 15131 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15132 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | int |
| 15134 | main () |
| 15135 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15136 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | ; |
| 15138 | return 0; |
| 15139 | } |
| 15140 | _ACEOF |
| 15141 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15142 | if { (ac_try="$ac_link" |
| 15143 | case "(($ac_try" in |
| 15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15145 | *) ac_try_echo=$ac_try;; |
| 15146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15148 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15151 | rm -f conftest.er1 |
| 15152 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15154 | (exit $ac_status); } && { |
| 15155 | test -z "$ac_c_werror_flag" || |
| 15156 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15157 | } && test -s conftest$ac_exeext && |
| 15158 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | cat >>confdefs.h <<\_ACEOF |
| 15161 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15162 | _ACEOF |
| 15163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15164 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15165 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15166 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15171 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15172 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15173 | |
| 15174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15175 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15176 | *) ;; |
| 15177 | esac |
| 15178 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15179 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15180 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15181 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15182 | 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] | 15183 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15187 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15189 | /* confdefs.h. */ |
| 15190 | _ACEOF |
| 15191 | cat confdefs.h >>conftest.$ac_ext |
| 15192 | cat >>conftest.$ac_ext <<_ACEOF |
| 15193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15194 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15195 | /* Override any GCC internal prototype to avoid an error. |
| 15196 | Use char because int might match the return type of a GCC |
| 15197 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | #ifdef __cplusplus |
| 15199 | extern "C" |
| 15200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | int |
| 15203 | main () |
| 15204 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15205 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | ; |
| 15207 | return 0; |
| 15208 | } |
| 15209 | _ACEOF |
| 15210 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15211 | if { (ac_try="$ac_link" |
| 15212 | case "(($ac_try" in |
| 15213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15214 | *) ac_try_echo=$ac_try;; |
| 15215 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15217 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15220 | rm -f conftest.er1 |
| 15221 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15223 | (exit $ac_status); } && { |
| 15224 | test -z "$ac_c_werror_flag" || |
| 15225 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15226 | } && test -s conftest$ac_exeext && |
| 15227 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15228 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15232 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15233 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15235 | |
| 15236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15237 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15238 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15239 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15240 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15241 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15242 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15243 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15244 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15245 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15246 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15247 | 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] | 15248 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15252 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15254 | /* confdefs.h. */ |
| 15255 | _ACEOF |
| 15256 | cat confdefs.h >>conftest.$ac_ext |
| 15257 | cat >>conftest.$ac_ext <<_ACEOF |
| 15258 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15260 | /* Override any GCC internal prototype to avoid an error. |
| 15261 | Use char because int might match the return type of a GCC |
| 15262 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | #ifdef __cplusplus |
| 15264 | extern "C" |
| 15265 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15266 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | int |
| 15268 | main () |
| 15269 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15270 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | ; |
| 15272 | return 0; |
| 15273 | } |
| 15274 | _ACEOF |
| 15275 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15276 | if { (ac_try="$ac_link" |
| 15277 | case "(($ac_try" in |
| 15278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15279 | *) ac_try_echo=$ac_try;; |
| 15280 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15282 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15285 | rm -f conftest.er1 |
| 15286 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15288 | (exit $ac_status); } && { |
| 15289 | test -z "$ac_c_werror_flag" || |
| 15290 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15291 | } && test -s conftest$ac_exeext && |
| 15292 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15298 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15299 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15300 | |
| 15301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15302 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15303 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15304 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15305 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15306 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15307 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15308 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15309 | fi |
| 15310 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15311 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15312 | case "$ac_sys_system" in |
| 15313 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15314 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15315 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15320 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15322 | /* confdefs.h. */ |
| 15323 | _ACEOF |
| 15324 | cat confdefs.h >>conftest.$ac_ext |
| 15325 | cat >>conftest.$ac_ext <<_ACEOF |
| 15326 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15328 | /* Override any GCC internal prototype to avoid an error. |
| 15329 | Use char because int might match the return type of a GCC |
| 15330 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | #ifdef __cplusplus |
| 15332 | extern "C" |
| 15333 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15335 | int |
| 15336 | main () |
| 15337 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15338 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15339 | ; |
| 15340 | return 0; |
| 15341 | } |
| 15342 | _ACEOF |
| 15343 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15344 | if { (ac_try="$ac_link" |
| 15345 | case "(($ac_try" in |
| 15346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15347 | *) ac_try_echo=$ac_try;; |
| 15348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15350 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15353 | rm -f conftest.er1 |
| 15354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15356 | (exit $ac_status); } && { |
| 15357 | test -z "$ac_c_werror_flag" || |
| 15358 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15359 | } && test -s conftest$ac_exeext && |
| 15360 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15362 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15365 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15366 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15368 | |
| 15369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15370 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15372 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15373 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15374 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15375 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15376 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15377 | fi |
| 15378 | # BeOS |
| 15379 | ;; |
| 15380 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15381 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15382 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15383 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15385 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15386 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15387 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15388 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15389 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15390 | LIBS="$withval $LIBS" |
| 15391 | |
| 15392 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15394 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15395 | fi |
| 15396 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15397 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15398 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15399 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15400 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15402 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15403 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15404 | withval=$with_system_ffi; |
| 15405 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15406 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15407 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15408 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15409 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15410 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15411 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15412 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15413 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15414 | |
| 15415 | # Check whether --with-dbmliborder was given. |
| 15416 | if test "${with_dbmliborder+set}" = set; then |
| 15417 | withval=$with_dbmliborder; |
| 15418 | if test x$with_dbmliborder = xyes |
| 15419 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15420 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15421 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15422 | { (exit 1); exit 1; }; } |
| 15423 | else |
| 15424 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15425 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15426 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15427 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15428 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15429 | { (exit 1); exit 1; }; } |
| 15430 | fi |
| 15431 | done |
| 15432 | fi |
| 15433 | fi |
| 15434 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15435 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15436 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15437 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15438 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15439 | |
| 15440 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15441 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15442 | 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] | 15443 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15444 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15445 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15446 | withval=$with_signal_module; |
| 15447 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15448 | |
| 15449 | |
| 15450 | if test -z "$with_signal_module" |
| 15451 | then with_signal_module="yes" |
| 15452 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15453 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15454 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15455 | |
| 15456 | if test "${with_signal_module}" = "yes"; then |
| 15457 | USE_SIGNAL_MODULE="" |
| 15458 | SIGNAL_OBJS="" |
| 15459 | else |
| 15460 | USE_SIGNAL_MODULE="#" |
| 15461 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15462 | fi |
| 15463 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15464 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15465 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15466 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15468 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15469 | 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] | 15470 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15472 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15473 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15474 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15475 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15476 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15477 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15478 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15479 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15480 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15481 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15482 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15483 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15484 | fi |
| 15485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | |
| 15487 | # Templates for things AC_DEFINEd more than once. |
| 15488 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15489 | |
| 15490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15491 | |
| 15492 | |
| 15493 | |
| 15494 | |
| 15495 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15496 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15497 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15499 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15500 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15501 | withval=$with_threads; |
| 15502 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15503 | |
| 15504 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15505 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15507 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15508 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15509 | withval=$with_thread; with_threads=$with_thread |
| 15510 | fi |
| 15511 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15512 | |
| 15513 | if test -z "$with_threads" |
| 15514 | then with_threads="yes" |
| 15515 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15516 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15517 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15518 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15519 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15520 | if test "$with_threads" = "no" |
| 15521 | then |
| 15522 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15523 | elif test "$ac_cv_pthread_is_default" = yes |
| 15524 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15525 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15526 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15527 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15528 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15529 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15530 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15531 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15533 | |
| 15534 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15536 | elif test "$ac_cv_kpthread" = "yes" |
| 15537 | then |
| 15538 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15539 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15540 | CXX="$CXX -Kpthread" |
| 15541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15542 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15543 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15545 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15546 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15547 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15548 | elif test "$ac_cv_kthread" = "yes" |
| 15549 | then |
| 15550 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15551 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15552 | CXX="$CXX -Kthread" |
| 15553 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15554 | cat >>confdefs.h <<\_ACEOF |
| 15555 | #define WITH_THREAD 1 |
| 15556 | _ACEOF |
| 15557 | |
| 15558 | posix_threads=yes |
| 15559 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15560 | elif test "$ac_cv_pthread" = "yes" |
| 15561 | then |
| 15562 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15563 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15564 | CXX="$CXX -pthread" |
| 15565 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15566 | cat >>confdefs.h <<\_ACEOF |
| 15567 | #define WITH_THREAD 1 |
| 15568 | _ACEOF |
| 15569 | |
| 15570 | posix_threads=yes |
| 15571 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15572 | else |
| 15573 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15574 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15575 | fi |
| 15576 | if test ! -z "$withval" -a -d "$withval" |
| 15577 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15578 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15579 | |
| 15580 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15581 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15582 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15583 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15584 | 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] | 15585 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15586 | /* confdefs.h. */ |
| 15587 | _ACEOF |
| 15588 | cat confdefs.h >>conftest.$ac_ext |
| 15589 | cat >>conftest.$ac_ext <<_ACEOF |
| 15590 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15591 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15592 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15593 | #ifdef _POSIX_THREADS |
| 15594 | yes |
| 15595 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | |
| 15597 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15599 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15600 | unistd_defines_pthreads=yes |
| 15601 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15602 | unistd_defines_pthreads=no |
| 15603 | fi |
| 15604 | rm -f conftest* |
| 15605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15606 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15607 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15609 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15610 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15613 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15614 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15615 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15619 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15620 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15622 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15623 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15624 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15625 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15626 | /* confdefs.h. */ |
| 15627 | _ACEOF |
| 15628 | cat confdefs.h >>conftest.$ac_ext |
| 15629 | cat >>conftest.$ac_ext <<_ACEOF |
| 15630 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | $ac_includes_default |
| 15632 | #include <cthreads.h> |
| 15633 | _ACEOF |
| 15634 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15635 | if { (ac_try="$ac_compile" |
| 15636 | case "(($ac_try" in |
| 15637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15638 | *) ac_try_echo=$ac_try;; |
| 15639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15641 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15644 | rm -f conftest.er1 |
| 15645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15647 | (exit $ac_status); } && { |
| 15648 | test -z "$ac_c_werror_flag" || |
| 15649 | test ! -s conftest.err |
| 15650 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | ac_header_compiler=yes |
| 15652 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15653 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15656 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15658 | |
| 15659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15661 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | |
| 15663 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15664 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15665 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15667 | /* confdefs.h. */ |
| 15668 | _ACEOF |
| 15669 | cat confdefs.h >>conftest.$ac_ext |
| 15670 | cat >>conftest.$ac_ext <<_ACEOF |
| 15671 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15672 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15673 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15674 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15675 | case "(($ac_try" in |
| 15676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15677 | *) ac_try_echo=$ac_try;; |
| 15678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15682 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | rm -f conftest.er1 |
| 15684 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15686 | (exit $ac_status); } >/dev/null && { |
| 15687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15688 | test ! -s conftest.err |
| 15689 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | ac_header_preproc=yes |
| 15691 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15695 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15699 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15700 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15701 | |
| 15702 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15704 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15705 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15706 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15707 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15708 | 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] | 15709 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15710 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15711 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15712 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15713 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15714 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15715 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15716 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15717 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15718 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15719 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15720 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15721 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15722 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15723 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15724 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15725 | ## -------------------------------------- ## |
| 15726 | ## Report this to http://bugs.python.org/ ## |
| 15727 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15728 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15729 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15730 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15732 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15733 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15736 | else |
| 15737 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15738 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15739 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15740 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15741 | |
| 15742 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15743 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15745 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15749 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | |
| 15753 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15754 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15756 | |
| 15757 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15758 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15759 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15762 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15763 | 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] | 15764 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15767 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15768 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15770 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15771 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15772 | 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] | 15773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15774 | /* confdefs.h. */ |
| 15775 | _ACEOF |
| 15776 | cat confdefs.h >>conftest.$ac_ext |
| 15777 | cat >>conftest.$ac_ext <<_ACEOF |
| 15778 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | $ac_includes_default |
| 15780 | #include <mach/cthreads.h> |
| 15781 | _ACEOF |
| 15782 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15783 | if { (ac_try="$ac_compile" |
| 15784 | case "(($ac_try" in |
| 15785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15786 | *) ac_try_echo=$ac_try;; |
| 15787 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15789 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15792 | rm -f conftest.er1 |
| 15793 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15795 | (exit $ac_status); } && { |
| 15796 | test -z "$ac_c_werror_flag" || |
| 15797 | test ! -s conftest.err |
| 15798 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15799 | ac_header_compiler=yes |
| 15800 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15804 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15805 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15806 | |
| 15807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15808 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15809 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | |
| 15811 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15812 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15813 | 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] | 15814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15815 | /* confdefs.h. */ |
| 15816 | _ACEOF |
| 15817 | cat confdefs.h >>conftest.$ac_ext |
| 15818 | cat >>conftest.$ac_ext <<_ACEOF |
| 15819 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15820 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15822 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15823 | case "(($ac_try" in |
| 15824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15825 | *) ac_try_echo=$ac_try;; |
| 15826 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15828 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15830 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | rm -f conftest.er1 |
| 15832 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15834 | (exit $ac_status); } >/dev/null && { |
| 15835 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15836 | test ! -s conftest.err |
| 15837 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | ac_header_preproc=yes |
| 15839 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15840 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15844 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15847 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15848 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | |
| 15850 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15852 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15853 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15854 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15855 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 15856 | 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] | 15857 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15858 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15859 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15860 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 15861 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 15862 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 15863 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15864 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 15865 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 15866 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15867 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15868 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15869 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15870 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15871 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15872 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15873 | ## -------------------------------------- ## |
| 15874 | ## Report this to http://bugs.python.org/ ## |
| 15875 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15876 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15877 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15878 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15880 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15881 | 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] | 15882 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | else |
| 15885 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15886 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15887 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15888 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | |
| 15890 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15891 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15893 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15897 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | |
| 15901 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15902 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15904 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15905 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15906 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15908 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 15909 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15911 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15912 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15913 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15914 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15915 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15916 | #define WITH_THREAD 1 |
| 15917 | _ACEOF |
| 15918 | |
| 15919 | |
| 15920 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15921 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15923 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15924 | LIBS="-lpth $LIBS" |
| 15925 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15927 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15928 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15929 | |
| 15930 | # Just looking for pthread_create in libpthread is not enough: |
| 15931 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 15932 | # So we really have to include pthread.h, and then link. |
| 15933 | _libs=$LIBS |
| 15934 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15935 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 15936 | 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] | 15937 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15938 | /* confdefs.h. */ |
| 15939 | _ACEOF |
| 15940 | cat confdefs.h >>conftest.$ac_ext |
| 15941 | cat >>conftest.$ac_ext <<_ACEOF |
| 15942 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15943 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15944 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15945 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | int |
| 15947 | main () |
| 15948 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15949 | |
| 15950 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | ; |
| 15952 | return 0; |
| 15953 | } |
| 15954 | _ACEOF |
| 15955 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15956 | if { (ac_try="$ac_link" |
| 15957 | case "(($ac_try" in |
| 15958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15959 | *) ac_try_echo=$ac_try;; |
| 15960 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15962 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15963 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15965 | rm -f conftest.er1 |
| 15966 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15968 | (exit $ac_status); } && { |
| 15969 | test -z "$ac_c_werror_flag" || |
| 15970 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15971 | } && test -s conftest$ac_exeext && |
| 15972 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15974 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15975 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15977 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15979 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15980 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15981 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15982 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15987 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15988 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 15989 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15994 | /* confdefs.h. */ |
| 15995 | _ACEOF |
| 15996 | cat confdefs.h >>conftest.$ac_ext |
| 15997 | cat >>conftest.$ac_ext <<_ACEOF |
| 15998 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15999 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16001 | #define pthread_detach innocuous_pthread_detach |
| 16002 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16003 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16004 | which can conflict with char pthread_detach (); below. |
| 16005 | 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] | 16006 | <limits.h> exists even on freestanding compilers. */ |
| 16007 | |
| 16008 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16009 | # include <limits.h> |
| 16010 | #else |
| 16011 | # include <assert.h> |
| 16012 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16013 | |
| 16014 | #undef pthread_detach |
| 16015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16016 | /* Override any GCC internal prototype to avoid an error. |
| 16017 | Use char because int might match the return type of a GCC |
| 16018 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | #ifdef __cplusplus |
| 16020 | extern "C" |
| 16021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16023 | /* The GNU C library defines this for functions which it implements |
| 16024 | to always fail with ENOSYS. Some functions are actually named |
| 16025 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16026 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16027 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16028 | #endif |
| 16029 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16030 | int |
| 16031 | main () |
| 16032 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16033 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | ; |
| 16035 | return 0; |
| 16036 | } |
| 16037 | _ACEOF |
| 16038 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16039 | if { (ac_try="$ac_link" |
| 16040 | case "(($ac_try" in |
| 16041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16042 | *) ac_try_echo=$ac_try;; |
| 16043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16045 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16048 | rm -f conftest.er1 |
| 16049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16051 | (exit $ac_status); } && { |
| 16052 | test -z "$ac_c_werror_flag" || |
| 16053 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16054 | } && test -s conftest$ac_exeext && |
| 16055 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16057 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16060 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16061 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16062 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16063 | |
| 16064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16065 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16066 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16067 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16068 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16069 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16071 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16072 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16073 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16074 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16075 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16076 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16077 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16078 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16079 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16080 | 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] | 16081 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16083 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16084 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16085 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16086 | else |
| 16087 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16088 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16089 | 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] | 16090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16091 | /* confdefs.h. */ |
| 16092 | _ACEOF |
| 16093 | cat confdefs.h >>conftest.$ac_ext |
| 16094 | cat >>conftest.$ac_ext <<_ACEOF |
| 16095 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16096 | $ac_includes_default |
| 16097 | #include <atheos/threads.h> |
| 16098 | _ACEOF |
| 16099 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16100 | if { (ac_try="$ac_compile" |
| 16101 | case "(($ac_try" in |
| 16102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16103 | *) ac_try_echo=$ac_try;; |
| 16104 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16106 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16109 | rm -f conftest.er1 |
| 16110 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16112 | (exit $ac_status); } && { |
| 16113 | test -z "$ac_c_werror_flag" || |
| 16114 | test ! -s conftest.err |
| 16115 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16116 | ac_header_compiler=yes |
| 16117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16121 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16123 | |
| 16124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16125 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16126 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16127 | |
| 16128 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16129 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16130 | 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] | 16131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16132 | /* confdefs.h. */ |
| 16133 | _ACEOF |
| 16134 | cat confdefs.h >>conftest.$ac_ext |
| 16135 | cat >>conftest.$ac_ext <<_ACEOF |
| 16136 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16137 | #include <atheos/threads.h> |
| 16138 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16139 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16140 | case "(($ac_try" in |
| 16141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16142 | *) ac_try_echo=$ac_try;; |
| 16143 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16145 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16146 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16147 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16148 | rm -f conftest.er1 |
| 16149 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16151 | (exit $ac_status); } >/dev/null && { |
| 16152 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16153 | test ! -s conftest.err |
| 16154 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16155 | ac_header_preproc=yes |
| 16156 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16157 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16159 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16160 | ac_header_preproc=no |
| 16161 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16162 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16163 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16166 | |
| 16167 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16169 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16170 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16171 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16172 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16173 | 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] | 16174 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16175 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16176 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16177 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16178 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16179 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16180 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16181 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16182 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16183 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16184 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16185 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16186 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16187 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16188 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16189 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16190 | ## -------------------------------------- ## |
| 16191 | ## Report this to http://bugs.python.org/ ## |
| 16192 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16193 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16194 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16195 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16197 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16198 | 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] | 16199 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16201 | else |
| 16202 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16203 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16204 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16205 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16206 | |
| 16207 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16208 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16209 | cat >>confdefs.h <<\_ACEOF |
| 16210 | #define WITH_THREAD 1 |
| 16211 | _ACEOF |
| 16212 | |
| 16213 | |
| 16214 | cat >>confdefs.h <<\_ACEOF |
| 16215 | #define ATHEOS_THREADS 1 |
| 16216 | _ACEOF |
| 16217 | |
| 16218 | THREADOBJ="Python/thread.o" |
| 16219 | else |
| 16220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16222 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16223 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16227 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16228 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16231 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16232 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16234 | /* confdefs.h. */ |
| 16235 | _ACEOF |
| 16236 | cat confdefs.h >>conftest.$ac_ext |
| 16237 | cat >>conftest.$ac_ext <<_ACEOF |
| 16238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | $ac_includes_default |
| 16240 | #include <kernel/OS.h> |
| 16241 | _ACEOF |
| 16242 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16243 | if { (ac_try="$ac_compile" |
| 16244 | case "(($ac_try" in |
| 16245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16246 | *) ac_try_echo=$ac_try;; |
| 16247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16249 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16250 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16252 | rm -f conftest.er1 |
| 16253 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16255 | (exit $ac_status); } && { |
| 16256 | test -z "$ac_c_werror_flag" || |
| 16257 | test ! -s conftest.err |
| 16258 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16259 | ac_header_compiler=yes |
| 16260 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16264 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16266 | |
| 16267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16268 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16269 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | |
| 16271 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16272 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16273 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16275 | /* confdefs.h. */ |
| 16276 | _ACEOF |
| 16277 | cat confdefs.h >>conftest.$ac_ext |
| 16278 | cat >>conftest.$ac_ext <<_ACEOF |
| 16279 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16280 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16282 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16283 | case "(($ac_try" in |
| 16284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16285 | *) ac_try_echo=$ac_try;; |
| 16286 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16288 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16290 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16291 | rm -f conftest.er1 |
| 16292 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16294 | (exit $ac_status); } >/dev/null && { |
| 16295 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16296 | test ! -s conftest.err |
| 16297 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | ac_header_preproc=yes |
| 16299 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16304 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16307 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16308 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16311 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16312 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16313 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16314 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16315 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16316 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16317 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16318 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16319 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16320 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16321 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16322 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16323 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16324 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16325 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16326 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16327 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16328 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16329 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16330 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16331 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16332 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16333 | ## -------------------------------------- ## |
| 16334 | ## Report this to http://bugs.python.org/ ## |
| 16335 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16336 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16337 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16338 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16339 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16340 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16341 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | else |
| 16345 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16346 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16347 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16348 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16349 | |
| 16350 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16351 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16352 | cat >>confdefs.h <<\_ACEOF |
| 16353 | #define WITH_THREAD 1 |
| 16354 | _ACEOF |
| 16355 | |
| 16356 | |
| 16357 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16358 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16360 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16361 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16362 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16363 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16364 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16365 | 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] | 16366 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16370 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16372 | /* confdefs.h. */ |
| 16373 | _ACEOF |
| 16374 | cat confdefs.h >>conftest.$ac_ext |
| 16375 | cat >>conftest.$ac_ext <<_ACEOF |
| 16376 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16378 | /* Override any GCC internal prototype to avoid an error. |
| 16379 | Use char because int might match the return type of a GCC |
| 16380 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | #ifdef __cplusplus |
| 16382 | extern "C" |
| 16383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16384 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | int |
| 16386 | main () |
| 16387 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16388 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | ; |
| 16390 | return 0; |
| 16391 | } |
| 16392 | _ACEOF |
| 16393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16394 | if { (ac_try="$ac_link" |
| 16395 | case "(($ac_try" in |
| 16396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16397 | *) ac_try_echo=$ac_try;; |
| 16398 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16400 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16401 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16403 | rm -f conftest.er1 |
| 16404 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16406 | (exit $ac_status); } && { |
| 16407 | test -z "$ac_c_werror_flag" || |
| 16408 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16409 | } && test -s conftest$ac_exeext && |
| 16410 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16411 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16412 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16416 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16417 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16418 | |
| 16419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16420 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16421 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16422 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16423 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16424 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16425 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16427 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16429 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16430 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16431 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16432 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16433 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16434 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16435 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16436 | 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] | 16437 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16440 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16441 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16443 | /* confdefs.h. */ |
| 16444 | _ACEOF |
| 16445 | cat confdefs.h >>conftest.$ac_ext |
| 16446 | cat >>conftest.$ac_ext <<_ACEOF |
| 16447 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16449 | /* Override any GCC internal prototype to avoid an error. |
| 16450 | Use char because int might match the return type of a GCC |
| 16451 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16452 | #ifdef __cplusplus |
| 16453 | extern "C" |
| 16454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16455 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16456 | int |
| 16457 | main () |
| 16458 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16459 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | ; |
| 16461 | return 0; |
| 16462 | } |
| 16463 | _ACEOF |
| 16464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16465 | if { (ac_try="$ac_link" |
| 16466 | case "(($ac_try" in |
| 16467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16468 | *) ac_try_echo=$ac_try;; |
| 16469 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16471 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16474 | rm -f conftest.er1 |
| 16475 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16477 | (exit $ac_status); } && { |
| 16478 | test -z "$ac_c_werror_flag" || |
| 16479 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16480 | } && test -s conftest$ac_exeext && |
| 16481 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16483 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16486 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16487 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16489 | |
| 16490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16491 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16493 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16495 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16496 | 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] | 16497 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16498 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16499 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16500 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16501 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16502 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16503 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16504 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16505 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16506 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16507 | 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] | 16508 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16511 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16512 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16514 | /* confdefs.h. */ |
| 16515 | _ACEOF |
| 16516 | cat confdefs.h >>conftest.$ac_ext |
| 16517 | cat >>conftest.$ac_ext <<_ACEOF |
| 16518 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16520 | /* Override any GCC internal prototype to avoid an error. |
| 16521 | Use char because int might match the return type of a GCC |
| 16522 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16523 | #ifdef __cplusplus |
| 16524 | extern "C" |
| 16525 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16526 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16527 | int |
| 16528 | main () |
| 16529 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16530 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16531 | ; |
| 16532 | return 0; |
| 16533 | } |
| 16534 | _ACEOF |
| 16535 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16536 | if { (ac_try="$ac_link" |
| 16537 | case "(($ac_try" in |
| 16538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16539 | *) ac_try_echo=$ac_try;; |
| 16540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16542 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16545 | rm -f conftest.er1 |
| 16546 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16548 | (exit $ac_status); } && { |
| 16549 | test -z "$ac_c_werror_flag" || |
| 16550 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16551 | } && test -s conftest$ac_exeext && |
| 16552 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16554 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16555 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16557 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16558 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16559 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16560 | |
| 16561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16562 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16564 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16566 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16567 | 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] | 16568 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16569 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16571 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16572 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16573 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16574 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16575 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16577 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16578 | 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] | 16579 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16582 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16583 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16585 | /* confdefs.h. */ |
| 16586 | _ACEOF |
| 16587 | cat confdefs.h >>conftest.$ac_ext |
| 16588 | cat >>conftest.$ac_ext <<_ACEOF |
| 16589 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16590 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16591 | /* Override any GCC internal prototype to avoid an error. |
| 16592 | Use char because int might match the return type of a GCC |
| 16593 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | #ifdef __cplusplus |
| 16595 | extern "C" |
| 16596 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16598 | int |
| 16599 | main () |
| 16600 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16601 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16602 | ; |
| 16603 | return 0; |
| 16604 | } |
| 16605 | _ACEOF |
| 16606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16607 | if { (ac_try="$ac_link" |
| 16608 | case "(($ac_try" in |
| 16609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16610 | *) ac_try_echo=$ac_try;; |
| 16611 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16613 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16616 | rm -f conftest.er1 |
| 16617 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16619 | (exit $ac_status); } && { |
| 16620 | test -z "$ac_c_werror_flag" || |
| 16621 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16622 | } && test -s conftest$ac_exeext && |
| 16623 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16624 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16625 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16628 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16629 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16630 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16631 | |
| 16632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16633 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16635 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16636 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16637 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16638 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16640 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16642 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16643 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16644 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16645 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16646 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16647 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16648 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16649 | fi |
| 16650 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16651 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16652 | fi |
| 16653 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16654 | fi |
| 16655 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16656 | fi |
| 16657 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16658 | fi |
| 16659 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16660 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16661 | fi |
| 16662 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16663 | |
| 16664 | fi |
| 16665 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16667 | |
| 16668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16669 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16670 | fi |
| 16671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16672 | fi |
| 16673 | |
| 16674 | |
| 16675 | fi |
| 16676 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16677 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16678 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16679 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16680 | 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] | 16681 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16685 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16687 | /* confdefs.h. */ |
| 16688 | _ACEOF |
| 16689 | cat confdefs.h >>conftest.$ac_ext |
| 16690 | cat >>conftest.$ac_ext <<_ACEOF |
| 16691 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16693 | /* Override any GCC internal prototype to avoid an error. |
| 16694 | Use char because int might match the return type of a GCC |
| 16695 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | #ifdef __cplusplus |
| 16697 | extern "C" |
| 16698 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | int |
| 16701 | main () |
| 16702 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16703 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | ; |
| 16705 | return 0; |
| 16706 | } |
| 16707 | _ACEOF |
| 16708 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16709 | if { (ac_try="$ac_link" |
| 16710 | case "(($ac_try" in |
| 16711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16712 | *) ac_try_echo=$ac_try;; |
| 16713 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16715 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16718 | rm -f conftest.er1 |
| 16719 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16721 | (exit $ac_status); } && { |
| 16722 | test -z "$ac_c_werror_flag" || |
| 16723 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16724 | } && test -s conftest$ac_exeext && |
| 16725 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16727 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16730 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16731 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16732 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16733 | |
| 16734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16735 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16736 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16737 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16738 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16739 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 16740 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16742 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16743 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16744 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16745 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16746 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16747 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16748 | fi |
| 16749 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16750 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16751 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16752 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16753 | 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] | 16754 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16757 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16758 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16760 | /* confdefs.h. */ |
| 16761 | _ACEOF |
| 16762 | cat confdefs.h >>conftest.$ac_ext |
| 16763 | cat >>conftest.$ac_ext <<_ACEOF |
| 16764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16765 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16766 | /* Override any GCC internal prototype to avoid an error. |
| 16767 | Use char because int might match the return type of a GCC |
| 16768 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | #ifdef __cplusplus |
| 16770 | extern "C" |
| 16771 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16773 | int |
| 16774 | main () |
| 16775 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16776 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | ; |
| 16778 | return 0; |
| 16779 | } |
| 16780 | _ACEOF |
| 16781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16782 | if { (ac_try="$ac_link" |
| 16783 | case "(($ac_try" in |
| 16784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16785 | *) ac_try_echo=$ac_try;; |
| 16786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16788 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16791 | rm -f conftest.er1 |
| 16792 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16794 | (exit $ac_status); } && { |
| 16795 | test -z "$ac_c_werror_flag" || |
| 16796 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16797 | } && test -s conftest$ac_exeext && |
| 16798 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16800 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16804 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16805 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16806 | |
| 16807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16808 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16810 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16811 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16812 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 16813 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16815 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16817 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16818 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16819 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16820 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16821 | fi |
| 16822 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16823 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16824 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16825 | if test "$USE_THREAD_MODULE" != "#" |
| 16826 | then |
| 16827 | # If the above checks didn't disable threads, (at least) OSF1 |
| 16828 | # needs this '-threads' argument during linking. |
| 16829 | case $ac_sys_system in |
| 16830 | OSF1) LDLAST=-threads;; |
| 16831 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 16832 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16833 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16834 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16835 | if test "$posix_threads" = "yes"; then |
| 16836 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16837 | |
| 16838 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16839 | #define _POSIX_THREADS 1 |
| 16840 | _ACEOF |
| 16841 | |
| 16842 | fi |
| 16843 | |
| 16844 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 16845 | case $ac_sys_system/$ac_sys_release in |
| 16846 | SunOS/5.6) |
| 16847 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16848 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 16849 | _ACEOF |
| 16850 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16851 | ;; |
| 16852 | SunOS/5.8) |
| 16853 | cat >>confdefs.h <<\_ACEOF |
| 16854 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16855 | _ACEOF |
| 16856 | |
| 16857 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 16858 | AIX/5) |
| 16859 | cat >>confdefs.h <<\_ACEOF |
| 16860 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16861 | _ACEOF |
| 16862 | |
| 16863 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16864 | esac |
| 16865 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16866 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 16867 | 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] | 16868 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16870 | else |
| 16871 | if test "$cross_compiling" = yes; then |
| 16872 | ac_cv_pthread_system_supported=no |
| 16873 | else |
| 16874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16875 | /* confdefs.h. */ |
| 16876 | _ACEOF |
| 16877 | cat confdefs.h >>conftest.$ac_ext |
| 16878 | cat >>conftest.$ac_ext <<_ACEOF |
| 16879 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16880 | #include <pthread.h> |
| 16881 | void *foo(void *parm) { |
| 16882 | return NULL; |
| 16883 | } |
| 16884 | main() { |
| 16885 | pthread_attr_t attr; |
| 16886 | pthread_t id; |
| 16887 | if (pthread_attr_init(&attr)) exit(-1); |
| 16888 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 16889 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 16890 | exit(0); |
| 16891 | } |
| 16892 | _ACEOF |
| 16893 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16894 | if { (ac_try="$ac_link" |
| 16895 | case "(($ac_try" in |
| 16896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16897 | *) ac_try_echo=$ac_try;; |
| 16898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16900 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16901 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16904 | { (case "(($ac_try" in |
| 16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16906 | *) ac_try_echo=$ac_try;; |
| 16907 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16909 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16910 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16912 | (exit $ac_status); }; }; then |
| 16913 | ac_cv_pthread_system_supported=yes |
| 16914 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16915 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16916 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16918 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16919 | ( exit $ac_status ) |
| 16920 | ac_cv_pthread_system_supported=no |
| 16921 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16922 | 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] | 16923 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16925 | |
| 16926 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16927 | fi |
| 16928 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16929 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 16930 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16931 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 16932 | |
| 16933 | cat >>confdefs.h <<\_ACEOF |
| 16934 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 16935 | _ACEOF |
| 16936 | |
| 16937 | fi |
| 16938 | |
| 16939 | for ac_func in pthread_sigmask |
| 16940 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16944 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16946 | else |
| 16947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16948 | /* confdefs.h. */ |
| 16949 | _ACEOF |
| 16950 | cat confdefs.h >>conftest.$ac_ext |
| 16951 | cat >>conftest.$ac_ext <<_ACEOF |
| 16952 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16955 | #define $ac_func innocuous_$ac_func |
| 16956 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16957 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16958 | which can conflict with char $ac_func (); below. |
| 16959 | 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] | 16960 | <limits.h> exists even on freestanding compilers. */ |
| 16961 | |
| 16962 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16963 | # include <limits.h> |
| 16964 | #else |
| 16965 | # include <assert.h> |
| 16966 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16967 | |
| 16968 | #undef $ac_func |
| 16969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16970 | /* Override any GCC internal prototype to avoid an error. |
| 16971 | Use char because int might match the return type of a GCC |
| 16972 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16973 | #ifdef __cplusplus |
| 16974 | extern "C" |
| 16975 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16976 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16977 | /* The GNU C library defines this for functions which it implements |
| 16978 | to always fail with ENOSYS. Some functions are actually named |
| 16979 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16980 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16981 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16982 | #endif |
| 16983 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16984 | int |
| 16985 | main () |
| 16986 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16987 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16988 | ; |
| 16989 | return 0; |
| 16990 | } |
| 16991 | _ACEOF |
| 16992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16993 | if { (ac_try="$ac_link" |
| 16994 | case "(($ac_try" in |
| 16995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16996 | *) ac_try_echo=$ac_try;; |
| 16997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16999 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17000 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17002 | rm -f conftest.er1 |
| 17003 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17005 | (exit $ac_status); } && { |
| 17006 | test -z "$ac_c_werror_flag" || |
| 17007 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17008 | } && test -s conftest$ac_exeext && |
| 17009 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17010 | eval "$as_ac_var=yes" |
| 17011 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17012 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17015 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17016 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17017 | |
| 17018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17019 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17020 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17021 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17023 | echo "${ECHO_T}$ac_res" >&6; } |
| 17024 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17025 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17027 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17028 | case $ac_sys_system in |
| 17029 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17030 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17031 | cat >>confdefs.h <<\_ACEOF |
| 17032 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17033 | _ACEOF |
| 17034 | |
| 17035 | ;; |
| 17036 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17037 | fi |
| 17038 | done |
| 17039 | |
| 17040 | fi |
| 17041 | |
| 17042 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17043 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | |
| 17045 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17046 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17047 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17048 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17049 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17050 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17051 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17053 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17054 | ipv6=no |
| 17055 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17056 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17057 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17059 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17061 | |
| 17062 | ipv6=yes |
| 17063 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17067 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17069 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17070 | ipv6=no |
| 17071 | |
| 17072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17074 | /* confdefs.h. */ |
| 17075 | _ACEOF |
| 17076 | cat confdefs.h >>conftest.$ac_ext |
| 17077 | cat >>conftest.$ac_ext <<_ACEOF |
| 17078 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17079 | /* AF_INET6 available check */ |
| 17080 | #include <sys/types.h> |
| 17081 | #include <sys/socket.h> |
| 17082 | main() |
| 17083 | { |
| 17084 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17085 | exit(1); |
| 17086 | else |
| 17087 | exit(0); |
| 17088 | } |
| 17089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 | _ACEOF |
| 17091 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17092 | if { (ac_try="$ac_link" |
| 17093 | case "(($ac_try" in |
| 17094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17095 | *) ac_try_echo=$ac_try;; |
| 17096 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17098 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17099 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17102 | { (case "(($ac_try" in |
| 17103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17104 | *) ac_try_echo=$ac_try;; |
| 17105 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17107 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17108 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17110 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17111 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17112 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17113 | ipv6=yes |
| 17114 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17115 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17116 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17119 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17120 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17121 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17122 | ipv6=no |
| 17123 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17124 | 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] | 17125 | fi |
| 17126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17127 | |
| 17128 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17129 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17130 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17131 | 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] | 17132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17133 | /* confdefs.h. */ |
| 17134 | _ACEOF |
| 17135 | cat confdefs.h >>conftest.$ac_ext |
| 17136 | cat >>conftest.$ac_ext <<_ACEOF |
| 17137 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17138 | #include <sys/types.h> |
| 17139 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 | int |
| 17141 | main () |
| 17142 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17143 | struct sockaddr_in6 x; |
| 17144 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17145 | ; |
| 17146 | return 0; |
| 17147 | } |
| 17148 | _ACEOF |
| 17149 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17150 | if { (ac_try="$ac_compile" |
| 17151 | case "(($ac_try" in |
| 17152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17153 | *) ac_try_echo=$ac_try;; |
| 17154 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17156 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17159 | rm -f conftest.er1 |
| 17160 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17162 | (exit $ac_status); } && { |
| 17163 | test -z "$ac_c_werror_flag" || |
| 17164 | test ! -s conftest.err |
| 17165 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17166 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17167 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17168 | ipv6=yes |
| 17169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17172 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17174 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17175 | ipv6=no |
| 17176 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17177 | |
| 17178 | 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] | 17179 | fi |
| 17180 | |
| 17181 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17183 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17185 | |
| 17186 | fi |
| 17187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17188 | fi |
| 17189 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17190 | |
| 17191 | ipv6type=unknown |
| 17192 | ipv6lib=none |
| 17193 | ipv6trylibc=no |
| 17194 | |
| 17195 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17196 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17197 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17198 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17199 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17200 | case $i in |
| 17201 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17202 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17203 | /* confdefs.h. */ |
| 17204 | _ACEOF |
| 17205 | cat confdefs.h >>conftest.$ac_ext |
| 17206 | cat >>conftest.$ac_ext <<_ACEOF |
| 17207 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17208 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17209 | #include <netinet/in.h> |
| 17210 | #ifdef IPV6_INRIA_VERSION |
| 17211 | yes |
| 17212 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17213 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17215 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17216 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17217 | fi |
| 17218 | rm -f conftest* |
| 17219 | |
| 17220 | ;; |
| 17221 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17223 | /* confdefs.h. */ |
| 17224 | _ACEOF |
| 17225 | cat confdefs.h >>conftest.$ac_ext |
| 17226 | cat >>conftest.$ac_ext <<_ACEOF |
| 17227 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17228 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17229 | #include <netinet/in.h> |
| 17230 | #ifdef __KAME__ |
| 17231 | yes |
| 17232 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17235 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17236 | ipv6type=$i; |
| 17237 | ipv6lib=inet6 |
| 17238 | ipv6libdir=/usr/local/v6/lib |
| 17239 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17240 | fi |
| 17241 | rm -f conftest* |
| 17242 | |
| 17243 | ;; |
| 17244 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17245 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17246 | /* confdefs.h. */ |
| 17247 | _ACEOF |
| 17248 | cat confdefs.h >>conftest.$ac_ext |
| 17249 | cat >>conftest.$ac_ext <<_ACEOF |
| 17250 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17251 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17252 | #include <features.h> |
| 17253 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17254 | yes |
| 17255 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17256 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17258 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17259 | ipv6type=$i; |
| 17260 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17261 | fi |
| 17262 | rm -f conftest* |
| 17263 | |
| 17264 | ;; |
| 17265 | linux-inet6) |
| 17266 | if test -d /usr/inet6; then |
| 17267 | ipv6type=$i |
| 17268 | ipv6lib=inet6 |
| 17269 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17270 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17271 | fi |
| 17272 | ;; |
| 17273 | solaris) |
| 17274 | if test -f /etc/netconfig; then |
| 17275 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17276 | ipv6type=$i |
| 17277 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17278 | fi |
| 17279 | fi |
| 17280 | ;; |
| 17281 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17283 | /* confdefs.h. */ |
| 17284 | _ACEOF |
| 17285 | cat confdefs.h >>conftest.$ac_ext |
| 17286 | cat >>conftest.$ac_ext <<_ACEOF |
| 17287 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17288 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17289 | #include <sys/param.h> |
| 17290 | #ifdef _TOSHIBA_INET6 |
| 17291 | yes |
| 17292 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17293 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17295 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17296 | ipv6type=$i; |
| 17297 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17298 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17299 | fi |
| 17300 | rm -f conftest* |
| 17301 | |
| 17302 | ;; |
| 17303 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17305 | /* confdefs.h. */ |
| 17306 | _ACEOF |
| 17307 | cat confdefs.h >>conftest.$ac_ext |
| 17308 | cat >>conftest.$ac_ext <<_ACEOF |
| 17309 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17310 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17311 | #include </usr/local/v6/include/sys/v6config.h> |
| 17312 | #ifdef __V6D__ |
| 17313 | yes |
| 17314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17315 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17317 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17318 | ipv6type=$i; |
| 17319 | ipv6lib=v6; |
| 17320 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17321 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17322 | fi |
| 17323 | rm -f conftest* |
| 17324 | |
| 17325 | ;; |
| 17326 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17328 | /* confdefs.h. */ |
| 17329 | _ACEOF |
| 17330 | cat confdefs.h >>conftest.$ac_ext |
| 17331 | cat >>conftest.$ac_ext <<_ACEOF |
| 17332 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17333 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17334 | #include <sys/param.h> |
| 17335 | #ifdef _ZETA_MINAMI_INET6 |
| 17336 | yes |
| 17337 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17338 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17340 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17341 | ipv6type=$i; |
| 17342 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17343 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17344 | fi |
| 17345 | rm -f conftest* |
| 17346 | |
| 17347 | ;; |
| 17348 | esac |
| 17349 | if test "$ipv6type" != "unknown"; then |
| 17350 | break |
| 17351 | fi |
| 17352 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17353 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17354 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17355 | fi |
| 17356 | |
| 17357 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17358 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17359 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17360 | echo "using lib$ipv6lib" |
| 17361 | else |
| 17362 | if test $ipv6trylibc = "yes"; then |
| 17363 | echo "using libc" |
| 17364 | else |
| 17365 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17366 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17367 | echo 'ipv6 kit and compile beforehand.' |
| 17368 | exit 1 |
| 17369 | fi |
| 17370 | fi |
| 17371 | fi |
| 17372 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17373 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17374 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17375 | cat >conftest.$ac_ext <<_ACEOF |
| 17376 | /* confdefs.h. */ |
| 17377 | _ACEOF |
| 17378 | cat confdefs.h >>conftest.$ac_ext |
| 17379 | cat >>conftest.$ac_ext <<_ACEOF |
| 17380 | /* end confdefs.h. */ |
| 17381 | #include <Carbon/Carbon.h> |
| 17382 | int |
| 17383 | main () |
| 17384 | { |
| 17385 | FSIORefNum fRef = 0 |
| 17386 | ; |
| 17387 | return 0; |
| 17388 | } |
| 17389 | _ACEOF |
| 17390 | rm -f conftest.$ac_objext |
| 17391 | if { (ac_try="$ac_compile" |
| 17392 | case "(($ac_try" in |
| 17393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17394 | *) ac_try_echo=$ac_try;; |
| 17395 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17397 | (eval "$ac_compile") 2>conftest.er1 |
| 17398 | ac_status=$? |
| 17399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17400 | rm -f conftest.er1 |
| 17401 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17403 | (exit $ac_status); } && { |
| 17404 | test -z "$ac_c_werror_flag" || |
| 17405 | test ! -s conftest.err |
| 17406 | } && test -s conftest.$ac_objext; then |
| 17407 | |
| 17408 | cat >>confdefs.h <<\_ACEOF |
| 17409 | #define HAVE_OSX105_SDK 1 |
| 17410 | _ACEOF |
| 17411 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17412 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17413 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17414 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17415 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17417 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17419 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17420 | |
| 17421 | fi |
| 17422 | |
| 17423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17424 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17425 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17426 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17427 | 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] | 17428 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17429 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17430 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17431 | withval=$with_doc_strings; |
| 17432 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17433 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17434 | |
| 17435 | if test -z "$with_doc_strings" |
| 17436 | then with_doc_strings="yes" |
| 17437 | fi |
| 17438 | if test "$with_doc_strings" != "no" |
| 17439 | then |
| 17440 | |
| 17441 | cat >>confdefs.h <<\_ACEOF |
| 17442 | #define WITH_DOC_STRINGS 1 |
| 17443 | _ACEOF |
| 17444 | |
| 17445 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17446 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17447 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17448 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17449 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17450 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17451 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17453 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17454 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17455 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17456 | if test "$withval" != no |
| 17457 | then |
| 17458 | |
| 17459 | cat >>confdefs.h <<\_ACEOF |
| 17460 | #define WITH_TSC 1 |
| 17461 | _ACEOF |
| 17462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17463 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17464 | echo "${ECHO_T}yes" >&6; } |
| 17465 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17466 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17467 | fi |
| 17468 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17470 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17471 | fi |
| 17472 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17473 | |
| 17474 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17475 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17476 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17478 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17479 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17480 | withval=$with_pymalloc; |
| 17481 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17482 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17483 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17484 | if test -z "$with_pymalloc" |
| 17485 | then with_pymalloc="yes" |
| 17486 | fi |
| 17487 | if test "$with_pymalloc" != "no" |
| 17488 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | |
| 17490 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17491 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17493 | |
| 17494 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17495 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17496 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17497 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17498 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17499 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17500 | 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] | 17501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17502 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17503 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17504 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17505 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17506 | then |
| 17507 | |
| 17508 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17509 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | _ACEOF |
| 17511 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17512 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17513 | echo "${ECHO_T}yes" >&6; } |
| 17514 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17515 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17516 | fi |
| 17517 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17519 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17520 | fi |
| 17521 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17522 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17523 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17524 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17525 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17526 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17527 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17528 | # 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] | 17529 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17530 | for ac_func in dlopen |
| 17531 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17533 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17535 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17539 | /* confdefs.h. */ |
| 17540 | _ACEOF |
| 17541 | cat confdefs.h >>conftest.$ac_ext |
| 17542 | cat >>conftest.$ac_ext <<_ACEOF |
| 17543 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17546 | #define $ac_func innocuous_$ac_func |
| 17547 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17548 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17549 | which can conflict with char $ac_func (); below. |
| 17550 | 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] | 17551 | <limits.h> exists even on freestanding compilers. */ |
| 17552 | |
| 17553 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17554 | # include <limits.h> |
| 17555 | #else |
| 17556 | # include <assert.h> |
| 17557 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17558 | |
| 17559 | #undef $ac_func |
| 17560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17561 | /* Override any GCC internal prototype to avoid an error. |
| 17562 | Use char because int might match the return type of a GCC |
| 17563 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17564 | #ifdef __cplusplus |
| 17565 | extern "C" |
| 17566 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17568 | /* The GNU C library defines this for functions which it implements |
| 17569 | to always fail with ENOSYS. Some functions are actually named |
| 17570 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17571 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17572 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17573 | #endif |
| 17574 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17575 | int |
| 17576 | main () |
| 17577 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17578 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | ; |
| 17580 | return 0; |
| 17581 | } |
| 17582 | _ACEOF |
| 17583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17584 | if { (ac_try="$ac_link" |
| 17585 | case "(($ac_try" in |
| 17586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17587 | *) ac_try_echo=$ac_try;; |
| 17588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17590 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17593 | rm -f conftest.er1 |
| 17594 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17596 | (exit $ac_status); } && { |
| 17597 | test -z "$ac_c_werror_flag" || |
| 17598 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17599 | } && test -s conftest$ac_exeext && |
| 17600 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17606 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17607 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17608 | |
| 17609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17610 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17611 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17612 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17613 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17614 | echo "${ECHO_T}$ac_res" >&6; } |
| 17615 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17616 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17618 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17619 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17620 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17621 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17622 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17623 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17624 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17625 | # loading of modules. |
| 17626 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17627 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17628 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17629 | if test -z "$DYNLOADFILE" |
| 17630 | then |
| 17631 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17632 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17633 | if test "$ac_cv_func_dlopen" = yes |
| 17634 | then DYNLOADFILE="dynload_shlib.o" |
| 17635 | else DYNLOADFILE="dynload_aix.o" |
| 17636 | fi |
| 17637 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17638 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 17639 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 17640 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17641 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17642 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17643 | *) |
| 17644 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17645 | # out any dynamic loading |
| 17646 | if test "$ac_cv_func_dlopen" = yes |
| 17647 | then DYNLOADFILE="dynload_shlib.o" |
| 17648 | else DYNLOADFILE="dynload_stub.o" |
| 17649 | fi |
| 17650 | ;; |
| 17651 | esac |
| 17652 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17653 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17654 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17655 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17656 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17657 | |
| 17658 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17659 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17661 | |
| 17662 | fi |
| 17663 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17664 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17665 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17666 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17667 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17668 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17669 | if test -z "$MACHDEP_OBJS" |
| 17670 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17671 | MACHDEP_OBJS=$extra_machdep_objs |
| 17672 | else |
| 17673 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17674 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17675 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17676 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17677 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17678 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17679 | |
| 17680 | |
| 17681 | |
| 17682 | |
| 17683 | |
| 17684 | |
| 17685 | |
| 17686 | |
| 17687 | |
| 17688 | |
| 17689 | |
| 17690 | |
| 17691 | |
| 17692 | |
| 17693 | |
| 17694 | |
| 17695 | |
| 17696 | |
| 17697 | |
| 17698 | |
| 17699 | |
| 17700 | |
| 17701 | |
| 17702 | |
| 17703 | |
| 17704 | |
| 17705 | |
| 17706 | |
| 17707 | |
| 17708 | |
| 17709 | |
| 17710 | |
| 17711 | |
| 17712 | |
| 17713 | |
| 17714 | |
| 17715 | |
| 17716 | |
| 17717 | |
| 17718 | |
| 17719 | |
| 17720 | |
| 17721 | |
| 17722 | |
| 17723 | |
| 17724 | |
| 17725 | |
| 17726 | |
| 17727 | |
| 17728 | |
| 17729 | |
| 17730 | |
| 17731 | |
| 17732 | |
| 17733 | |
| 17734 | |
| 17735 | |
| 17736 | |
| 17737 | |
| 17738 | |
| 17739 | |
| 17740 | |
| 17741 | |
| 17742 | |
| 17743 | |
| 17744 | |
| 17745 | |
| 17746 | |
| 17747 | |
| 17748 | |
| 17749 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17750 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17751 | |
| 17752 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17753 | |
| 17754 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 17755 | |
| 17756 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 17757 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17758 | |
| 17759 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17760 | |
| 17761 | |
| 17762 | |
| 17763 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17764 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 17765 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 17766 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17767 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17768 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17769 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 17770 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17771 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 17772 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 17773 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 17774 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 17775 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17776 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17777 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17778 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17779 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17780 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17781 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17785 | /* confdefs.h. */ |
| 17786 | _ACEOF |
| 17787 | cat confdefs.h >>conftest.$ac_ext |
| 17788 | cat >>conftest.$ac_ext <<_ACEOF |
| 17789 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17792 | #define $ac_func innocuous_$ac_func |
| 17793 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17794 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17795 | which can conflict with char $ac_func (); below. |
| 17796 | 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] | 17797 | <limits.h> exists even on freestanding compilers. */ |
| 17798 | |
| 17799 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17800 | # include <limits.h> |
| 17801 | #else |
| 17802 | # include <assert.h> |
| 17803 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17804 | |
| 17805 | #undef $ac_func |
| 17806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17807 | /* Override any GCC internal prototype to avoid an error. |
| 17808 | Use char because int might match the return type of a GCC |
| 17809 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17810 | #ifdef __cplusplus |
| 17811 | extern "C" |
| 17812 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17813 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17814 | /* The GNU C library defines this for functions which it implements |
| 17815 | to always fail with ENOSYS. Some functions are actually named |
| 17816 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17817 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17818 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17819 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17820 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17821 | int |
| 17822 | main () |
| 17823 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17824 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17825 | ; |
| 17826 | return 0; |
| 17827 | } |
| 17828 | _ACEOF |
| 17829 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17830 | if { (ac_try="$ac_link" |
| 17831 | case "(($ac_try" in |
| 17832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17833 | *) ac_try_echo=$ac_try;; |
| 17834 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17836 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17839 | rm -f conftest.er1 |
| 17840 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17842 | (exit $ac_status); } && { |
| 17843 | test -z "$ac_c_werror_flag" || |
| 17844 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17845 | } && test -s conftest$ac_exeext && |
| 17846 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17852 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17854 | |
| 17855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17856 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17857 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17858 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17860 | echo "${ECHO_T}$ac_res" >&6; } |
| 17861 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17865 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17866 | fi |
| 17867 | done |
| 17868 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17869 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17870 | # For some functions, having a definition is not sufficient, since |
| 17871 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17872 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 17873 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17875 | /* confdefs.h. */ |
| 17876 | _ACEOF |
| 17877 | cat confdefs.h >>conftest.$ac_ext |
| 17878 | cat >>conftest.$ac_ext <<_ACEOF |
| 17879 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17880 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17881 | int |
| 17882 | main () |
| 17883 | { |
| 17884 | void *x=chroot |
| 17885 | ; |
| 17886 | return 0; |
| 17887 | } |
| 17888 | _ACEOF |
| 17889 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17890 | if { (ac_try="$ac_compile" |
| 17891 | case "(($ac_try" in |
| 17892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17893 | *) ac_try_echo=$ac_try;; |
| 17894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17896 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17899 | rm -f conftest.er1 |
| 17900 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17902 | (exit $ac_status); } && { |
| 17903 | test -z "$ac_c_werror_flag" || |
| 17904 | test ! -s conftest.err |
| 17905 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17906 | |
| 17907 | cat >>confdefs.h <<\_ACEOF |
| 17908 | #define HAVE_CHROOT 1 |
| 17909 | _ACEOF |
| 17910 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17911 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17912 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17913 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17916 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17917 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17918 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17919 | |
| 17920 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17921 | |
| 17922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17923 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 17924 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +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 | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17931 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17932 | int |
| 17933 | main () |
| 17934 | { |
| 17935 | void *x=link |
| 17936 | ; |
| 17937 | return 0; |
| 17938 | } |
| 17939 | _ACEOF |
| 17940 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17941 | if { (ac_try="$ac_compile" |
| 17942 | case "(($ac_try" in |
| 17943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17944 | *) ac_try_echo=$ac_try;; |
| 17945 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17947 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17948 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17950 | rm -f conftest.er1 |
| 17951 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17953 | (exit $ac_status); } && { |
| 17954 | test -z "$ac_c_werror_flag" || |
| 17955 | test ! -s conftest.err |
| 17956 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17957 | |
| 17958 | cat >>confdefs.h <<\_ACEOF |
| 17959 | #define HAVE_LINK 1 |
| 17960 | _ACEOF |
| 17961 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17962 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17963 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17967 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17968 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17969 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17970 | |
| 17971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17972 | |
| 17973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17974 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 17975 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17976 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17977 | /* confdefs.h. */ |
| 17978 | _ACEOF |
| 17979 | cat confdefs.h >>conftest.$ac_ext |
| 17980 | cat >>conftest.$ac_ext <<_ACEOF |
| 17981 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17982 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17983 | int |
| 17984 | main () |
| 17985 | { |
| 17986 | void *x=symlink |
| 17987 | ; |
| 17988 | return 0; |
| 17989 | } |
| 17990 | _ACEOF |
| 17991 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17992 | if { (ac_try="$ac_compile" |
| 17993 | case "(($ac_try" in |
| 17994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17995 | *) ac_try_echo=$ac_try;; |
| 17996 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17998 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17999 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18001 | rm -f conftest.er1 |
| 18002 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18004 | (exit $ac_status); } && { |
| 18005 | test -z "$ac_c_werror_flag" || |
| 18006 | test ! -s conftest.err |
| 18007 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18008 | |
| 18009 | cat >>confdefs.h <<\_ACEOF |
| 18010 | #define HAVE_SYMLINK 1 |
| 18011 | _ACEOF |
| 18012 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18013 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18014 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18018 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18019 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18020 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18021 | |
| 18022 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18023 | |
| 18024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18025 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18026 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18028 | /* confdefs.h. */ |
| 18029 | _ACEOF |
| 18030 | cat confdefs.h >>conftest.$ac_ext |
| 18031 | cat >>conftest.$ac_ext <<_ACEOF |
| 18032 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18033 | #include <unistd.h> |
| 18034 | int |
| 18035 | main () |
| 18036 | { |
| 18037 | void *x=fchdir |
| 18038 | ; |
| 18039 | return 0; |
| 18040 | } |
| 18041 | _ACEOF |
| 18042 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18043 | if { (ac_try="$ac_compile" |
| 18044 | case "(($ac_try" in |
| 18045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18046 | *) ac_try_echo=$ac_try;; |
| 18047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18049 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18052 | rm -f conftest.er1 |
| 18053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18055 | (exit $ac_status); } && { |
| 18056 | test -z "$ac_c_werror_flag" || |
| 18057 | test ! -s conftest.err |
| 18058 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18059 | |
| 18060 | cat >>confdefs.h <<\_ACEOF |
| 18061 | #define HAVE_FCHDIR 1 |
| 18062 | _ACEOF |
| 18063 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18064 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18065 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18069 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18070 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18071 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18072 | |
| 18073 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18074 | |
| 18075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18076 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18077 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18078 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18079 | /* confdefs.h. */ |
| 18080 | _ACEOF |
| 18081 | cat confdefs.h >>conftest.$ac_ext |
| 18082 | cat >>conftest.$ac_ext <<_ACEOF |
| 18083 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18084 | #include <unistd.h> |
| 18085 | int |
| 18086 | main () |
| 18087 | { |
| 18088 | void *x=fsync |
| 18089 | ; |
| 18090 | return 0; |
| 18091 | } |
| 18092 | _ACEOF |
| 18093 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18094 | if { (ac_try="$ac_compile" |
| 18095 | case "(($ac_try" in |
| 18096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18097 | *) ac_try_echo=$ac_try;; |
| 18098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18100 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18101 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18103 | rm -f conftest.er1 |
| 18104 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18106 | (exit $ac_status); } && { |
| 18107 | test -z "$ac_c_werror_flag" || |
| 18108 | test ! -s conftest.err |
| 18109 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18110 | |
| 18111 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18112 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18113 | _ACEOF |
| 18114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18115 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18116 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18120 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18121 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18122 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18123 | |
| 18124 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18125 | |
| 18126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18127 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18128 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18130 | /* confdefs.h. */ |
| 18131 | _ACEOF |
| 18132 | cat confdefs.h >>conftest.$ac_ext |
| 18133 | cat >>conftest.$ac_ext <<_ACEOF |
| 18134 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18135 | #include <unistd.h> |
| 18136 | int |
| 18137 | main () |
| 18138 | { |
| 18139 | void *x=fdatasync |
| 18140 | ; |
| 18141 | return 0; |
| 18142 | } |
| 18143 | _ACEOF |
| 18144 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18145 | if { (ac_try="$ac_compile" |
| 18146 | case "(($ac_try" in |
| 18147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18148 | *) ac_try_echo=$ac_try;; |
| 18149 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18151 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18154 | rm -f conftest.er1 |
| 18155 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18157 | (exit $ac_status); } && { |
| 18158 | test -z "$ac_c_werror_flag" || |
| 18159 | test ! -s conftest.err |
| 18160 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18161 | |
| 18162 | cat >>confdefs.h <<\_ACEOF |
| 18163 | #define HAVE_FDATASYNC 1 |
| 18164 | _ACEOF |
| 18165 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18166 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18167 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18168 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18171 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18173 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18174 | |
| 18175 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18176 | |
| 18177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18178 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18179 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18180 | cat >conftest.$ac_ext <<_ACEOF |
| 18181 | /* confdefs.h. */ |
| 18182 | _ACEOF |
| 18183 | cat confdefs.h >>conftest.$ac_ext |
| 18184 | cat >>conftest.$ac_ext <<_ACEOF |
| 18185 | /* end confdefs.h. */ |
| 18186 | #include <sys/epoll.h> |
| 18187 | int |
| 18188 | main () |
| 18189 | { |
| 18190 | void *x=epoll_create |
| 18191 | ; |
| 18192 | return 0; |
| 18193 | } |
| 18194 | _ACEOF |
| 18195 | rm -f conftest.$ac_objext |
| 18196 | if { (ac_try="$ac_compile" |
| 18197 | case "(($ac_try" in |
| 18198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18199 | *) ac_try_echo=$ac_try;; |
| 18200 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18202 | (eval "$ac_compile") 2>conftest.er1 |
| 18203 | ac_status=$? |
| 18204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18205 | rm -f conftest.er1 |
| 18206 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18208 | (exit $ac_status); } && { |
| 18209 | test -z "$ac_c_werror_flag" || |
| 18210 | test ! -s conftest.err |
| 18211 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18212 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18213 | cat >>confdefs.h <<\_ACEOF |
| 18214 | #define HAVE_EPOLL 1 |
| 18215 | _ACEOF |
| 18216 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18217 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18218 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18219 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18220 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18222 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18224 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18225 | |
| 18226 | fi |
| 18227 | |
| 18228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18229 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18230 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18231 | cat >conftest.$ac_ext <<_ACEOF |
| 18232 | /* confdefs.h. */ |
| 18233 | _ACEOF |
| 18234 | cat confdefs.h >>conftest.$ac_ext |
| 18235 | cat >>conftest.$ac_ext <<_ACEOF |
| 18236 | /* end confdefs.h. */ |
| 18237 | |
| 18238 | #include <sys/types.h> |
| 18239 | #include <sys/event.h> |
| 18240 | |
| 18241 | int |
| 18242 | main () |
| 18243 | { |
| 18244 | int x=kqueue() |
| 18245 | ; |
| 18246 | return 0; |
| 18247 | } |
| 18248 | _ACEOF |
| 18249 | rm -f conftest.$ac_objext |
| 18250 | if { (ac_try="$ac_compile" |
| 18251 | case "(($ac_try" in |
| 18252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18253 | *) ac_try_echo=$ac_try;; |
| 18254 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18256 | (eval "$ac_compile") 2>conftest.er1 |
| 18257 | ac_status=$? |
| 18258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18259 | rm -f conftest.er1 |
| 18260 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18262 | (exit $ac_status); } && { |
| 18263 | test -z "$ac_c_werror_flag" || |
| 18264 | test ! -s conftest.err |
| 18265 | } && test -s conftest.$ac_objext; then |
| 18266 | |
| 18267 | cat >>confdefs.h <<\_ACEOF |
| 18268 | #define HAVE_KQUEUE 1 |
| 18269 | _ACEOF |
| 18270 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18271 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18272 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18273 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18274 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18276 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18277 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18278 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18279 | |
| 18280 | fi |
| 18281 | |
| 18282 | 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] | 18283 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18284 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18285 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18286 | # address to avoid compiler warnings and potential miscompilations |
| 18287 | # because of the missing prototypes. |
| 18288 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18289 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18290 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18292 | /* confdefs.h. */ |
| 18293 | _ACEOF |
| 18294 | cat confdefs.h >>conftest.$ac_ext |
| 18295 | cat >>conftest.$ac_ext <<_ACEOF |
| 18296 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18297 | |
| 18298 | #include "confdefs.h" |
| 18299 | #include <stdio.h> |
| 18300 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18301 | int |
| 18302 | main () |
| 18303 | { |
| 18304 | void* p = ctermid_r |
| 18305 | ; |
| 18306 | return 0; |
| 18307 | } |
| 18308 | _ACEOF |
| 18309 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18310 | if { (ac_try="$ac_compile" |
| 18311 | case "(($ac_try" in |
| 18312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18313 | *) ac_try_echo=$ac_try;; |
| 18314 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18316 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18319 | rm -f conftest.er1 |
| 18320 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18322 | (exit $ac_status); } && { |
| 18323 | test -z "$ac_c_werror_flag" || |
| 18324 | test ! -s conftest.err |
| 18325 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18326 | |
| 18327 | cat >>confdefs.h <<\_ACEOF |
| 18328 | #define HAVE_CTERMID_R 1 |
| 18329 | _ACEOF |
| 18330 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18331 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18332 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18333 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18337 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18338 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18339 | |
| 18340 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18341 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18343 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18344 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18345 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18346 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18347 | /* confdefs.h. */ |
| 18348 | _ACEOF |
| 18349 | cat confdefs.h >>conftest.$ac_ext |
| 18350 | cat >>conftest.$ac_ext <<_ACEOF |
| 18351 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18352 | |
| 18353 | #include "confdefs.h" |
| 18354 | #include <sys/file.h> |
| 18355 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18356 | int |
| 18357 | main () |
| 18358 | { |
| 18359 | void* p = flock |
| 18360 | ; |
| 18361 | return 0; |
| 18362 | } |
| 18363 | _ACEOF |
| 18364 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18365 | if { (ac_try="$ac_compile" |
| 18366 | case "(($ac_try" in |
| 18367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18368 | *) ac_try_echo=$ac_try;; |
| 18369 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18371 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18372 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18374 | rm -f conftest.er1 |
| 18375 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18377 | (exit $ac_status); } && { |
| 18378 | test -z "$ac_c_werror_flag" || |
| 18379 | test ! -s conftest.err |
| 18380 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18381 | |
| 18382 | cat >>confdefs.h <<\_ACEOF |
| 18383 | #define HAVE_FLOCK 1 |
| 18384 | _ACEOF |
| 18385 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18386 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18387 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18391 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18393 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18394 | |
| 18395 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18396 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18398 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18399 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18400 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18402 | /* confdefs.h. */ |
| 18403 | _ACEOF |
| 18404 | cat confdefs.h >>conftest.$ac_ext |
| 18405 | cat >>conftest.$ac_ext <<_ACEOF |
| 18406 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18407 | |
| 18408 | #include "confdefs.h" |
| 18409 | #include <unistd.h> |
| 18410 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18411 | int |
| 18412 | main () |
| 18413 | { |
| 18414 | void* p = getpagesize |
| 18415 | ; |
| 18416 | return 0; |
| 18417 | } |
| 18418 | _ACEOF |
| 18419 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18420 | if { (ac_try="$ac_compile" |
| 18421 | case "(($ac_try" in |
| 18422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18423 | *) ac_try_echo=$ac_try;; |
| 18424 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18426 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18427 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18429 | rm -f conftest.er1 |
| 18430 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18432 | (exit $ac_status); } && { |
| 18433 | test -z "$ac_c_werror_flag" || |
| 18434 | test ! -s conftest.err |
| 18435 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18436 | |
| 18437 | cat >>confdefs.h <<\_ACEOF |
| 18438 | #define HAVE_GETPAGESIZE 1 |
| 18439 | _ACEOF |
| 18440 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18441 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18442 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18446 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18448 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18449 | |
| 18450 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18451 | |
| 18452 | 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] | 18453 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18454 | for ac_prog in true |
| 18455 | do |
| 18456 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18457 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18458 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18460 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18462 | else |
| 18463 | if test -n "$TRUE"; then |
| 18464 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18465 | else |
| 18466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18467 | for as_dir in $PATH |
| 18468 | do |
| 18469 | IFS=$as_save_IFS |
| 18470 | test -z "$as_dir" && as_dir=. |
| 18471 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18472 | 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] | 18473 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18474 | 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] | 18475 | break 2 |
| 18476 | fi |
| 18477 | done |
| 18478 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18479 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18480 | |
| 18481 | fi |
| 18482 | fi |
| 18483 | TRUE=$ac_cv_prog_TRUE |
| 18484 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18485 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18486 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18489 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18490 | fi |
| 18491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18492 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18493 | test -n "$TRUE" && break |
| 18494 | done |
| 18495 | test -n "$TRUE" || TRUE="/bin/true" |
| 18496 | |
| 18497 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18498 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18499 | 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] | 18500 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18502 | else |
| 18503 | ac_check_lib_save_LIBS=$LIBS |
| 18504 | LIBS="-lc $LIBS" |
| 18505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18506 | /* confdefs.h. */ |
| 18507 | _ACEOF |
| 18508 | cat confdefs.h >>conftest.$ac_ext |
| 18509 | cat >>conftest.$ac_ext <<_ACEOF |
| 18510 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18511 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18512 | /* Override any GCC internal prototype to avoid an error. |
| 18513 | Use char because int might match the return type of a GCC |
| 18514 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18515 | #ifdef __cplusplus |
| 18516 | extern "C" |
| 18517 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18518 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18519 | int |
| 18520 | main () |
| 18521 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18522 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18523 | ; |
| 18524 | return 0; |
| 18525 | } |
| 18526 | _ACEOF |
| 18527 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18528 | if { (ac_try="$ac_link" |
| 18529 | case "(($ac_try" in |
| 18530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18531 | *) ac_try_echo=$ac_try;; |
| 18532 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18534 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18537 | rm -f conftest.er1 |
| 18538 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18540 | (exit $ac_status); } && { |
| 18541 | test -z "$ac_c_werror_flag" || |
| 18542 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18543 | } && test -s conftest$ac_exeext && |
| 18544 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18545 | ac_cv_lib_c_inet_aton=yes |
| 18546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18550 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18552 | |
| 18553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18554 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18555 | LIBS=$ac_check_lib_save_LIBS |
| 18556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18557 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18558 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 18559 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18560 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18561 | else |
| 18562 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18563 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18564 | 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] | 18565 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18567 | else |
| 18568 | ac_check_lib_save_LIBS=$LIBS |
| 18569 | LIBS="-lresolv $LIBS" |
| 18570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18571 | /* confdefs.h. */ |
| 18572 | _ACEOF |
| 18573 | cat confdefs.h >>conftest.$ac_ext |
| 18574 | cat >>conftest.$ac_ext <<_ACEOF |
| 18575 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18577 | /* Override any GCC internal prototype to avoid an error. |
| 18578 | Use char because int might match the return type of a GCC |
| 18579 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18580 | #ifdef __cplusplus |
| 18581 | extern "C" |
| 18582 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18583 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18584 | int |
| 18585 | main () |
| 18586 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18587 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18588 | ; |
| 18589 | return 0; |
| 18590 | } |
| 18591 | _ACEOF |
| 18592 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18593 | if { (ac_try="$ac_link" |
| 18594 | case "(($ac_try" in |
| 18595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18596 | *) ac_try_echo=$ac_try;; |
| 18597 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18599 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18602 | rm -f conftest.er1 |
| 18603 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18605 | (exit $ac_status); } && { |
| 18606 | test -z "$ac_c_werror_flag" || |
| 18607 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18608 | } && test -s conftest$ac_exeext && |
| 18609 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18610 | ac_cv_lib_resolv_inet_aton=yes |
| 18611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18615 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18617 | |
| 18618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18619 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18620 | LIBS=$ac_check_lib_save_LIBS |
| 18621 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18622 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18623 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18624 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18625 | cat >>confdefs.h <<_ACEOF |
| 18626 | #define HAVE_LIBRESOLV 1 |
| 18627 | _ACEOF |
| 18628 | |
| 18629 | LIBS="-lresolv $LIBS" |
| 18630 | |
| 18631 | fi |
| 18632 | |
| 18633 | |
| 18634 | fi |
| 18635 | |
| 18636 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18637 | # On Tru64, chflags seems to be present, but calling it will |
| 18638 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18639 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18640 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18641 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18643 | else |
| 18644 | if test "$cross_compiling" = yes; then |
| 18645 | ac_cv_have_chflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18646 | else |
| 18647 | cat >conftest.$ac_ext <<_ACEOF |
| 18648 | /* confdefs.h. */ |
| 18649 | _ACEOF |
| 18650 | cat confdefs.h >>conftest.$ac_ext |
| 18651 | cat >>conftest.$ac_ext <<_ACEOF |
| 18652 | /* end confdefs.h. */ |
| 18653 | |
| 18654 | #include <sys/stat.h> |
| 18655 | #include <unistd.h> |
| 18656 | int main(int argc, char*argv[]) |
| 18657 | { |
| 18658 | if(chflags(argv[0], 0) != 0) |
| 18659 | return 1; |
| 18660 | return 0; |
| 18661 | } |
| 18662 | |
| 18663 | _ACEOF |
| 18664 | rm -f conftest$ac_exeext |
| 18665 | if { (ac_try="$ac_link" |
| 18666 | case "(($ac_try" in |
| 18667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18668 | *) ac_try_echo=$ac_try;; |
| 18669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18671 | (eval "$ac_link") 2>&5 |
| 18672 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18675 | { (case "(($ac_try" in |
| 18676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18677 | *) ac_try_echo=$ac_try;; |
| 18678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18680 | (eval "$ac_try") 2>&5 |
| 18681 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18683 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18684 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18685 | else |
| 18686 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18687 | echo "$as_me: failed program was:" >&5 |
| 18688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18689 | |
| 18690 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18691 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18692 | fi |
| 18693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 18694 | fi |
| 18695 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18696 | |
| 18697 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18698 | fi |
| 18699 | |
| 18700 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 18701 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
| 18702 | if test $ac_cv_have_chflags = yes |
| 18703 | then |
| 18704 | |
| 18705 | cat >>confdefs.h <<\_ACEOF |
| 18706 | #define HAVE_CHFLAGS 1 |
| 18707 | _ACEOF |
| 18708 | |
| 18709 | fi |
| 18710 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18711 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18712 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18713 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 18714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18715 | else |
| 18716 | if test "$cross_compiling" = yes; then |
| 18717 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18718 | else |
| 18719 | cat >conftest.$ac_ext <<_ACEOF |
| 18720 | /* confdefs.h. */ |
| 18721 | _ACEOF |
| 18722 | cat confdefs.h >>conftest.$ac_ext |
| 18723 | cat >>conftest.$ac_ext <<_ACEOF |
| 18724 | /* end confdefs.h. */ |
| 18725 | |
| 18726 | #include <sys/stat.h> |
| 18727 | #include <unistd.h> |
| 18728 | int main(int argc, char*argv[]) |
| 18729 | { |
| 18730 | if(lchflags(argv[0], 0) != 0) |
| 18731 | return 1; |
| 18732 | return 0; |
| 18733 | } |
| 18734 | |
| 18735 | _ACEOF |
| 18736 | rm -f conftest$ac_exeext |
| 18737 | if { (ac_try="$ac_link" |
| 18738 | case "(($ac_try" in |
| 18739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18740 | *) ac_try_echo=$ac_try;; |
| 18741 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18743 | (eval "$ac_link") 2>&5 |
| 18744 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18746 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18747 | { (case "(($ac_try" in |
| 18748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18749 | *) ac_try_echo=$ac_try;; |
| 18750 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18752 | (eval "$ac_try") 2>&5 |
| 18753 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18755 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18756 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18757 | else |
| 18758 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18759 | echo "$as_me: failed program was:" >&5 |
| 18760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18761 | |
| 18762 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18763 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18764 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18766 | fi |
| 18767 | |
| 18768 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18769 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18770 | fi |
| 18771 | |
| 18772 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 18773 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
| 18774 | if test $ac_cv_have_lchflags = yes |
| 18775 | then |
| 18776 | |
| 18777 | cat >>confdefs.h <<\_ACEOF |
| 18778 | #define HAVE_LCHFLAGS 1 |
| 18779 | _ACEOF |
| 18780 | |
| 18781 | fi |
| 18782 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 18783 | case $ac_sys_system/$ac_sys_release in |
| 18784 | Darwin/*) |
| 18785 | _CUR_CFLAGS="${CFLAGS}" |
| 18786 | _CUR_LDFLAGS="${LDFLAGS}" |
| 18787 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 18788 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 18789 | ;; |
| 18790 | esac |
| 18791 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18792 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 18793 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18794 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18796 | else |
| 18797 | ac_check_lib_save_LIBS=$LIBS |
| 18798 | LIBS="-lz $LIBS" |
| 18799 | cat >conftest.$ac_ext <<_ACEOF |
| 18800 | /* confdefs.h. */ |
| 18801 | _ACEOF |
| 18802 | cat confdefs.h >>conftest.$ac_ext |
| 18803 | cat >>conftest.$ac_ext <<_ACEOF |
| 18804 | /* end confdefs.h. */ |
| 18805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18806 | /* Override any GCC internal prototype to avoid an error. |
| 18807 | Use char because int might match the return type of a GCC |
| 18808 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18809 | #ifdef __cplusplus |
| 18810 | extern "C" |
| 18811 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18812 | char inflateCopy (); |
| 18813 | int |
| 18814 | main () |
| 18815 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18816 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18817 | ; |
| 18818 | return 0; |
| 18819 | } |
| 18820 | _ACEOF |
| 18821 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18822 | if { (ac_try="$ac_link" |
| 18823 | case "(($ac_try" in |
| 18824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18825 | *) ac_try_echo=$ac_try;; |
| 18826 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18828 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18829 | ac_status=$? |
| 18830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18831 | rm -f conftest.er1 |
| 18832 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18834 | (exit $ac_status); } && { |
| 18835 | test -z "$ac_c_werror_flag" || |
| 18836 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18837 | } && test -s conftest$ac_exeext && |
| 18838 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18839 | ac_cv_lib_z_inflateCopy=yes |
| 18840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18841 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18843 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18844 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18845 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18846 | |
| 18847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18848 | conftest$ac_exeext conftest.$ac_ext |
| 18849 | LIBS=$ac_check_lib_save_LIBS |
| 18850 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18851 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 18852 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 18853 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18854 | |
| 18855 | cat >>confdefs.h <<\_ACEOF |
| 18856 | #define HAVE_ZLIB_COPY 1 |
| 18857 | _ACEOF |
| 18858 | |
| 18859 | fi |
| 18860 | |
| 18861 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 18862 | case $ac_sys_system/$ac_sys_release in |
| 18863 | Darwin/*) |
| 18864 | CFLAGS="${_CUR_CFLAGS}" |
| 18865 | LDFLAGS="${_CUR_LDFLAGS}" |
| 18866 | ;; |
| 18867 | esac |
| 18868 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18869 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 18870 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18872 | /* confdefs.h. */ |
| 18873 | _ACEOF |
| 18874 | cat confdefs.h >>conftest.$ac_ext |
| 18875 | cat >>conftest.$ac_ext <<_ACEOF |
| 18876 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18877 | |
| 18878 | #include "confdefs.h" |
| 18879 | #include <netdb.h> |
| 18880 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18881 | int |
| 18882 | main () |
| 18883 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18884 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18885 | ; |
| 18886 | return 0; |
| 18887 | } |
| 18888 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18890 | if { (ac_try="$ac_link" |
| 18891 | case "(($ac_try" in |
| 18892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18893 | *) ac_try_echo=$ac_try;; |
| 18894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18896 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18899 | rm -f conftest.er1 |
| 18900 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18902 | (exit $ac_status); } && { |
| 18903 | test -z "$ac_c_werror_flag" || |
| 18904 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18905 | } && test -s conftest$ac_exeext && |
| 18906 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18907 | |
| 18908 | cat >>confdefs.h <<\_ACEOF |
| 18909 | #define HAVE_HSTRERROR 1 |
| 18910 | _ACEOF |
| 18911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18912 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18913 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18914 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18917 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18918 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18919 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18920 | |
| 18921 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18922 | |
| 18923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18924 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18925 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18926 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 18927 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18929 | /* confdefs.h. */ |
| 18930 | _ACEOF |
| 18931 | cat confdefs.h >>conftest.$ac_ext |
| 18932 | cat >>conftest.$ac_ext <<_ACEOF |
| 18933 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18934 | |
| 18935 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 18936 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18937 | #include <sys/socket.h> |
| 18938 | #include <netinet/in.h> |
| 18939 | #include <arpa/inet.h> |
| 18940 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18941 | int |
| 18942 | main () |
| 18943 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18944 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18945 | ; |
| 18946 | return 0; |
| 18947 | } |
| 18948 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18950 | if { (ac_try="$ac_link" |
| 18951 | case "(($ac_try" in |
| 18952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18953 | *) ac_try_echo=$ac_try;; |
| 18954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18956 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18959 | rm -f conftest.er1 |
| 18960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18962 | (exit $ac_status); } && { |
| 18963 | test -z "$ac_c_werror_flag" || |
| 18964 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18965 | } && test -s conftest$ac_exeext && |
| 18966 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18967 | |
| 18968 | cat >>confdefs.h <<\_ACEOF |
| 18969 | #define HAVE_INET_ATON 1 |
| 18970 | _ACEOF |
| 18971 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18972 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18973 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18978 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18979 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18980 | |
| 18981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18982 | |
| 18983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18984 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18985 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18986 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 18987 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18988 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18989 | /* confdefs.h. */ |
| 18990 | _ACEOF |
| 18991 | cat confdefs.h >>conftest.$ac_ext |
| 18992 | cat >>conftest.$ac_ext <<_ACEOF |
| 18993 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18994 | |
| 18995 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 18996 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18997 | #include <sys/socket.h> |
| 18998 | #include <netinet/in.h> |
| 18999 | #include <arpa/inet.h> |
| 19000 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19001 | int |
| 19002 | main () |
| 19003 | { |
| 19004 | void* p = inet_pton |
| 19005 | ; |
| 19006 | return 0; |
| 19007 | } |
| 19008 | _ACEOF |
| 19009 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19010 | if { (ac_try="$ac_compile" |
| 19011 | case "(($ac_try" in |
| 19012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19013 | *) ac_try_echo=$ac_try;; |
| 19014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19016 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19017 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19019 | rm -f conftest.er1 |
| 19020 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19022 | (exit $ac_status); } && { |
| 19023 | test -z "$ac_c_werror_flag" || |
| 19024 | test ! -s conftest.err |
| 19025 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19026 | |
| 19027 | cat >>confdefs.h <<\_ACEOF |
| 19028 | #define HAVE_INET_PTON 1 |
| 19029 | _ACEOF |
| 19030 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19031 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19032 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19033 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19036 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19037 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19038 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19039 | |
| 19040 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19041 | |
| 19042 | 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] | 19043 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19044 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19045 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19046 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19047 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19048 | /* confdefs.h. */ |
| 19049 | _ACEOF |
| 19050 | cat confdefs.h >>conftest.$ac_ext |
| 19051 | cat >>conftest.$ac_ext <<_ACEOF |
| 19052 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19053 | |
| 19054 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19055 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19056 | #ifdef HAVE_GRP_H |
| 19057 | #include <grp.h> |
| 19058 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19059 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19060 | int |
| 19061 | main () |
| 19062 | { |
| 19063 | void* p = setgroups |
| 19064 | ; |
| 19065 | return 0; |
| 19066 | } |
| 19067 | _ACEOF |
| 19068 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19069 | if { (ac_try="$ac_compile" |
| 19070 | case "(($ac_try" in |
| 19071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19072 | *) ac_try_echo=$ac_try;; |
| 19073 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19075 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19078 | rm -f conftest.er1 |
| 19079 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19081 | (exit $ac_status); } && { |
| 19082 | test -z "$ac_c_werror_flag" || |
| 19083 | test ! -s conftest.err |
| 19084 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19085 | |
| 19086 | cat >>confdefs.h <<\_ACEOF |
| 19087 | #define HAVE_SETGROUPS 1 |
| 19088 | _ACEOF |
| 19089 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19090 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19091 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19092 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19093 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19095 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19097 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19098 | |
| 19099 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19100 | |
| 19101 | 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] | 19102 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19103 | # check for openpty and forkpty |
| 19104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19105 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19106 | for ac_func in openpty |
| 19107 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19108 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19109 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19110 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19111 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19115 | /* confdefs.h. */ |
| 19116 | _ACEOF |
| 19117 | cat confdefs.h >>conftest.$ac_ext |
| 19118 | cat >>conftest.$ac_ext <<_ACEOF |
| 19119 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19120 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19122 | #define $ac_func innocuous_$ac_func |
| 19123 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19124 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19125 | which can conflict with char $ac_func (); below. |
| 19126 | 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] | 19127 | <limits.h> exists even on freestanding compilers. */ |
| 19128 | |
| 19129 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19130 | # include <limits.h> |
| 19131 | #else |
| 19132 | # include <assert.h> |
| 19133 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19134 | |
| 19135 | #undef $ac_func |
| 19136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19137 | /* Override any GCC internal prototype to avoid an error. |
| 19138 | Use char because int might match the return type of a GCC |
| 19139 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | #ifdef __cplusplus |
| 19141 | extern "C" |
| 19142 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19144 | /* The GNU C library defines this for functions which it implements |
| 19145 | to always fail with ENOSYS. Some functions are actually named |
| 19146 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19147 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19148 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19149 | #endif |
| 19150 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19151 | int |
| 19152 | main () |
| 19153 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19154 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19155 | ; |
| 19156 | return 0; |
| 19157 | } |
| 19158 | _ACEOF |
| 19159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19160 | if { (ac_try="$ac_link" |
| 19161 | case "(($ac_try" in |
| 19162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19163 | *) ac_try_echo=$ac_try;; |
| 19164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19166 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19167 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19169 | rm -f conftest.er1 |
| 19170 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19172 | (exit $ac_status); } && { |
| 19173 | test -z "$ac_c_werror_flag" || |
| 19174 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19175 | } && test -s conftest$ac_exeext && |
| 19176 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19177 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19178 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19182 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19183 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19184 | |
| 19185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19186 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19187 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19188 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19189 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19190 | echo "${ECHO_T}$ac_res" >&6; } |
| 19191 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19192 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19193 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19194 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19195 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19197 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19198 | 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] | 19199 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19202 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19203 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19205 | /* confdefs.h. */ |
| 19206 | _ACEOF |
| 19207 | cat confdefs.h >>conftest.$ac_ext |
| 19208 | cat >>conftest.$ac_ext <<_ACEOF |
| 19209 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19210 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19211 | /* Override any GCC internal prototype to avoid an error. |
| 19212 | Use char because int might match the return type of a GCC |
| 19213 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19214 | #ifdef __cplusplus |
| 19215 | extern "C" |
| 19216 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19217 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19218 | int |
| 19219 | main () |
| 19220 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19221 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19222 | ; |
| 19223 | return 0; |
| 19224 | } |
| 19225 | _ACEOF |
| 19226 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19227 | if { (ac_try="$ac_link" |
| 19228 | case "(($ac_try" in |
| 19229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19230 | *) ac_try_echo=$ac_try;; |
| 19231 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19233 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19234 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19236 | rm -f conftest.er1 |
| 19237 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19239 | (exit $ac_status); } && { |
| 19240 | test -z "$ac_c_werror_flag" || |
| 19241 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19242 | } && test -s conftest$ac_exeext && |
| 19243 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19244 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19245 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19249 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19250 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19251 | |
| 19252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19253 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19254 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19255 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19256 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19257 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19258 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19259 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19260 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19261 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19262 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19263 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19264 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19265 | 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] | 19266 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19268 | else |
| 19269 | ac_check_lib_save_LIBS=$LIBS |
| 19270 | LIBS="-lbsd $LIBS" |
| 19271 | cat >conftest.$ac_ext <<_ACEOF |
| 19272 | /* confdefs.h. */ |
| 19273 | _ACEOF |
| 19274 | cat confdefs.h >>conftest.$ac_ext |
| 19275 | cat >>conftest.$ac_ext <<_ACEOF |
| 19276 | /* end confdefs.h. */ |
| 19277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19278 | /* Override any GCC internal prototype to avoid an error. |
| 19279 | Use char because int might match the return type of a GCC |
| 19280 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19281 | #ifdef __cplusplus |
| 19282 | extern "C" |
| 19283 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19284 | char openpty (); |
| 19285 | int |
| 19286 | main () |
| 19287 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19288 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19289 | ; |
| 19290 | return 0; |
| 19291 | } |
| 19292 | _ACEOF |
| 19293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19294 | if { (ac_try="$ac_link" |
| 19295 | case "(($ac_try" in |
| 19296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19297 | *) ac_try_echo=$ac_try;; |
| 19298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19300 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19301 | ac_status=$? |
| 19302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19303 | rm -f conftest.er1 |
| 19304 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19306 | (exit $ac_status); } && { |
| 19307 | test -z "$ac_c_werror_flag" || |
| 19308 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19309 | } && test -s conftest$ac_exeext && |
| 19310 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19311 | ac_cv_lib_bsd_openpty=yes |
| 19312 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19313 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19316 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19317 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19318 | |
| 19319 | 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] | 19320 | conftest$ac_exeext conftest.$ac_ext |
| 19321 | LIBS=$ac_check_lib_save_LIBS |
| 19322 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19323 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19324 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19325 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19326 | cat >>confdefs.h <<\_ACEOF |
| 19327 | #define HAVE_OPENPTY 1 |
| 19328 | _ACEOF |
| 19329 | LIBS="$LIBS -lbsd" |
| 19330 | fi |
| 19331 | |
| 19332 | |
| 19333 | fi |
| 19334 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19335 | |
| 19336 | fi |
| 19337 | done |
| 19338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19339 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19340 | for ac_func in forkpty |
| 19341 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19342 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19343 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19344 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19345 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19349 | /* confdefs.h. */ |
| 19350 | _ACEOF |
| 19351 | cat confdefs.h >>conftest.$ac_ext |
| 19352 | cat >>conftest.$ac_ext <<_ACEOF |
| 19353 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19354 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19355 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19356 | #define $ac_func innocuous_$ac_func |
| 19357 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19358 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19359 | which can conflict with char $ac_func (); below. |
| 19360 | 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] | 19361 | <limits.h> exists even on freestanding compilers. */ |
| 19362 | |
| 19363 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19364 | # include <limits.h> |
| 19365 | #else |
| 19366 | # include <assert.h> |
| 19367 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19368 | |
| 19369 | #undef $ac_func |
| 19370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19371 | /* Override any GCC internal prototype to avoid an error. |
| 19372 | Use char because int might match the return type of a GCC |
| 19373 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19374 | #ifdef __cplusplus |
| 19375 | extern "C" |
| 19376 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19377 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19378 | /* The GNU C library defines this for functions which it implements |
| 19379 | to always fail with ENOSYS. Some functions are actually named |
| 19380 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19381 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19382 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19383 | #endif |
| 19384 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19385 | int |
| 19386 | main () |
| 19387 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19388 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | ; |
| 19390 | return 0; |
| 19391 | } |
| 19392 | _ACEOF |
| 19393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19394 | if { (ac_try="$ac_link" |
| 19395 | case "(($ac_try" in |
| 19396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19397 | *) ac_try_echo=$ac_try;; |
| 19398 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19400 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19401 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19403 | rm -f conftest.er1 |
| 19404 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19406 | (exit $ac_status); } && { |
| 19407 | test -z "$ac_c_werror_flag" || |
| 19408 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19409 | } && test -s conftest$ac_exeext && |
| 19410 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19412 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19416 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19417 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19418 | |
| 19419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19420 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19421 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19422 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19423 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19424 | echo "${ECHO_T}$ac_res" >&6; } |
| 19425 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19426 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19427 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19428 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19429 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19430 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19431 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19432 | 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] | 19433 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19436 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19437 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19439 | /* confdefs.h. */ |
| 19440 | _ACEOF |
| 19441 | cat confdefs.h >>conftest.$ac_ext |
| 19442 | cat >>conftest.$ac_ext <<_ACEOF |
| 19443 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19444 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19445 | /* Override any GCC internal prototype to avoid an error. |
| 19446 | Use char because int might match the return type of a GCC |
| 19447 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19448 | #ifdef __cplusplus |
| 19449 | extern "C" |
| 19450 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19451 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19452 | int |
| 19453 | main () |
| 19454 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19455 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19456 | ; |
| 19457 | return 0; |
| 19458 | } |
| 19459 | _ACEOF |
| 19460 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19461 | if { (ac_try="$ac_link" |
| 19462 | case "(($ac_try" in |
| 19463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19464 | *) ac_try_echo=$ac_try;; |
| 19465 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19467 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19468 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19470 | rm -f conftest.er1 |
| 19471 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19473 | (exit $ac_status); } && { |
| 19474 | test -z "$ac_c_werror_flag" || |
| 19475 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19476 | } && test -s conftest$ac_exeext && |
| 19477 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19483 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19485 | |
| 19486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19487 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19488 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19489 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19490 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19491 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 19492 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19493 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19494 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19496 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19497 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19498 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19499 | 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] | 19500 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19502 | else |
| 19503 | ac_check_lib_save_LIBS=$LIBS |
| 19504 | LIBS="-lbsd $LIBS" |
| 19505 | cat >conftest.$ac_ext <<_ACEOF |
| 19506 | /* confdefs.h. */ |
| 19507 | _ACEOF |
| 19508 | cat confdefs.h >>conftest.$ac_ext |
| 19509 | cat >>conftest.$ac_ext <<_ACEOF |
| 19510 | /* end confdefs.h. */ |
| 19511 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19512 | /* Override any GCC internal prototype to avoid an error. |
| 19513 | Use char because int might match the return type of a GCC |
| 19514 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19515 | #ifdef __cplusplus |
| 19516 | extern "C" |
| 19517 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19518 | char forkpty (); |
| 19519 | int |
| 19520 | main () |
| 19521 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19523 | ; |
| 19524 | return 0; |
| 19525 | } |
| 19526 | _ACEOF |
| 19527 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19528 | if { (ac_try="$ac_link" |
| 19529 | case "(($ac_try" in |
| 19530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19531 | *) ac_try_echo=$ac_try;; |
| 19532 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19534 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19535 | ac_status=$? |
| 19536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19537 | rm -f conftest.er1 |
| 19538 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19540 | (exit $ac_status); } && { |
| 19541 | test -z "$ac_c_werror_flag" || |
| 19542 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19543 | } && test -s conftest$ac_exeext && |
| 19544 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19545 | ac_cv_lib_bsd_forkpty=yes |
| 19546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19547 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19550 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19552 | |
| 19553 | 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] | 19554 | conftest$ac_exeext conftest.$ac_ext |
| 19555 | LIBS=$ac_check_lib_save_LIBS |
| 19556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19557 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 19558 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 19559 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19560 | cat >>confdefs.h <<\_ACEOF |
| 19561 | #define HAVE_FORKPTY 1 |
| 19562 | _ACEOF |
| 19563 | LIBS="$LIBS -lbsd" |
| 19564 | fi |
| 19565 | |
| 19566 | |
| 19567 | fi |
| 19568 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19569 | |
| 19570 | fi |
| 19571 | done |
| 19572 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19573 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19574 | # Stuff for expat. |
| 19575 | |
| 19576 | for ac_func in memmove |
| 19577 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19578 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19579 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19580 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19581 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19583 | else |
| 19584 | cat >conftest.$ac_ext <<_ACEOF |
| 19585 | /* confdefs.h. */ |
| 19586 | _ACEOF |
| 19587 | cat confdefs.h >>conftest.$ac_ext |
| 19588 | cat >>conftest.$ac_ext <<_ACEOF |
| 19589 | /* end confdefs.h. */ |
| 19590 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19592 | #define $ac_func innocuous_$ac_func |
| 19593 | |
| 19594 | /* System header to define __stub macros and hopefully few prototypes, |
| 19595 | which can conflict with char $ac_func (); below. |
| 19596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19597 | <limits.h> exists even on freestanding compilers. */ |
| 19598 | |
| 19599 | #ifdef __STDC__ |
| 19600 | # include <limits.h> |
| 19601 | #else |
| 19602 | # include <assert.h> |
| 19603 | #endif |
| 19604 | |
| 19605 | #undef $ac_func |
| 19606 | |
| 19607 | /* Override any GCC internal prototype to avoid an error. |
| 19608 | Use char because int might match the return type of a GCC |
| 19609 | builtin and then its argument prototype would still apply. */ |
| 19610 | #ifdef __cplusplus |
| 19611 | extern "C" |
| 19612 | #endif |
| 19613 | char $ac_func (); |
| 19614 | /* The GNU C library defines this for functions which it implements |
| 19615 | to always fail with ENOSYS. Some functions are actually named |
| 19616 | something starting with __ and the normal name is an alias. */ |
| 19617 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19618 | choke me |
| 19619 | #endif |
| 19620 | |
| 19621 | int |
| 19622 | main () |
| 19623 | { |
| 19624 | return $ac_func (); |
| 19625 | ; |
| 19626 | return 0; |
| 19627 | } |
| 19628 | _ACEOF |
| 19629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19630 | if { (ac_try="$ac_link" |
| 19631 | case "(($ac_try" in |
| 19632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19633 | *) ac_try_echo=$ac_try;; |
| 19634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19636 | (eval "$ac_link") 2>conftest.er1 |
| 19637 | ac_status=$? |
| 19638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19639 | rm -f conftest.er1 |
| 19640 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19642 | (exit $ac_status); } && { |
| 19643 | test -z "$ac_c_werror_flag" || |
| 19644 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19645 | } && test -s conftest$ac_exeext && |
| 19646 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19647 | eval "$as_ac_var=yes" |
| 19648 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19649 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19651 | |
| 19652 | eval "$as_ac_var=no" |
| 19653 | fi |
| 19654 | |
| 19655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19656 | conftest$ac_exeext conftest.$ac_ext |
| 19657 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19658 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19660 | echo "${ECHO_T}$ac_res" >&6; } |
| 19661 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19662 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19664 | _ACEOF |
| 19665 | |
| 19666 | fi |
| 19667 | done |
| 19668 | |
| 19669 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19670 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19671 | |
| 19672 | |
| 19673 | |
| 19674 | |
| 19675 | |
| 19676 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19677 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 19678 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19680 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19682 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19686 | /* confdefs.h. */ |
| 19687 | _ACEOF |
| 19688 | cat confdefs.h >>conftest.$ac_ext |
| 19689 | cat >>conftest.$ac_ext <<_ACEOF |
| 19690 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19691 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19693 | #define $ac_func innocuous_$ac_func |
| 19694 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19695 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19696 | which can conflict with char $ac_func (); below. |
| 19697 | 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] | 19698 | <limits.h> exists even on freestanding compilers. */ |
| 19699 | |
| 19700 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19701 | # include <limits.h> |
| 19702 | #else |
| 19703 | # include <assert.h> |
| 19704 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19705 | |
| 19706 | #undef $ac_func |
| 19707 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19708 | /* Override any GCC internal prototype to avoid an error. |
| 19709 | Use char because int might match the return type of a GCC |
| 19710 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19711 | #ifdef __cplusplus |
| 19712 | extern "C" |
| 19713 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19714 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19715 | /* The GNU C library defines this for functions which it implements |
| 19716 | to always fail with ENOSYS. Some functions are actually named |
| 19717 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19718 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19719 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19720 | #endif |
| 19721 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19722 | int |
| 19723 | main () |
| 19724 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19725 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19726 | ; |
| 19727 | return 0; |
| 19728 | } |
| 19729 | _ACEOF |
| 19730 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19731 | if { (ac_try="$ac_link" |
| 19732 | case "(($ac_try" in |
| 19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19734 | *) ac_try_echo=$ac_try;; |
| 19735 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19737 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19738 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19740 | rm -f conftest.er1 |
| 19741 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19743 | (exit $ac_status); } && { |
| 19744 | test -z "$ac_c_werror_flag" || |
| 19745 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19746 | } && test -s conftest$ac_exeext && |
| 19747 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19748 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19749 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19753 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19754 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19755 | |
| 19756 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19757 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19758 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19759 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19760 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19761 | echo "${ECHO_T}$ac_res" >&6; } |
| 19762 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19763 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19764 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19765 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19766 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19767 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19768 | done |
| 19769 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19771 | |
| 19772 | |
| 19773 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19774 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19775 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19776 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19777 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19778 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19779 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19783 | /* confdefs.h. */ |
| 19784 | _ACEOF |
| 19785 | cat confdefs.h >>conftest.$ac_ext |
| 19786 | cat >>conftest.$ac_ext <<_ACEOF |
| 19787 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19790 | #define $ac_func innocuous_$ac_func |
| 19791 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19792 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19793 | which can conflict with char $ac_func (); below. |
| 19794 | 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] | 19795 | <limits.h> exists even on freestanding compilers. */ |
| 19796 | |
| 19797 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19798 | # include <limits.h> |
| 19799 | #else |
| 19800 | # include <assert.h> |
| 19801 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19802 | |
| 19803 | #undef $ac_func |
| 19804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19805 | /* Override any GCC internal prototype to avoid an error. |
| 19806 | Use char because int might match the return type of a GCC |
| 19807 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19808 | #ifdef __cplusplus |
| 19809 | extern "C" |
| 19810 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19811 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19812 | /* The GNU C library defines this for functions which it implements |
| 19813 | to always fail with ENOSYS. Some functions are actually named |
| 19814 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19815 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19816 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19817 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19818 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19819 | int |
| 19820 | main () |
| 19821 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19822 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19823 | ; |
| 19824 | return 0; |
| 19825 | } |
| 19826 | _ACEOF |
| 19827 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19828 | if { (ac_try="$ac_link" |
| 19829 | case "(($ac_try" in |
| 19830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19831 | *) ac_try_echo=$ac_try;; |
| 19832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19834 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19837 | rm -f conftest.er1 |
| 19838 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19840 | (exit $ac_status); } && { |
| 19841 | test -z "$ac_c_werror_flag" || |
| 19842 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19843 | } && test -s conftest$ac_exeext && |
| 19844 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19845 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19846 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19850 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19852 | |
| 19853 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19854 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19855 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19856 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19857 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19858 | echo "${ECHO_T}$ac_res" >&6; } |
| 19859 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19860 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19861 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19862 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19863 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19864 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19865 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19866 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19867 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 19868 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19869 | esac |
| 19870 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19871 | fi |
| 19872 | done |
| 19873 | |
| 19874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19875 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19876 | for ac_func in getpgrp |
| 19877 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19879 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19881 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19885 | /* confdefs.h. */ |
| 19886 | _ACEOF |
| 19887 | cat confdefs.h >>conftest.$ac_ext |
| 19888 | cat >>conftest.$ac_ext <<_ACEOF |
| 19889 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19892 | #define $ac_func innocuous_$ac_func |
| 19893 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19894 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19895 | which can conflict with char $ac_func (); below. |
| 19896 | 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] | 19897 | <limits.h> exists even on freestanding compilers. */ |
| 19898 | |
| 19899 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19900 | # include <limits.h> |
| 19901 | #else |
| 19902 | # include <assert.h> |
| 19903 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19904 | |
| 19905 | #undef $ac_func |
| 19906 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19907 | /* Override any GCC internal prototype to avoid an error. |
| 19908 | Use char because int might match the return type of a GCC |
| 19909 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19910 | #ifdef __cplusplus |
| 19911 | extern "C" |
| 19912 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19913 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19914 | /* The GNU C library defines this for functions which it implements |
| 19915 | to always fail with ENOSYS. Some functions are actually named |
| 19916 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19917 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19918 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19919 | #endif |
| 19920 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19921 | int |
| 19922 | main () |
| 19923 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19924 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19925 | ; |
| 19926 | return 0; |
| 19927 | } |
| 19928 | _ACEOF |
| 19929 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19930 | if { (ac_try="$ac_link" |
| 19931 | case "(($ac_try" in |
| 19932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19933 | *) ac_try_echo=$ac_try;; |
| 19934 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19936 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19937 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19939 | rm -f conftest.er1 |
| 19940 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19942 | (exit $ac_status); } && { |
| 19943 | test -z "$ac_c_werror_flag" || |
| 19944 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19945 | } && test -s conftest$ac_exeext && |
| 19946 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19947 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19951 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19952 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19953 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19954 | |
| 19955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19956 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19957 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19958 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19960 | echo "${ECHO_T}$ac_res" >&6; } |
| 19961 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19962 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19963 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19964 | _ACEOF |
| 19965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19966 | /* confdefs.h. */ |
| 19967 | _ACEOF |
| 19968 | cat confdefs.h >>conftest.$ac_ext |
| 19969 | cat >>conftest.$ac_ext <<_ACEOF |
| 19970 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19971 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19972 | int |
| 19973 | main () |
| 19974 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19975 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19976 | ; |
| 19977 | return 0; |
| 19978 | } |
| 19979 | _ACEOF |
| 19980 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19981 | if { (ac_try="$ac_compile" |
| 19982 | case "(($ac_try" in |
| 19983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19984 | *) ac_try_echo=$ac_try;; |
| 19985 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19987 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19990 | rm -f conftest.er1 |
| 19991 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19993 | (exit $ac_status); } && { |
| 19994 | test -z "$ac_c_werror_flag" || |
| 19995 | test ! -s conftest.err |
| 19996 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | |
| 19998 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19999 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20000 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20002 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20003 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20007 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20008 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20009 | |
| 20010 | 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] | 20011 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20012 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20013 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20014 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20015 | |
| 20016 | for ac_func in setpgrp |
| 20017 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20019 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20021 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20025 | /* confdefs.h. */ |
| 20026 | _ACEOF |
| 20027 | cat confdefs.h >>conftest.$ac_ext |
| 20028 | cat >>conftest.$ac_ext <<_ACEOF |
| 20029 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20030 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20032 | #define $ac_func innocuous_$ac_func |
| 20033 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20034 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20035 | which can conflict with char $ac_func (); below. |
| 20036 | 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] | 20037 | <limits.h> exists even on freestanding compilers. */ |
| 20038 | |
| 20039 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20040 | # include <limits.h> |
| 20041 | #else |
| 20042 | # include <assert.h> |
| 20043 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20044 | |
| 20045 | #undef $ac_func |
| 20046 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20047 | /* Override any GCC internal prototype to avoid an error. |
| 20048 | Use char because int might match the return type of a GCC |
| 20049 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20050 | #ifdef __cplusplus |
| 20051 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20052 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20053 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20054 | /* The GNU C library defines this for functions which it implements |
| 20055 | to always fail with ENOSYS. Some functions are actually named |
| 20056 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20057 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20058 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20059 | #endif |
| 20060 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20061 | int |
| 20062 | main () |
| 20063 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20064 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20065 | ; |
| 20066 | return 0; |
| 20067 | } |
| 20068 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20069 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20070 | if { (ac_try="$ac_link" |
| 20071 | case "(($ac_try" in |
| 20072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20073 | *) ac_try_echo=$ac_try;; |
| 20074 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20076 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20079 | rm -f conftest.er1 |
| 20080 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20082 | (exit $ac_status); } && { |
| 20083 | test -z "$ac_c_werror_flag" || |
| 20084 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20085 | } && test -s conftest$ac_exeext && |
| 20086 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20087 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20088 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20091 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20092 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20094 | |
| 20095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20096 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20097 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20098 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20100 | echo "${ECHO_T}$ac_res" >&6; } |
| 20101 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20102 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20104 | _ACEOF |
| 20105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20106 | /* confdefs.h. */ |
| 20107 | _ACEOF |
| 20108 | cat confdefs.h >>conftest.$ac_ext |
| 20109 | cat >>conftest.$ac_ext <<_ACEOF |
| 20110 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20111 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20112 | int |
| 20113 | main () |
| 20114 | { |
| 20115 | setpgrp(0,0); |
| 20116 | ; |
| 20117 | return 0; |
| 20118 | } |
| 20119 | _ACEOF |
| 20120 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20121 | if { (ac_try="$ac_compile" |
| 20122 | case "(($ac_try" in |
| 20123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20124 | *) ac_try_echo=$ac_try;; |
| 20125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20127 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20130 | rm -f conftest.er1 |
| 20131 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20133 | (exit $ac_status); } && { |
| 20134 | test -z "$ac_c_werror_flag" || |
| 20135 | test ! -s conftest.err |
| 20136 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20137 | |
| 20138 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20139 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20141 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20142 | |
| 20143 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20147 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20149 | |
| 20150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20151 | |
| 20152 | fi |
| 20153 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20155 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20156 | for ac_func in gettimeofday |
| 20157 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20158 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20159 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20160 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20161 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20165 | /* confdefs.h. */ |
| 20166 | _ACEOF |
| 20167 | cat confdefs.h >>conftest.$ac_ext |
| 20168 | cat >>conftest.$ac_ext <<_ACEOF |
| 20169 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20170 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20172 | #define $ac_func innocuous_$ac_func |
| 20173 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20174 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20175 | which can conflict with char $ac_func (); below. |
| 20176 | 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] | 20177 | <limits.h> exists even on freestanding compilers. */ |
| 20178 | |
| 20179 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20180 | # include <limits.h> |
| 20181 | #else |
| 20182 | # include <assert.h> |
| 20183 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20184 | |
| 20185 | #undef $ac_func |
| 20186 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20187 | /* Override any GCC internal prototype to avoid an error. |
| 20188 | Use char because int might match the return type of a GCC |
| 20189 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20190 | #ifdef __cplusplus |
| 20191 | extern "C" |
| 20192 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20193 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20194 | /* The GNU C library defines this for functions which it implements |
| 20195 | to always fail with ENOSYS. Some functions are actually named |
| 20196 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20197 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20198 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20199 | #endif |
| 20200 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20201 | int |
| 20202 | main () |
| 20203 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20204 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | ; |
| 20206 | return 0; |
| 20207 | } |
| 20208 | _ACEOF |
| 20209 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20210 | if { (ac_try="$ac_link" |
| 20211 | case "(($ac_try" in |
| 20212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20213 | *) ac_try_echo=$ac_try;; |
| 20214 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20216 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20217 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20219 | rm -f conftest.er1 |
| 20220 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20222 | (exit $ac_status); } && { |
| 20223 | test -z "$ac_c_werror_flag" || |
| 20224 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20225 | } && test -s conftest$ac_exeext && |
| 20226 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20227 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20228 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20231 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20232 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20233 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20234 | |
| 20235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20236 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20237 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20238 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20240 | echo "${ECHO_T}$ac_res" >&6; } |
| 20241 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20242 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20244 | _ACEOF |
| 20245 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20246 | /* confdefs.h. */ |
| 20247 | _ACEOF |
| 20248 | cat confdefs.h >>conftest.$ac_ext |
| 20249 | cat >>conftest.$ac_ext <<_ACEOF |
| 20250 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20251 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20252 | int |
| 20253 | main () |
| 20254 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20255 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20256 | ; |
| 20257 | return 0; |
| 20258 | } |
| 20259 | _ACEOF |
| 20260 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20261 | if { (ac_try="$ac_compile" |
| 20262 | case "(($ac_try" in |
| 20263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20264 | *) ac_try_echo=$ac_try;; |
| 20265 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20267 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20270 | rm -f conftest.er1 |
| 20271 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20273 | (exit $ac_status); } && { |
| 20274 | test -z "$ac_c_werror_flag" || |
| 20275 | test ! -s conftest.err |
| 20276 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20277 | : |
| 20278 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | |
| 20283 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20284 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20285 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20287 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20288 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20289 | |
| 20290 | 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] | 20291 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20292 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20293 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20294 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20295 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20296 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20297 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20299 | /* confdefs.h. */ |
| 20300 | _ACEOF |
| 20301 | cat confdefs.h >>conftest.$ac_ext |
| 20302 | cat >>conftest.$ac_ext <<_ACEOF |
| 20303 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20304 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20305 | #if defined(MAJOR_IN_MKDEV) |
| 20306 | #include <sys/mkdev.h> |
| 20307 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20308 | #include <sys/sysmacros.h> |
| 20309 | #else |
| 20310 | #include <sys/types.h> |
| 20311 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20312 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20313 | int |
| 20314 | main () |
| 20315 | { |
| 20316 | |
| 20317 | makedev(major(0),minor(0)); |
| 20318 | |
| 20319 | ; |
| 20320 | return 0; |
| 20321 | } |
| 20322 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20324 | if { (ac_try="$ac_link" |
| 20325 | case "(($ac_try" in |
| 20326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20327 | *) ac_try_echo=$ac_try;; |
| 20328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20330 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20333 | rm -f conftest.er1 |
| 20334 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20336 | (exit $ac_status); } && { |
| 20337 | test -z "$ac_c_werror_flag" || |
| 20338 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20339 | } && test -s conftest$ac_exeext && |
| 20340 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20341 | |
| 20342 | |
| 20343 | cat >>confdefs.h <<\_ACEOF |
| 20344 | #define HAVE_DEVICE_MACROS 1 |
| 20345 | _ACEOF |
| 20346 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20347 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20348 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20349 | |
| 20350 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20353 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20355 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20356 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20357 | |
| 20358 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20359 | |
| 20360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20361 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20362 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20363 | # 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] | 20364 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20365 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20366 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20368 | /* confdefs.h. */ |
| 20369 | _ACEOF |
| 20370 | cat confdefs.h >>conftest.$ac_ext |
| 20371 | cat >>conftest.$ac_ext <<_ACEOF |
| 20372 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20373 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20374 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20375 | #include <sys/socket.h> |
| 20376 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20377 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20379 | int |
| 20380 | main () |
| 20381 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20382 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20383 | ; |
| 20384 | return 0; |
| 20385 | } |
| 20386 | _ACEOF |
| 20387 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20388 | if { (ac_try="$ac_link" |
| 20389 | case "(($ac_try" in |
| 20390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20391 | *) ac_try_echo=$ac_try;; |
| 20392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20394 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20397 | rm -f conftest.er1 |
| 20398 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20400 | (exit $ac_status); } && { |
| 20401 | test -z "$ac_c_werror_flag" || |
| 20402 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20403 | } && test -s conftest$ac_exeext && |
| 20404 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20405 | have_getaddrinfo=yes |
| 20406 | else |
| 20407 | echo "$as_me: failed program was:" >&5 |
| 20408 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20409 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20410 | have_getaddrinfo=no |
| 20411 | fi |
| 20412 | |
| 20413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20414 | conftest$ac_exeext conftest.$ac_ext |
| 20415 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20416 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 20417 | if test $have_getaddrinfo = yes |
| 20418 | then |
| 20419 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20420 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20421 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20423 | else |
| 20424 | if test "$cross_compiling" = yes; then |
| 20425 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20427 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20428 | /* confdefs.h. */ |
| 20429 | _ACEOF |
| 20430 | cat confdefs.h >>conftest.$ac_ext |
| 20431 | cat >>conftest.$ac_ext <<_ACEOF |
| 20432 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20433 | |
| 20434 | #include <sys/types.h> |
| 20435 | #include <netdb.h> |
| 20436 | #include <string.h> |
| 20437 | #include <sys/socket.h> |
| 20438 | #include <netinet/in.h> |
| 20439 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20440 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20441 | { |
| 20442 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20443 | struct addrinfo hints, *ai, *aitop; |
| 20444 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20445 | |
| 20446 | for (passive = 0; passive <= 1; passive++) { |
| 20447 | memset(&hints, 0, sizeof(hints)); |
| 20448 | hints.ai_family = AF_UNSPEC; |
| 20449 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20450 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20451 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20452 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20453 | (void)gai_strerror(gaierr); |
| 20454 | goto bad; |
| 20455 | } |
| 20456 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20457 | if (ai->ai_addr == NULL || |
| 20458 | ai->ai_addrlen == 0 || |
| 20459 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20460 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20461 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20462 | goto bad; |
| 20463 | } |
| 20464 | switch (ai->ai_family) { |
| 20465 | case AF_INET: |
| 20466 | if (strcmp(strport, "54321") != 0) { |
| 20467 | goto bad; |
| 20468 | } |
| 20469 | if (passive) { |
| 20470 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20471 | goto bad; |
| 20472 | } |
| 20473 | } else { |
| 20474 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20475 | goto bad; |
| 20476 | } |
| 20477 | } |
| 20478 | inet4++; |
| 20479 | break; |
| 20480 | case AF_INET6: |
| 20481 | if (strcmp(strport, "54321") != 0) { |
| 20482 | goto bad; |
| 20483 | } |
| 20484 | if (passive) { |
| 20485 | if (strcmp(straddr, "::") != 0) { |
| 20486 | goto bad; |
| 20487 | } |
| 20488 | } else { |
| 20489 | if (strcmp(straddr, "::1") != 0) { |
| 20490 | goto bad; |
| 20491 | } |
| 20492 | } |
| 20493 | inet6++; |
| 20494 | break; |
| 20495 | case AF_UNSPEC: |
| 20496 | goto bad; |
| 20497 | break; |
| 20498 | default: |
| 20499 | /* another family support? */ |
| 20500 | break; |
| 20501 | } |
| 20502 | } |
| 20503 | } |
| 20504 | |
| 20505 | if (!(inet4 == 0 || inet4 == 2)) |
| 20506 | goto bad; |
| 20507 | if (!(inet6 == 0 || inet6 == 2)) |
| 20508 | goto bad; |
| 20509 | |
| 20510 | if (aitop) |
| 20511 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20512 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20513 | |
| 20514 | bad: |
| 20515 | if (aitop) |
| 20516 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20517 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20518 | } |
| 20519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20520 | _ACEOF |
| 20521 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20522 | if { (ac_try="$ac_link" |
| 20523 | case "(($ac_try" in |
| 20524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20525 | *) ac_try_echo=$ac_try;; |
| 20526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20528 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20532 | { (case "(($ac_try" in |
| 20533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20534 | *) ac_try_echo=$ac_try;; |
| 20535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20537 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20538 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20540 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20541 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20543 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20547 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20548 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20549 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20550 | 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] | 20551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20552 | |
| 20553 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20554 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20555 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20557 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20558 | if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes |
| 20559 | then |
| 20560 | if test $ipv6 = yes |
| 20561 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20562 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 20563 | echo ' or you can specify "--disable-ipv6"'. |
| 20564 | exit 1 |
| 20565 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20567 | |
| 20568 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20569 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20570 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20571 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20573 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 20574 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20575 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20576 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20577 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20578 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20579 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20583 | /* confdefs.h. */ |
| 20584 | _ACEOF |
| 20585 | cat confdefs.h >>conftest.$ac_ext |
| 20586 | cat >>conftest.$ac_ext <<_ACEOF |
| 20587 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20588 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20590 | #define $ac_func innocuous_$ac_func |
| 20591 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20592 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20593 | which can conflict with char $ac_func (); below. |
| 20594 | 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] | 20595 | <limits.h> exists even on freestanding compilers. */ |
| 20596 | |
| 20597 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20598 | # include <limits.h> |
| 20599 | #else |
| 20600 | # include <assert.h> |
| 20601 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20602 | |
| 20603 | #undef $ac_func |
| 20604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20605 | /* Override any GCC internal prototype to avoid an error. |
| 20606 | Use char because int might match the return type of a GCC |
| 20607 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20608 | #ifdef __cplusplus |
| 20609 | extern "C" |
| 20610 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20611 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20612 | /* The GNU C library defines this for functions which it implements |
| 20613 | to always fail with ENOSYS. Some functions are actually named |
| 20614 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20615 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20616 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20617 | #endif |
| 20618 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20619 | int |
| 20620 | main () |
| 20621 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20622 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20623 | ; |
| 20624 | return 0; |
| 20625 | } |
| 20626 | _ACEOF |
| 20627 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20628 | if { (ac_try="$ac_link" |
| 20629 | case "(($ac_try" in |
| 20630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20631 | *) ac_try_echo=$ac_try;; |
| 20632 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20634 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20635 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20637 | rm -f conftest.er1 |
| 20638 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20640 | (exit $ac_status); } && { |
| 20641 | test -z "$ac_c_werror_flag" || |
| 20642 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20643 | } && test -s conftest$ac_exeext && |
| 20644 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20645 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20646 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20650 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20652 | |
| 20653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20654 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20655 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20656 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20658 | echo "${ECHO_T}$ac_res" >&6; } |
| 20659 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20660 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20662 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20663 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20664 | fi |
| 20665 | done |
| 20666 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20667 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20668 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20669 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20670 | 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] | 20671 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20675 | /* confdefs.h. */ |
| 20676 | _ACEOF |
| 20677 | cat confdefs.h >>conftest.$ac_ext |
| 20678 | cat >>conftest.$ac_ext <<_ACEOF |
| 20679 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20680 | #include <sys/types.h> |
| 20681 | #include <sys/time.h> |
| 20682 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20684 | int |
| 20685 | main () |
| 20686 | { |
| 20687 | if ((struct tm *) 0) |
| 20688 | return 0; |
| 20689 | ; |
| 20690 | return 0; |
| 20691 | } |
| 20692 | _ACEOF |
| 20693 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20694 | if { (ac_try="$ac_compile" |
| 20695 | case "(($ac_try" in |
| 20696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20697 | *) ac_try_echo=$ac_try;; |
| 20698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20703 | rm -f conftest.er1 |
| 20704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20706 | (exit $ac_status); } && { |
| 20707 | test -z "$ac_c_werror_flag" || |
| 20708 | test ! -s conftest.err |
| 20709 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20710 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20715 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20717 | |
| 20718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20719 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20720 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 20721 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20722 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20723 | |
| 20724 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20725 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20726 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20727 | |
| 20728 | fi |
| 20729 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20730 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 20731 | 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] | 20732 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20736 | /* confdefs.h. */ |
| 20737 | _ACEOF |
| 20738 | cat confdefs.h >>conftest.$ac_ext |
| 20739 | cat >>conftest.$ac_ext <<_ACEOF |
| 20740 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20741 | #include <sys/types.h> |
| 20742 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20744 | int |
| 20745 | main () |
| 20746 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20747 | struct tm tm; |
| 20748 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20749 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | ; |
| 20751 | return 0; |
| 20752 | } |
| 20753 | _ACEOF |
| 20754 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20755 | if { (ac_try="$ac_compile" |
| 20756 | case "(($ac_try" in |
| 20757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20758 | *) ac_try_echo=$ac_try;; |
| 20759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20761 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20764 | rm -f conftest.er1 |
| 20765 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20767 | (exit $ac_status); } && { |
| 20768 | test -z "$ac_c_werror_flag" || |
| 20769 | test ! -s conftest.err |
| 20770 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20771 | ac_cv_struct_tm=time.h |
| 20772 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20773 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20775 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20776 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20777 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20778 | |
| 20779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20780 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20781 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 20782 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20783 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20784 | |
| 20785 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20786 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20787 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20788 | |
| 20789 | fi |
| 20790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20791 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20792 | 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] | 20793 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20796 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20797 | /* confdefs.h. */ |
| 20798 | _ACEOF |
| 20799 | cat confdefs.h >>conftest.$ac_ext |
| 20800 | cat >>conftest.$ac_ext <<_ACEOF |
| 20801 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20802 | #include <sys/types.h> |
| 20803 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20804 | |
| 20805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20806 | int |
| 20807 | main () |
| 20808 | { |
| 20809 | static struct tm ac_aggr; |
| 20810 | if (ac_aggr.tm_zone) |
| 20811 | return 0; |
| 20812 | ; |
| 20813 | return 0; |
| 20814 | } |
| 20815 | _ACEOF |
| 20816 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20817 | if { (ac_try="$ac_compile" |
| 20818 | case "(($ac_try" in |
| 20819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20820 | *) ac_try_echo=$ac_try;; |
| 20821 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20823 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20824 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20826 | rm -f conftest.er1 |
| 20827 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20829 | (exit $ac_status); } && { |
| 20830 | test -z "$ac_c_werror_flag" || |
| 20831 | test ! -s conftest.err |
| 20832 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20833 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20834 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20837 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20838 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20839 | /* confdefs.h. */ |
| 20840 | _ACEOF |
| 20841 | cat confdefs.h >>conftest.$ac_ext |
| 20842 | cat >>conftest.$ac_ext <<_ACEOF |
| 20843 | /* end confdefs.h. */ |
| 20844 | #include <sys/types.h> |
| 20845 | #include <$ac_cv_struct_tm> |
| 20846 | |
| 20847 | |
| 20848 | int |
| 20849 | main () |
| 20850 | { |
| 20851 | static struct tm ac_aggr; |
| 20852 | if (sizeof ac_aggr.tm_zone) |
| 20853 | return 0; |
| 20854 | ; |
| 20855 | return 0; |
| 20856 | } |
| 20857 | _ACEOF |
| 20858 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20859 | if { (ac_try="$ac_compile" |
| 20860 | case "(($ac_try" in |
| 20861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20862 | *) ac_try_echo=$ac_try;; |
| 20863 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20865 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20866 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20868 | rm -f conftest.er1 |
| 20869 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20871 | (exit $ac_status); } && { |
| 20872 | test -z "$ac_c_werror_flag" || |
| 20873 | test ! -s conftest.err |
| 20874 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20875 | ac_cv_member_struct_tm_tm_zone=yes |
| 20876 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20880 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20881 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20882 | |
| 20883 | 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] | 20884 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20885 | |
| 20886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20887 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20888 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 20889 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 20890 | 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] | 20891 | |
| 20892 | cat >>confdefs.h <<_ACEOF |
| 20893 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20894 | _ACEOF |
| 20895 | |
| 20896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20897 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20899 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20900 | |
| 20901 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20902 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20903 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20904 | |
| 20905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20906 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 20907 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20908 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20910 | else |
| 20911 | cat >conftest.$ac_ext <<_ACEOF |
| 20912 | /* confdefs.h. */ |
| 20913 | _ACEOF |
| 20914 | cat confdefs.h >>conftest.$ac_ext |
| 20915 | cat >>conftest.$ac_ext <<_ACEOF |
| 20916 | /* end confdefs.h. */ |
| 20917 | #include <time.h> |
| 20918 | |
| 20919 | int |
| 20920 | main () |
| 20921 | { |
| 20922 | #ifndef tzname |
| 20923 | (void) tzname; |
| 20924 | #endif |
| 20925 | |
| 20926 | ; |
| 20927 | return 0; |
| 20928 | } |
| 20929 | _ACEOF |
| 20930 | rm -f conftest.$ac_objext |
| 20931 | if { (ac_try="$ac_compile" |
| 20932 | case "(($ac_try" in |
| 20933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20934 | *) ac_try_echo=$ac_try;; |
| 20935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20937 | (eval "$ac_compile") 2>conftest.er1 |
| 20938 | ac_status=$? |
| 20939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20940 | rm -f conftest.er1 |
| 20941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20943 | (exit $ac_status); } && { |
| 20944 | test -z "$ac_c_werror_flag" || |
| 20945 | test ! -s conftest.err |
| 20946 | } && test -s conftest.$ac_objext; then |
| 20947 | ac_cv_have_decl_tzname=yes |
| 20948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20949 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20951 | |
| 20952 | ac_cv_have_decl_tzname=no |
| 20953 | fi |
| 20954 | |
| 20955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20956 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20957 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 20958 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 20959 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20960 | |
| 20961 | cat >>confdefs.h <<_ACEOF |
| 20962 | #define HAVE_DECL_TZNAME 1 |
| 20963 | _ACEOF |
| 20964 | |
| 20965 | |
| 20966 | else |
| 20967 | cat >>confdefs.h <<_ACEOF |
| 20968 | #define HAVE_DECL_TZNAME 0 |
| 20969 | _ACEOF |
| 20970 | |
| 20971 | |
| 20972 | fi |
| 20973 | |
| 20974 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20975 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20976 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20977 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20981 | /* confdefs.h. */ |
| 20982 | _ACEOF |
| 20983 | cat confdefs.h >>conftest.$ac_ext |
| 20984 | cat >>conftest.$ac_ext <<_ACEOF |
| 20985 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20986 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20987 | #if !HAVE_DECL_TZNAME |
| 20988 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20989 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20991 | int |
| 20992 | main () |
| 20993 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20994 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20995 | ; |
| 20996 | return 0; |
| 20997 | } |
| 20998 | _ACEOF |
| 20999 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21000 | if { (ac_try="$ac_link" |
| 21001 | case "(($ac_try" in |
| 21002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21003 | *) ac_try_echo=$ac_try;; |
| 21004 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21006 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21009 | rm -f conftest.er1 |
| 21010 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | (exit $ac_status); } && { |
| 21013 | test -z "$ac_c_werror_flag" || |
| 21014 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21015 | } && test -s conftest$ac_exeext && |
| 21016 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21017 | ac_cv_var_tzname=yes |
| 21018 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21021 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21022 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21023 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21024 | |
| 21025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21026 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21027 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21028 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21029 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21030 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21031 | |
| 21032 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21033 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21034 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21035 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21036 | fi |
| 21037 | fi |
| 21038 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21039 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21040 | 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] | 21041 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | else |
| 21044 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21045 | /* confdefs.h. */ |
| 21046 | _ACEOF |
| 21047 | cat confdefs.h >>conftest.$ac_ext |
| 21048 | cat >>conftest.$ac_ext <<_ACEOF |
| 21049 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21050 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | int |
| 21052 | main () |
| 21053 | { |
| 21054 | static struct stat ac_aggr; |
| 21055 | if (ac_aggr.st_rdev) |
| 21056 | return 0; |
| 21057 | ; |
| 21058 | return 0; |
| 21059 | } |
| 21060 | _ACEOF |
| 21061 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21062 | if { (ac_try="$ac_compile" |
| 21063 | case "(($ac_try" in |
| 21064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21065 | *) ac_try_echo=$ac_try;; |
| 21066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21068 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21071 | rm -f conftest.er1 |
| 21072 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21074 | (exit $ac_status); } && { |
| 21075 | test -z "$ac_c_werror_flag" || |
| 21076 | test ! -s conftest.err |
| 21077 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21078 | ac_cv_member_struct_stat_st_rdev=yes |
| 21079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21084 | /* confdefs.h. */ |
| 21085 | _ACEOF |
| 21086 | cat confdefs.h >>conftest.$ac_ext |
| 21087 | cat >>conftest.$ac_ext <<_ACEOF |
| 21088 | /* end confdefs.h. */ |
| 21089 | $ac_includes_default |
| 21090 | int |
| 21091 | main () |
| 21092 | { |
| 21093 | static struct stat ac_aggr; |
| 21094 | if (sizeof ac_aggr.st_rdev) |
| 21095 | return 0; |
| 21096 | ; |
| 21097 | return 0; |
| 21098 | } |
| 21099 | _ACEOF |
| 21100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21101 | if { (ac_try="$ac_compile" |
| 21102 | case "(($ac_try" in |
| 21103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21104 | *) ac_try_echo=$ac_try;; |
| 21105 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21107 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21110 | rm -f conftest.er1 |
| 21111 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21113 | (exit $ac_status); } && { |
| 21114 | test -z "$ac_c_werror_flag" || |
| 21115 | test ! -s conftest.err |
| 21116 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21117 | ac_cv_member_struct_stat_st_rdev=yes |
| 21118 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21122 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21123 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21124 | |
| 21125 | 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] | 21126 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21127 | |
| 21128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21129 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21130 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21131 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21132 | 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] | 21133 | |
| 21134 | cat >>confdefs.h <<_ACEOF |
| 21135 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21136 | _ACEOF |
| 21137 | |
| 21138 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21139 | fi |
| 21140 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21141 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21142 | 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] | 21143 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21147 | /* confdefs.h. */ |
| 21148 | _ACEOF |
| 21149 | cat confdefs.h >>conftest.$ac_ext |
| 21150 | cat >>conftest.$ac_ext <<_ACEOF |
| 21151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21152 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21153 | int |
| 21154 | main () |
| 21155 | { |
| 21156 | static struct stat ac_aggr; |
| 21157 | if (ac_aggr.st_blksize) |
| 21158 | return 0; |
| 21159 | ; |
| 21160 | return 0; |
| 21161 | } |
| 21162 | _ACEOF |
| 21163 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21164 | if { (ac_try="$ac_compile" |
| 21165 | case "(($ac_try" in |
| 21166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21167 | *) ac_try_echo=$ac_try;; |
| 21168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21173 | rm -f conftest.er1 |
| 21174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21176 | (exit $ac_status); } && { |
| 21177 | test -z "$ac_c_werror_flag" || |
| 21178 | test ! -s conftest.err |
| 21179 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21186 | /* confdefs.h. */ |
| 21187 | _ACEOF |
| 21188 | cat confdefs.h >>conftest.$ac_ext |
| 21189 | cat >>conftest.$ac_ext <<_ACEOF |
| 21190 | /* end confdefs.h. */ |
| 21191 | $ac_includes_default |
| 21192 | int |
| 21193 | main () |
| 21194 | { |
| 21195 | static struct stat ac_aggr; |
| 21196 | if (sizeof ac_aggr.st_blksize) |
| 21197 | return 0; |
| 21198 | ; |
| 21199 | return 0; |
| 21200 | } |
| 21201 | _ACEOF |
| 21202 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21203 | if { (ac_try="$ac_compile" |
| 21204 | case "(($ac_try" in |
| 21205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21206 | *) ac_try_echo=$ac_try;; |
| 21207 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21209 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21210 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21212 | rm -f conftest.er1 |
| 21213 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21215 | (exit $ac_status); } && { |
| 21216 | test -z "$ac_c_werror_flag" || |
| 21217 | test ! -s conftest.err |
| 21218 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21219 | ac_cv_member_struct_stat_st_blksize=yes |
| 21220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21224 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21226 | |
| 21227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21229 | |
| 21230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21231 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21232 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21233 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21234 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21236 | cat >>confdefs.h <<_ACEOF |
| 21237 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21238 | _ACEOF |
| 21239 | |
| 21240 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21241 | fi |
| 21242 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21243 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21244 | 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] | 21245 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21247 | else |
| 21248 | cat >conftest.$ac_ext <<_ACEOF |
| 21249 | /* confdefs.h. */ |
| 21250 | _ACEOF |
| 21251 | cat confdefs.h >>conftest.$ac_ext |
| 21252 | cat >>conftest.$ac_ext <<_ACEOF |
| 21253 | /* end confdefs.h. */ |
| 21254 | $ac_includes_default |
| 21255 | int |
| 21256 | main () |
| 21257 | { |
| 21258 | static struct stat ac_aggr; |
| 21259 | if (ac_aggr.st_flags) |
| 21260 | return 0; |
| 21261 | ; |
| 21262 | return 0; |
| 21263 | } |
| 21264 | _ACEOF |
| 21265 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21266 | if { (ac_try="$ac_compile" |
| 21267 | case "(($ac_try" in |
| 21268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21269 | *) ac_try_echo=$ac_try;; |
| 21270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21272 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21273 | ac_status=$? |
| 21274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21275 | rm -f conftest.er1 |
| 21276 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21278 | (exit $ac_status); } && { |
| 21279 | test -z "$ac_c_werror_flag" || |
| 21280 | test ! -s conftest.err |
| 21281 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21282 | ac_cv_member_struct_stat_st_flags=yes |
| 21283 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21284 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21287 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21288 | /* confdefs.h. */ |
| 21289 | _ACEOF |
| 21290 | cat confdefs.h >>conftest.$ac_ext |
| 21291 | cat >>conftest.$ac_ext <<_ACEOF |
| 21292 | /* end confdefs.h. */ |
| 21293 | $ac_includes_default |
| 21294 | int |
| 21295 | main () |
| 21296 | { |
| 21297 | static struct stat ac_aggr; |
| 21298 | if (sizeof ac_aggr.st_flags) |
| 21299 | return 0; |
| 21300 | ; |
| 21301 | return 0; |
| 21302 | } |
| 21303 | _ACEOF |
| 21304 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21305 | if { (ac_try="$ac_compile" |
| 21306 | case "(($ac_try" in |
| 21307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21308 | *) ac_try_echo=$ac_try;; |
| 21309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21311 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21312 | ac_status=$? |
| 21313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21314 | rm -f conftest.er1 |
| 21315 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21317 | (exit $ac_status); } && { |
| 21318 | test -z "$ac_c_werror_flag" || |
| 21319 | test ! -s conftest.err |
| 21320 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21321 | ac_cv_member_struct_stat_st_flags=yes |
| 21322 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21323 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21325 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21326 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21327 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21328 | |
| 21329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21330 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21331 | |
| 21332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21333 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21334 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21335 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21336 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21337 | |
| 21338 | cat >>confdefs.h <<_ACEOF |
| 21339 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21340 | _ACEOF |
| 21341 | |
| 21342 | |
| 21343 | fi |
| 21344 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21345 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21346 | 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] | 21347 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21349 | else |
| 21350 | cat >conftest.$ac_ext <<_ACEOF |
| 21351 | /* confdefs.h. */ |
| 21352 | _ACEOF |
| 21353 | cat confdefs.h >>conftest.$ac_ext |
| 21354 | cat >>conftest.$ac_ext <<_ACEOF |
| 21355 | /* end confdefs.h. */ |
| 21356 | $ac_includes_default |
| 21357 | int |
| 21358 | main () |
| 21359 | { |
| 21360 | static struct stat ac_aggr; |
| 21361 | if (ac_aggr.st_gen) |
| 21362 | return 0; |
| 21363 | ; |
| 21364 | return 0; |
| 21365 | } |
| 21366 | _ACEOF |
| 21367 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21368 | if { (ac_try="$ac_compile" |
| 21369 | case "(($ac_try" in |
| 21370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21371 | *) ac_try_echo=$ac_try;; |
| 21372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21374 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21375 | ac_status=$? |
| 21376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21377 | rm -f conftest.er1 |
| 21378 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21380 | (exit $ac_status); } && { |
| 21381 | test -z "$ac_c_werror_flag" || |
| 21382 | test ! -s conftest.err |
| 21383 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21384 | ac_cv_member_struct_stat_st_gen=yes |
| 21385 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21386 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21388 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21389 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21390 | /* confdefs.h. */ |
| 21391 | _ACEOF |
| 21392 | cat confdefs.h >>conftest.$ac_ext |
| 21393 | cat >>conftest.$ac_ext <<_ACEOF |
| 21394 | /* end confdefs.h. */ |
| 21395 | $ac_includes_default |
| 21396 | int |
| 21397 | main () |
| 21398 | { |
| 21399 | static struct stat ac_aggr; |
| 21400 | if (sizeof ac_aggr.st_gen) |
| 21401 | return 0; |
| 21402 | ; |
| 21403 | return 0; |
| 21404 | } |
| 21405 | _ACEOF |
| 21406 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21407 | if { (ac_try="$ac_compile" |
| 21408 | case "(($ac_try" in |
| 21409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21410 | *) ac_try_echo=$ac_try;; |
| 21411 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21413 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21414 | ac_status=$? |
| 21415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21416 | rm -f conftest.er1 |
| 21417 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21419 | (exit $ac_status); } && { |
| 21420 | test -z "$ac_c_werror_flag" || |
| 21421 | test ! -s conftest.err |
| 21422 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21423 | ac_cv_member_struct_stat_st_gen=yes |
| 21424 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21425 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21428 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21429 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21430 | |
| 21431 | 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] | 21432 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21433 | |
| 21434 | 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] | 21435 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21436 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21437 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21438 | 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] | 21439 | |
| 21440 | cat >>confdefs.h <<_ACEOF |
| 21441 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21442 | _ACEOF |
| 21443 | |
| 21444 | |
| 21445 | fi |
| 21446 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21447 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21448 | 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] | 21449 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21451 | else |
| 21452 | cat >conftest.$ac_ext <<_ACEOF |
| 21453 | /* confdefs.h. */ |
| 21454 | _ACEOF |
| 21455 | cat confdefs.h >>conftest.$ac_ext |
| 21456 | cat >>conftest.$ac_ext <<_ACEOF |
| 21457 | /* end confdefs.h. */ |
| 21458 | $ac_includes_default |
| 21459 | int |
| 21460 | main () |
| 21461 | { |
| 21462 | static struct stat ac_aggr; |
| 21463 | if (ac_aggr.st_birthtime) |
| 21464 | return 0; |
| 21465 | ; |
| 21466 | return 0; |
| 21467 | } |
| 21468 | _ACEOF |
| 21469 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21470 | if { (ac_try="$ac_compile" |
| 21471 | case "(($ac_try" in |
| 21472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21473 | *) ac_try_echo=$ac_try;; |
| 21474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21477 | ac_status=$? |
| 21478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21479 | rm -f conftest.er1 |
| 21480 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21482 | (exit $ac_status); } && { |
| 21483 | test -z "$ac_c_werror_flag" || |
| 21484 | test ! -s conftest.err |
| 21485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21486 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21488 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21491 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21492 | /* confdefs.h. */ |
| 21493 | _ACEOF |
| 21494 | cat confdefs.h >>conftest.$ac_ext |
| 21495 | cat >>conftest.$ac_ext <<_ACEOF |
| 21496 | /* end confdefs.h. */ |
| 21497 | $ac_includes_default |
| 21498 | int |
| 21499 | main () |
| 21500 | { |
| 21501 | static struct stat ac_aggr; |
| 21502 | if (sizeof ac_aggr.st_birthtime) |
| 21503 | return 0; |
| 21504 | ; |
| 21505 | return 0; |
| 21506 | } |
| 21507 | _ACEOF |
| 21508 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21509 | if { (ac_try="$ac_compile" |
| 21510 | case "(($ac_try" in |
| 21511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21512 | *) ac_try_echo=$ac_try;; |
| 21513 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21515 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21516 | ac_status=$? |
| 21517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21518 | rm -f conftest.er1 |
| 21519 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21521 | (exit $ac_status); } && { |
| 21522 | test -z "$ac_c_werror_flag" || |
| 21523 | test ! -s conftest.err |
| 21524 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21525 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21526 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21527 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21530 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21531 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21532 | |
| 21533 | 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] | 21534 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21535 | |
| 21536 | 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] | 21537 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21538 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 21539 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 21540 | 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] | 21541 | |
| 21542 | cat >>confdefs.h <<_ACEOF |
| 21543 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 21544 | _ACEOF |
| 21545 | |
| 21546 | |
| 21547 | fi |
| 21548 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21549 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 21550 | 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] | 21551 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21554 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21555 | /* confdefs.h. */ |
| 21556 | _ACEOF |
| 21557 | cat confdefs.h >>conftest.$ac_ext |
| 21558 | cat >>conftest.$ac_ext <<_ACEOF |
| 21559 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21560 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21561 | int |
| 21562 | main () |
| 21563 | { |
| 21564 | static struct stat ac_aggr; |
| 21565 | if (ac_aggr.st_blocks) |
| 21566 | return 0; |
| 21567 | ; |
| 21568 | return 0; |
| 21569 | } |
| 21570 | _ACEOF |
| 21571 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21572 | if { (ac_try="$ac_compile" |
| 21573 | case "(($ac_try" in |
| 21574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21575 | *) ac_try_echo=$ac_try;; |
| 21576 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21578 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21579 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21581 | rm -f conftest.er1 |
| 21582 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21584 | (exit $ac_status); } && { |
| 21585 | test -z "$ac_c_werror_flag" || |
| 21586 | test ! -s conftest.err |
| 21587 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21588 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21589 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21590 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21592 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21594 | /* confdefs.h. */ |
| 21595 | _ACEOF |
| 21596 | cat confdefs.h >>conftest.$ac_ext |
| 21597 | cat >>conftest.$ac_ext <<_ACEOF |
| 21598 | /* end confdefs.h. */ |
| 21599 | $ac_includes_default |
| 21600 | int |
| 21601 | main () |
| 21602 | { |
| 21603 | static struct stat ac_aggr; |
| 21604 | if (sizeof ac_aggr.st_blocks) |
| 21605 | return 0; |
| 21606 | ; |
| 21607 | return 0; |
| 21608 | } |
| 21609 | _ACEOF |
| 21610 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21611 | if { (ac_try="$ac_compile" |
| 21612 | case "(($ac_try" in |
| 21613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21614 | *) ac_try_echo=$ac_try;; |
| 21615 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21617 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21620 | rm -f conftest.er1 |
| 21621 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21623 | (exit $ac_status); } && { |
| 21624 | test -z "$ac_c_werror_flag" || |
| 21625 | test ! -s conftest.err |
| 21626 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21627 | ac_cv_member_struct_stat_st_blocks=yes |
| 21628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21632 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21633 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21634 | |
| 21635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21637 | |
| 21638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21639 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21640 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 21641 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 21642 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21644 | cat >>confdefs.h <<_ACEOF |
| 21645 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 21646 | _ACEOF |
| 21647 | |
| 21648 | |
| 21649 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21650 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21652 | |
| 21653 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21654 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21655 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21656 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 21657 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21658 | esac |
| 21659 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21660 | fi |
| 21661 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21663 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21664 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 21665 | 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] | 21666 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21670 | /* confdefs.h. */ |
| 21671 | _ACEOF |
| 21672 | cat confdefs.h >>conftest.$ac_ext |
| 21673 | cat >>conftest.$ac_ext <<_ACEOF |
| 21674 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21675 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21676 | int |
| 21677 | main () |
| 21678 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21679 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21680 | ; |
| 21681 | return 0; |
| 21682 | } |
| 21683 | _ACEOF |
| 21684 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21685 | if { (ac_try="$ac_compile" |
| 21686 | case "(($ac_try" in |
| 21687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21688 | *) ac_try_echo=$ac_try;; |
| 21689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21691 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21694 | rm -f conftest.er1 |
| 21695 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21697 | (exit $ac_status); } && { |
| 21698 | test -z "$ac_c_werror_flag" || |
| 21699 | test ! -s conftest.err |
| 21700 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21701 | ac_cv_header_time_altzone=yes |
| 21702 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21705 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21706 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21707 | fi |
| 21708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21710 | fi |
| 21711 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21712 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 21713 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21714 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21715 | |
| 21716 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21717 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21718 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21719 | |
| 21720 | fi |
| 21721 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21722 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21723 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 21724 | 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] | 21725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21726 | /* confdefs.h. */ |
| 21727 | _ACEOF |
| 21728 | cat confdefs.h >>conftest.$ac_ext |
| 21729 | cat >>conftest.$ac_ext <<_ACEOF |
| 21730 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21731 | |
| 21732 | #include <sys/types.h> |
| 21733 | #include <sys/select.h> |
| 21734 | #include <sys/time.h> |
| 21735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21736 | int |
| 21737 | main () |
| 21738 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21739 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21740 | ; |
| 21741 | return 0; |
| 21742 | } |
| 21743 | _ACEOF |
| 21744 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21745 | if { (ac_try="$ac_compile" |
| 21746 | case "(($ac_try" in |
| 21747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21748 | *) ac_try_echo=$ac_try;; |
| 21749 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21751 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21752 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21754 | rm -f conftest.er1 |
| 21755 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21757 | (exit $ac_status); } && { |
| 21758 | test -z "$ac_c_werror_flag" || |
| 21759 | test ! -s conftest.err |
| 21760 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21761 | |
| 21762 | |
| 21763 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21764 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21765 | _ACEOF |
| 21766 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21767 | was_it_defined=yes |
| 21768 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21769 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21772 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 21773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21774 | fi |
| 21775 | |
| 21776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21777 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 21778 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21779 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21780 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 21781 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21782 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21786 | /* confdefs.h. */ |
| 21787 | _ACEOF |
| 21788 | cat confdefs.h >>conftest.$ac_ext |
| 21789 | cat >>conftest.$ac_ext <<_ACEOF |
| 21790 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21791 | |
| 21792 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21793 | int |
| 21794 | main () |
| 21795 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21796 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21797 | ; |
| 21798 | return 0; |
| 21799 | } |
| 21800 | _ACEOF |
| 21801 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21802 | if { (ac_try="$ac_compile" |
| 21803 | case "(($ac_try" in |
| 21804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21805 | *) ac_try_echo=$ac_try;; |
| 21806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21808 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21811 | rm -f conftest.er1 |
| 21812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21814 | (exit $ac_status); } && { |
| 21815 | test -z "$ac_c_werror_flag" || |
| 21816 | test ! -s conftest.err |
| 21817 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21818 | ac_cv_struct_addrinfo=yes |
| 21819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21823 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21824 | fi |
| 21825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21827 | fi |
| 21828 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21829 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 21830 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21831 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21832 | |
| 21833 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21834 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21835 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21836 | |
| 21837 | fi |
| 21838 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21839 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 21840 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21841 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21845 | /* confdefs.h. */ |
| 21846 | _ACEOF |
| 21847 | cat confdefs.h >>conftest.$ac_ext |
| 21848 | cat >>conftest.$ac_ext <<_ACEOF |
| 21849 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21850 | |
| 21851 | # include <sys/types.h> |
| 21852 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21853 | int |
| 21854 | main () |
| 21855 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21856 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21857 | ; |
| 21858 | return 0; |
| 21859 | } |
| 21860 | _ACEOF |
| 21861 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21862 | if { (ac_try="$ac_compile" |
| 21863 | case "(($ac_try" in |
| 21864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21865 | *) ac_try_echo=$ac_try;; |
| 21866 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21868 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21869 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21871 | rm -f conftest.er1 |
| 21872 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21874 | (exit $ac_status); } && { |
| 21875 | test -z "$ac_c_werror_flag" || |
| 21876 | test ! -s conftest.err |
| 21877 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21878 | ac_cv_struct_sockaddr_storage=yes |
| 21879 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21883 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21884 | fi |
| 21885 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21887 | fi |
| 21888 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21889 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 21890 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21891 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21892 | |
| 21893 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21894 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21895 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21896 | |
| 21897 | fi |
| 21898 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21899 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21900 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21901 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21902 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 21903 | 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] | 21904 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21908 | /* confdefs.h. */ |
| 21909 | _ACEOF |
| 21910 | cat confdefs.h >>conftest.$ac_ext |
| 21911 | cat >>conftest.$ac_ext <<_ACEOF |
| 21912 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21913 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21914 | int |
| 21915 | main () |
| 21916 | { |
| 21917 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 21918 | test_array [0] = 0 |
| 21919 | |
| 21920 | ; |
| 21921 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21922 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21923 | _ACEOF |
| 21924 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21925 | if { (ac_try="$ac_compile" |
| 21926 | case "(($ac_try" in |
| 21927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21928 | *) ac_try_echo=$ac_try;; |
| 21929 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21931 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21934 | rm -f conftest.er1 |
| 21935 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21937 | (exit $ac_status); } && { |
| 21938 | test -z "$ac_c_werror_flag" || |
| 21939 | test ! -s conftest.err |
| 21940 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21941 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21942 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21943 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21945 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21946 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21947 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21948 | |
| 21949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21950 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21951 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 21952 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21953 | 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] | 21954 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21955 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21956 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21957 | |
| 21958 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21959 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21960 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 21961 | 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] | 21962 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21964 | else |
| 21965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21966 | /* confdefs.h. */ |
| 21967 | _ACEOF |
| 21968 | cat confdefs.h >>conftest.$ac_ext |
| 21969 | cat >>conftest.$ac_ext <<_ACEOF |
| 21970 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21972 | int |
| 21973 | main () |
| 21974 | { |
| 21975 | /* FIXME: Include the comments suggested by Paul. */ |
| 21976 | #ifndef __cplusplus |
| 21977 | /* Ultrix mips cc rejects this. */ |
| 21978 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21979 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21980 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21981 | char const *const *pcpcc; |
| 21982 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21983 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 21984 | struct point {int x, y;}; |
| 21985 | static struct point const zero = {0,0}; |
| 21986 | /* AIX XL C 1.02.0.0 rejects this. |
| 21987 | It does not let you subtract one const X* pointer from another in |
| 21988 | an arm of an if-expression whose if-part is not a constant |
| 21989 | expression */ |
| 21990 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21991 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21992 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21993 | ++pcpcc; |
| 21994 | ppc = (char**) pcpcc; |
| 21995 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21996 | { /* SCO 3.2v4 cc rejects this. */ |
| 21997 | char *t; |
| 21998 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22000 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22001 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22002 | } |
| 22003 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22004 | int x[] = {25, 17}; |
| 22005 | const int *foo = &x[0]; |
| 22006 | ++foo; |
| 22007 | } |
| 22008 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22009 | typedef const int *iptr; |
| 22010 | iptr p = 0; |
| 22011 | ++p; |
| 22012 | } |
| 22013 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22014 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22015 | struct s { int j; const int *ap[3]; }; |
| 22016 | struct s *b; b->j = 5; |
| 22017 | } |
| 22018 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22019 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22020 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22021 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22022 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22023 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22025 | ; |
| 22026 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22027 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22028 | _ACEOF |
| 22029 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22030 | if { (ac_try="$ac_compile" |
| 22031 | case "(($ac_try" in |
| 22032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22033 | *) ac_try_echo=$ac_try;; |
| 22034 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22036 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22039 | rm -f conftest.er1 |
| 22040 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22042 | (exit $ac_status); } && { |
| 22043 | test -z "$ac_c_werror_flag" || |
| 22044 | test ! -s conftest.err |
| 22045 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22046 | ac_cv_c_const=yes |
| 22047 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22050 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22051 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22052 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22053 | |
| 22054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22055 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22056 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22057 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22058 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22059 | |
| 22060 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22061 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22062 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22063 | |
| 22064 | fi |
| 22065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22066 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22067 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22068 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22069 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22070 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22071 | /* confdefs.h. */ |
| 22072 | _ACEOF |
| 22073 | cat confdefs.h >>conftest.$ac_ext |
| 22074 | cat >>conftest.$ac_ext <<_ACEOF |
| 22075 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22077 | int |
| 22078 | main () |
| 22079 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22080 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22081 | ; |
| 22082 | return 0; |
| 22083 | } |
| 22084 | _ACEOF |
| 22085 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22086 | if { (ac_try="$ac_compile" |
| 22087 | case "(($ac_try" in |
| 22088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22089 | *) ac_try_echo=$ac_try;; |
| 22090 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22092 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22093 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22095 | rm -f conftest.er1 |
| 22096 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22098 | (exit $ac_status); } && { |
| 22099 | test -z "$ac_c_werror_flag" || |
| 22100 | test ! -s conftest.err |
| 22101 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22102 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22103 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22107 | |
| 22108 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22109 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22110 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22111 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22112 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22113 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22114 | |
| 22115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22116 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22117 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22118 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22119 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22120 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22121 | 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] | 22122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22123 | /* confdefs.h. */ |
| 22124 | _ACEOF |
| 22125 | cat confdefs.h >>conftest.$ac_ext |
| 22126 | cat >>conftest.$ac_ext <<_ACEOF |
| 22127 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22129 | int |
| 22130 | main () |
| 22131 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22132 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22133 | ; |
| 22134 | return 0; |
| 22135 | } |
| 22136 | _ACEOF |
| 22137 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22138 | if { (ac_try="$ac_compile" |
| 22139 | case "(($ac_try" in |
| 22140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22141 | *) ac_try_echo=$ac_try;; |
| 22142 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22144 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22145 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22147 | rm -f conftest.er1 |
| 22148 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22150 | (exit $ac_status); } && { |
| 22151 | test -z "$ac_c_werror_flag" || |
| 22152 | test ! -s conftest.err |
| 22153 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22154 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22155 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22159 | |
| 22160 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22161 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22162 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22163 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22164 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22166 | |
| 22167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22168 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22169 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22170 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22171 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22172 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22173 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22175 | /* confdefs.h. */ |
| 22176 | _ACEOF |
| 22177 | cat confdefs.h >>conftest.$ac_ext |
| 22178 | cat >>conftest.$ac_ext <<_ACEOF |
| 22179 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22180 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22181 | int |
| 22182 | main () |
| 22183 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22184 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22185 | ; |
| 22186 | return 0; |
| 22187 | } |
| 22188 | _ACEOF |
| 22189 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22190 | if { (ac_try="$ac_compile" |
| 22191 | case "(($ac_try" in |
| 22192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22193 | *) ac_try_echo=$ac_try;; |
| 22194 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22196 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22199 | rm -f conftest.er1 |
| 22200 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22202 | (exit $ac_status); } && { |
| 22203 | test -z "$ac_c_werror_flag" || |
| 22204 | test ! -s conftest.err |
| 22205 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22206 | |
| 22207 | |
| 22208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22209 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22210 | _ACEOF |
| 22211 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22212 | have_prototypes=yes |
| 22213 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22214 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22215 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22217 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22218 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22220 | |
| 22221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22222 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22223 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22224 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22225 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22226 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22227 | 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] | 22228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22229 | /* confdefs.h. */ |
| 22230 | _ACEOF |
| 22231 | cat confdefs.h >>conftest.$ac_ext |
| 22232 | cat >>conftest.$ac_ext <<_ACEOF |
| 22233 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22234 | |
| 22235 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22236 | int foo(int x, ...) { |
| 22237 | va_list va; |
| 22238 | va_start(va, x); |
| 22239 | va_arg(va, int); |
| 22240 | va_arg(va, char *); |
| 22241 | va_arg(va, double); |
| 22242 | return 0; |
| 22243 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22245 | int |
| 22246 | main () |
| 22247 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22248 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22249 | ; |
| 22250 | return 0; |
| 22251 | } |
| 22252 | _ACEOF |
| 22253 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22254 | if { (ac_try="$ac_compile" |
| 22255 | case "(($ac_try" in |
| 22256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22257 | *) ac_try_echo=$ac_try;; |
| 22258 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22260 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22261 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22263 | rm -f conftest.er1 |
| 22264 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22266 | (exit $ac_status); } && { |
| 22267 | test -z "$ac_c_werror_flag" || |
| 22268 | test ! -s conftest.err |
| 22269 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22270 | |
| 22271 | |
| 22272 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22273 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22274 | _ACEOF |
| 22275 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22276 | works=yes |
| 22277 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22278 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22281 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22282 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22283 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22284 | |
| 22285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22286 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22287 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22288 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22289 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22290 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22291 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22292 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22293 | /* confdefs.h. */ |
| 22294 | _ACEOF |
| 22295 | cat confdefs.h >>conftest.$ac_ext |
| 22296 | cat >>conftest.$ac_ext <<_ACEOF |
| 22297 | /* end confdefs.h. */ |
| 22298 | |
| 22299 | #include <sys/types.h> |
| 22300 | #include <sys/socket.h> |
| 22301 | |
| 22302 | int |
| 22303 | main () |
| 22304 | { |
| 22305 | void *x=socketpair |
| 22306 | ; |
| 22307 | return 0; |
| 22308 | } |
| 22309 | _ACEOF |
| 22310 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22311 | if { (ac_try="$ac_compile" |
| 22312 | case "(($ac_try" in |
| 22313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22314 | *) ac_try_echo=$ac_try;; |
| 22315 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22317 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22320 | rm -f conftest.er1 |
| 22321 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22323 | (exit $ac_status); } && { |
| 22324 | test -z "$ac_c_werror_flag" || |
| 22325 | test ! -s conftest.err |
| 22326 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22327 | |
| 22328 | cat >>confdefs.h <<\_ACEOF |
| 22329 | #define HAVE_SOCKETPAIR 1 |
| 22330 | _ACEOF |
| 22331 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22332 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22333 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22334 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22335 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22337 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22338 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22339 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22340 | |
| 22341 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22342 | |
| 22343 | 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] | 22344 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22345 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22346 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22347 | 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] | 22348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22349 | /* confdefs.h. */ |
| 22350 | _ACEOF |
| 22351 | cat confdefs.h >>conftest.$ac_ext |
| 22352 | cat >>conftest.$ac_ext <<_ACEOF |
| 22353 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22354 | #include <sys/types.h> |
| 22355 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22356 | int |
| 22357 | main () |
| 22358 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22359 | struct sockaddr x; |
| 22360 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22361 | ; |
| 22362 | return 0; |
| 22363 | } |
| 22364 | _ACEOF |
| 22365 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22366 | if { (ac_try="$ac_compile" |
| 22367 | case "(($ac_try" in |
| 22368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22369 | *) ac_try_echo=$ac_try;; |
| 22370 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22372 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22373 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22375 | rm -f conftest.er1 |
| 22376 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22378 | (exit $ac_status); } && { |
| 22379 | test -z "$ac_c_werror_flag" || |
| 22380 | test ! -s conftest.err |
| 22381 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22382 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22383 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22384 | |
| 22385 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22386 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22387 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22388 | |
| 22389 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22392 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22394 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22396 | |
| 22397 | 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] | 22398 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22399 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22400 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22401 | 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] | 22402 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22403 | /* confdefs.h. */ |
| 22404 | _ACEOF |
| 22405 | cat confdefs.h >>conftest.$ac_ext |
| 22406 | cat >>conftest.$ac_ext <<_ACEOF |
| 22407 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22408 | |
| 22409 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22410 | #include <stdarg.h> |
| 22411 | #else |
| 22412 | #include <varargs.h> |
| 22413 | #endif |
| 22414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22415 | int |
| 22416 | main () |
| 22417 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22418 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22419 | ; |
| 22420 | return 0; |
| 22421 | } |
| 22422 | _ACEOF |
| 22423 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22424 | if { (ac_try="$ac_compile" |
| 22425 | case "(($ac_try" in |
| 22426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22427 | *) ac_try_echo=$ac_try;; |
| 22428 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22430 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22431 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22433 | rm -f conftest.er1 |
| 22434 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22436 | (exit $ac_status); } && { |
| 22437 | test -z "$ac_c_werror_flag" || |
| 22438 | test ! -s conftest.err |
| 22439 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22440 | : |
| 22441 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22445 | |
| 22446 | |
| 22447 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22448 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22449 | _ACEOF |
| 22450 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22451 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22452 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22454 | |
| 22455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22456 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22457 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22458 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22459 | # 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] | 22460 | |
| 22461 | |
| 22462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22463 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22464 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22465 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22469 | /* confdefs.h. */ |
| 22470 | _ACEOF |
| 22471 | cat confdefs.h >>conftest.$ac_ext |
| 22472 | cat >>conftest.$ac_ext <<_ACEOF |
| 22473 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22474 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22476 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22477 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22478 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22479 | which can conflict with char gethostbyname_r (); below. |
| 22480 | 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] | 22481 | <limits.h> exists even on freestanding compilers. */ |
| 22482 | |
| 22483 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22484 | # include <limits.h> |
| 22485 | #else |
| 22486 | # include <assert.h> |
| 22487 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22488 | |
| 22489 | #undef gethostbyname_r |
| 22490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22491 | /* Override any GCC internal prototype to avoid an error. |
| 22492 | Use char because int might match the return type of a GCC |
| 22493 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22494 | #ifdef __cplusplus |
| 22495 | extern "C" |
| 22496 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22497 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22498 | /* The GNU C library defines this for functions which it implements |
| 22499 | to always fail with ENOSYS. Some functions are actually named |
| 22500 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22501 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22502 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22503 | #endif |
| 22504 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22505 | int |
| 22506 | main () |
| 22507 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22508 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22509 | ; |
| 22510 | return 0; |
| 22511 | } |
| 22512 | _ACEOF |
| 22513 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22514 | if { (ac_try="$ac_link" |
| 22515 | case "(($ac_try" in |
| 22516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22517 | *) ac_try_echo=$ac_try;; |
| 22518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22520 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22523 | rm -f conftest.er1 |
| 22524 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22526 | (exit $ac_status); } && { |
| 22527 | test -z "$ac_c_werror_flag" || |
| 22528 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22529 | } && test -s conftest$ac_exeext && |
| 22530 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22531 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22532 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22535 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22536 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22538 | |
| 22539 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22540 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22541 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22542 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 22543 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 22544 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22546 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22547 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22548 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22549 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22550 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 22551 | 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] | 22552 | OLD_CFLAGS=$CFLAGS |
| 22553 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22554 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22555 | /* confdefs.h. */ |
| 22556 | _ACEOF |
| 22557 | cat confdefs.h >>conftest.$ac_ext |
| 22558 | cat >>conftest.$ac_ext <<_ACEOF |
| 22559 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22560 | |
| 22561 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22563 | int |
| 22564 | main () |
| 22565 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22566 | |
| 22567 | char *name; |
| 22568 | struct hostent *he, *res; |
| 22569 | char buffer[2048]; |
| 22570 | int buflen = 2048; |
| 22571 | int h_errnop; |
| 22572 | |
| 22573 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22574 | |
| 22575 | ; |
| 22576 | return 0; |
| 22577 | } |
| 22578 | _ACEOF |
| 22579 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22580 | if { (ac_try="$ac_compile" |
| 22581 | case "(($ac_try" in |
| 22582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22583 | *) ac_try_echo=$ac_try;; |
| 22584 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22586 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22589 | rm -f conftest.er1 |
| 22590 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22592 | (exit $ac_status); } && { |
| 22593 | test -z "$ac_c_werror_flag" || |
| 22594 | test ! -s conftest.err |
| 22595 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22596 | |
| 22597 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22598 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22599 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22601 | |
| 22602 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22603 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22604 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22606 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22607 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22608 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22614 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22615 | echo "${ECHO_T}no" >&6; } |
| 22616 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 22617 | 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] | 22618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22619 | /* confdefs.h. */ |
| 22620 | _ACEOF |
| 22621 | cat confdefs.h >>conftest.$ac_ext |
| 22622 | cat >>conftest.$ac_ext <<_ACEOF |
| 22623 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22624 | |
| 22625 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22627 | int |
| 22628 | main () |
| 22629 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22630 | |
| 22631 | char *name; |
| 22632 | struct hostent *he; |
| 22633 | char buffer[2048]; |
| 22634 | int buflen = 2048; |
| 22635 | int h_errnop; |
| 22636 | |
| 22637 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22638 | |
| 22639 | ; |
| 22640 | return 0; |
| 22641 | } |
| 22642 | _ACEOF |
| 22643 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22644 | if { (ac_try="$ac_compile" |
| 22645 | case "(($ac_try" in |
| 22646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22647 | *) ac_try_echo=$ac_try;; |
| 22648 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22650 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22653 | rm -f conftest.er1 |
| 22654 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22656 | (exit $ac_status); } && { |
| 22657 | test -z "$ac_c_werror_flag" || |
| 22658 | test ! -s conftest.err |
| 22659 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22660 | |
| 22661 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22662 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22663 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22665 | |
| 22666 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22667 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22668 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22669 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22670 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22671 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22672 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22673 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22677 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22678 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22679 | echo "${ECHO_T}no" >&6; } |
| 22680 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 22681 | 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] | 22682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22683 | /* confdefs.h. */ |
| 22684 | _ACEOF |
| 22685 | cat confdefs.h >>conftest.$ac_ext |
| 22686 | cat >>conftest.$ac_ext <<_ACEOF |
| 22687 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22688 | |
| 22689 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22691 | int |
| 22692 | main () |
| 22693 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22694 | |
| 22695 | char *name; |
| 22696 | struct hostent *he; |
| 22697 | struct hostent_data data; |
| 22698 | |
| 22699 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22700 | |
| 22701 | ; |
| 22702 | return 0; |
| 22703 | } |
| 22704 | _ACEOF |
| 22705 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22706 | if { (ac_try="$ac_compile" |
| 22707 | case "(($ac_try" in |
| 22708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22709 | *) ac_try_echo=$ac_try;; |
| 22710 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22712 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22713 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22715 | rm -f conftest.er1 |
| 22716 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22718 | (exit $ac_status); } && { |
| 22719 | test -z "$ac_c_werror_flag" || |
| 22720 | test ! -s conftest.err |
| 22721 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22722 | |
| 22723 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22724 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22725 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22727 | |
| 22728 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22729 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22730 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22732 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22733 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22734 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22735 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22739 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22740 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22741 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22742 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22744 | |
| 22745 | 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] | 22746 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22748 | |
| 22749 | 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] | 22750 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22751 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22752 | |
| 22753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22754 | CFLAGS=$OLD_CFLAGS |
| 22755 | |
| 22756 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22758 | |
| 22759 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22760 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22762 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22764 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22767 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22768 | /* confdefs.h. */ |
| 22769 | _ACEOF |
| 22770 | cat confdefs.h >>conftest.$ac_ext |
| 22771 | cat >>conftest.$ac_ext <<_ACEOF |
| 22772 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22775 | #define $ac_func innocuous_$ac_func |
| 22776 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22777 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22778 | which can conflict with char $ac_func (); below. |
| 22779 | 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] | 22780 | <limits.h> exists even on freestanding compilers. */ |
| 22781 | |
| 22782 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22783 | # include <limits.h> |
| 22784 | #else |
| 22785 | # include <assert.h> |
| 22786 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22787 | |
| 22788 | #undef $ac_func |
| 22789 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22790 | /* Override any GCC internal prototype to avoid an error. |
| 22791 | Use char because int might match the return type of a GCC |
| 22792 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22793 | #ifdef __cplusplus |
| 22794 | extern "C" |
| 22795 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22796 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22797 | /* The GNU C library defines this for functions which it implements |
| 22798 | to always fail with ENOSYS. Some functions are actually named |
| 22799 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22800 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22801 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22802 | #endif |
| 22803 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22804 | int |
| 22805 | main () |
| 22806 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22807 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22808 | ; |
| 22809 | return 0; |
| 22810 | } |
| 22811 | _ACEOF |
| 22812 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22813 | if { (ac_try="$ac_link" |
| 22814 | case "(($ac_try" in |
| 22815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22816 | *) ac_try_echo=$ac_try;; |
| 22817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22819 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22822 | rm -f conftest.er1 |
| 22823 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22825 | (exit $ac_status); } && { |
| 22826 | test -z "$ac_c_werror_flag" || |
| 22827 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22828 | } && test -s conftest$ac_exeext && |
| 22829 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22830 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22831 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22835 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22836 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22837 | |
| 22838 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22839 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22840 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22841 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22843 | echo "${ECHO_T}$ac_res" >&6; } |
| 22844 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22845 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22847 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22848 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22849 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22850 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22851 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22852 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22853 | fi |
| 22854 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22855 | |
| 22856 | |
| 22857 | |
| 22858 | |
| 22859 | |
| 22860 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22861 | # checks for system services |
| 22862 | # (none yet) |
| 22863 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22864 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22865 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 22866 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22867 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22876 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 22877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22878 | #define __fpu_control innocuous___fpu_control |
| 22879 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22880 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22881 | which can conflict with char __fpu_control (); below. |
| 22882 | 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] | 22883 | <limits.h> exists even on freestanding compilers. */ |
| 22884 | |
| 22885 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22886 | # include <limits.h> |
| 22887 | #else |
| 22888 | # include <assert.h> |
| 22889 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22890 | |
| 22891 | #undef __fpu_control |
| 22892 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22893 | /* Override any GCC internal prototype to avoid an error. |
| 22894 | Use char because int might match the return type of a GCC |
| 22895 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22896 | #ifdef __cplusplus |
| 22897 | extern "C" |
| 22898 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22899 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22900 | /* The GNU C library defines this for functions which it implements |
| 22901 | to always fail with ENOSYS. Some functions are actually named |
| 22902 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22903 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22904 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22905 | #endif |
| 22906 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22907 | int |
| 22908 | main () |
| 22909 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22910 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22911 | ; |
| 22912 | return 0; |
| 22913 | } |
| 22914 | _ACEOF |
| 22915 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22916 | if { (ac_try="$ac_link" |
| 22917 | case "(($ac_try" in |
| 22918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22919 | *) ac_try_echo=$ac_try;; |
| 22920 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22922 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22923 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22925 | rm -f conftest.er1 |
| 22926 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22928 | (exit $ac_status); } && { |
| 22929 | test -z "$ac_c_werror_flag" || |
| 22930 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22931 | } && test -s conftest$ac_exeext && |
| 22932 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22933 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22934 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22938 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22939 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22940 | |
| 22941 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22942 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22943 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22944 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 22945 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 22946 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22947 | : |
| 22948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22950 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 22951 | 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] | 22952 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22955 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22956 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22958 | /* confdefs.h. */ |
| 22959 | _ACEOF |
| 22960 | cat confdefs.h >>conftest.$ac_ext |
| 22961 | cat >>conftest.$ac_ext <<_ACEOF |
| 22962 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22964 | /* Override any GCC internal prototype to avoid an error. |
| 22965 | Use char because int might match the return type of a GCC |
| 22966 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22967 | #ifdef __cplusplus |
| 22968 | extern "C" |
| 22969 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22970 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22971 | int |
| 22972 | main () |
| 22973 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22974 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22975 | ; |
| 22976 | return 0; |
| 22977 | } |
| 22978 | _ACEOF |
| 22979 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22980 | if { (ac_try="$ac_link" |
| 22981 | case "(($ac_try" in |
| 22982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22983 | *) ac_try_echo=$ac_try;; |
| 22984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22986 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22989 | rm -f conftest.er1 |
| 22990 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22992 | (exit $ac_status); } && { |
| 22993 | test -z "$ac_c_werror_flag" || |
| 22994 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22995 | } && test -s conftest$ac_exeext && |
| 22996 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22997 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22998 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23002 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23004 | |
| 23005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23006 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23007 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23009 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23010 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23011 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23012 | cat >>confdefs.h <<_ACEOF |
| 23013 | #define HAVE_LIBIEEE 1 |
| 23014 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23015 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23016 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23017 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23018 | fi |
| 23019 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23020 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23021 | fi |
| 23022 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23023 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23024 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23025 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23026 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23027 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23028 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23029 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23030 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23031 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23032 | then |
| 23033 | |
| 23034 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23035 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23036 | _ACEOF |
| 23037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23038 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23039 | echo "${ECHO_T}yes" >&6; } |
| 23040 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23041 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23042 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23043 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23045 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23046 | fi |
| 23047 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23048 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23049 | # check for --with-libm=... |
| 23050 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23051 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23052 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23053 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23054 | *) LIBM=-lm |
| 23055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23056 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23057 | 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] | 23058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23059 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23060 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23061 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23062 | if test "$withval" = no |
| 23063 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23064 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23065 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23066 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23067 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23068 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23069 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23070 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23071 | 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] | 23072 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23073 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23074 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23075 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23076 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23077 | fi |
| 23078 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23079 | |
| 23080 | # check for --with-libc=... |
| 23081 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23082 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23083 | 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] | 23084 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23085 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23086 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23087 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23088 | if test "$withval" = no |
| 23089 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23090 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23091 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23092 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23093 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23094 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23095 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23096 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23097 | 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] | 23098 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23099 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23101 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23102 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23103 | fi |
| 23104 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23105 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23106 | # ************************************ |
| 23107 | # * Check for mathematical functions * |
| 23108 | # ************************************ |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23109 | |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23110 | LIBS_SAVE=$LIBS |
| 23111 | LIBS="$LIBS $LIBM" |
| 23112 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23113 | # Detect whether system arithmetic is subject to x87-style double |
| 23114 | # rounding issues. The result of this test has little meaning on non |
| 23115 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23116 | # mode is round-to-nearest and double rounding issues are present, and |
| 23117 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23118 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23119 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23120 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23122 | else |
| 23123 | |
| 23124 | if test "$cross_compiling" = yes; then |
| 23125 | ac_cv_x87_double_rounding=no |
| 23126 | else |
| 23127 | cat >conftest.$ac_ext <<_ACEOF |
| 23128 | /* confdefs.h. */ |
| 23129 | _ACEOF |
| 23130 | cat confdefs.h >>conftest.$ac_ext |
| 23131 | cat >>conftest.$ac_ext <<_ACEOF |
| 23132 | /* end confdefs.h. */ |
| 23133 | |
| 23134 | #include <stdlib.h> |
| 23135 | #include <math.h> |
| 23136 | int main() { |
| 23137 | volatile double x, y, z; |
| 23138 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23139 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23140 | y = 1./x; |
| 23141 | if (y != 1.) |
| 23142 | exit(0); |
| 23143 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23144 | x = 1e16; |
| 23145 | y = 2.99999; |
| 23146 | z = x + y; |
| 23147 | if (z != 1e16+4.) |
| 23148 | exit(0); |
| 23149 | /* both tests show evidence of double rounding */ |
| 23150 | exit(1); |
| 23151 | } |
| 23152 | |
| 23153 | _ACEOF |
| 23154 | rm -f conftest$ac_exeext |
| 23155 | if { (ac_try="$ac_link" |
| 23156 | case "(($ac_try" in |
| 23157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23158 | *) ac_try_echo=$ac_try;; |
| 23159 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23161 | (eval "$ac_link") 2>&5 |
| 23162 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23165 | { (case "(($ac_try" in |
| 23166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23167 | *) ac_try_echo=$ac_try;; |
| 23168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23170 | (eval "$ac_try") 2>&5 |
| 23171 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23173 | (exit $ac_status); }; }; then |
| 23174 | ac_cv_x87_double_rounding=no |
| 23175 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23176 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23177 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23179 | |
| 23180 | ( exit $ac_status ) |
| 23181 | ac_cv_x87_double_rounding=yes |
| 23182 | fi |
| 23183 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23184 | fi |
| 23185 | |
| 23186 | |
| 23187 | fi |
| 23188 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23189 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23190 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23191 | if test "$ac_cv_x87_double_rounding" = yes |
| 23192 | then |
| 23193 | |
| 23194 | cat >>confdefs.h <<\_ACEOF |
| 23195 | #define X87_DOUBLE_ROUNDING 1 |
| 23196 | _ACEOF |
| 23197 | |
| 23198 | fi |
| 23199 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23200 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23201 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 23202 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23203 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 23204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23205 | else |
| 23206 | if test "$cross_compiling" = yes; then |
| 23207 | ac_cv_broken_sem_getvalue=yes |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23208 | else |
| 23209 | cat >conftest.$ac_ext <<_ACEOF |
| 23210 | /* confdefs.h. */ |
| 23211 | _ACEOF |
| 23212 | cat confdefs.h >>conftest.$ac_ext |
| 23213 | cat >>conftest.$ac_ext <<_ACEOF |
| 23214 | /* end confdefs.h. */ |
| 23215 | |
| 23216 | #include <unistd.h> |
| 23217 | #include <fcntl.h> |
| 23218 | #include <stdio.h> |
| 23219 | #include <semaphore.h> |
| 23220 | #include <sys/stat.h> |
| 23221 | |
| 23222 | int main(void){ |
| 23223 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23224 | int count; |
| 23225 | int res; |
| 23226 | if(a==SEM_FAILED){ |
| 23227 | perror("sem_open"); |
| 23228 | return 1; |
| 23229 | |
| 23230 | } |
| 23231 | res = sem_getvalue(a, &count); |
| 23232 | sem_close(a); |
| 23233 | return res==-1 ? 1 : 0; |
| 23234 | } |
| 23235 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23236 | _ACEOF |
| 23237 | rm -f conftest$ac_exeext |
| 23238 | if { (ac_try="$ac_link" |
| 23239 | case "(($ac_try" in |
| 23240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23241 | *) ac_try_echo=$ac_try;; |
| 23242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23244 | (eval "$ac_link") 2>&5 |
| 23245 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23248 | { (case "(($ac_try" in |
| 23249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23250 | *) ac_try_echo=$ac_try;; |
| 23251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23253 | (eval "$ac_try") 2>&5 |
| 23254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23256 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23257 | ac_cv_broken_sem_getvalue=no |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23258 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23259 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23260 | echo "$as_me: failed program was:" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23262 | |
| 23263 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23264 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23265 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23266 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23267 | fi |
| 23268 | |
| 23269 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23270 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23271 | fi |
| 23272 | |
| 23273 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 23274 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 23275 | if test $ac_cv_broken_sem_getvalue = yes |
| 23276 | then |
| 23277 | |
| 23278 | cat >>confdefs.h <<\_ACEOF |
| 23279 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23280 | _ACEOF |
| 23281 | |
| 23282 | fi |
| 23283 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23284 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23285 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23286 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23287 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23288 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23290 | else |
| 23291 | |
| 23292 | if test "$cross_compiling" = yes; then |
| 23293 | ac_cv_tanh_preserves_zero_sign=no |
| 23294 | else |
| 23295 | cat >conftest.$ac_ext <<_ACEOF |
| 23296 | /* confdefs.h. */ |
| 23297 | _ACEOF |
| 23298 | cat confdefs.h >>conftest.$ac_ext |
| 23299 | cat >>conftest.$ac_ext <<_ACEOF |
| 23300 | /* end confdefs.h. */ |
| 23301 | |
| 23302 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23303 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23304 | int main() { |
| 23305 | /* return 0 if either negative zeros don't exist |
| 23306 | on this platform or if negative zeros exist |
| 23307 | and tanh(-0.) == -0. */ |
| 23308 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 23309 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 23310 | else exit(1); |
| 23311 | } |
| 23312 | |
| 23313 | _ACEOF |
| 23314 | rm -f conftest$ac_exeext |
| 23315 | if { (ac_try="$ac_link" |
| 23316 | case "(($ac_try" in |
| 23317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23318 | *) ac_try_echo=$ac_try;; |
| 23319 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23321 | (eval "$ac_link") 2>&5 |
| 23322 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23325 | { (case "(($ac_try" in |
| 23326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23327 | *) ac_try_echo=$ac_try;; |
| 23328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23330 | (eval "$ac_try") 2>&5 |
| 23331 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23333 | (exit $ac_status); }; }; then |
| 23334 | ac_cv_tanh_preserves_zero_sign=yes |
| 23335 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23336 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23337 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23339 | |
| 23340 | ( exit $ac_status ) |
| 23341 | ac_cv_tanh_preserves_zero_sign=no |
| 23342 | fi |
| 23343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23344 | fi |
| 23345 | |
| 23346 | |
| 23347 | fi |
| 23348 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23349 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 23350 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23351 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 23352 | then |
| 23353 | |
| 23354 | cat >>confdefs.h <<\_ACEOF |
| 23355 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 23356 | _ACEOF |
| 23357 | |
| 23358 | fi |
| 23359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23360 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 23361 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23362 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23363 | |
| 23364 | |
| 23365 | |
| 23366 | |
| 23367 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 23368 | |
| 23369 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23370 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23372 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23374 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23376 | else |
| 23377 | cat >conftest.$ac_ext <<_ACEOF |
| 23378 | /* confdefs.h. */ |
| 23379 | _ACEOF |
| 23380 | cat confdefs.h >>conftest.$ac_ext |
| 23381 | cat >>conftest.$ac_ext <<_ACEOF |
| 23382 | /* end confdefs.h. */ |
| 23383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23385 | #define $ac_func innocuous_$ac_func |
| 23386 | |
| 23387 | /* System header to define __stub macros and hopefully few prototypes, |
| 23388 | which can conflict with char $ac_func (); below. |
| 23389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23390 | <limits.h> exists even on freestanding compilers. */ |
| 23391 | |
| 23392 | #ifdef __STDC__ |
| 23393 | # include <limits.h> |
| 23394 | #else |
| 23395 | # include <assert.h> |
| 23396 | #endif |
| 23397 | |
| 23398 | #undef $ac_func |
| 23399 | |
| 23400 | /* Override any GCC internal prototype to avoid an error. |
| 23401 | Use char because int might match the return type of a GCC |
| 23402 | builtin and then its argument prototype would still apply. */ |
| 23403 | #ifdef __cplusplus |
| 23404 | extern "C" |
| 23405 | #endif |
| 23406 | char $ac_func (); |
| 23407 | /* The GNU C library defines this for functions which it implements |
| 23408 | to always fail with ENOSYS. Some functions are actually named |
| 23409 | something starting with __ and the normal name is an alias. */ |
| 23410 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23411 | choke me |
| 23412 | #endif |
| 23413 | |
| 23414 | int |
| 23415 | main () |
| 23416 | { |
| 23417 | return $ac_func (); |
| 23418 | ; |
| 23419 | return 0; |
| 23420 | } |
| 23421 | _ACEOF |
| 23422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23423 | if { (ac_try="$ac_link" |
| 23424 | case "(($ac_try" in |
| 23425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23426 | *) ac_try_echo=$ac_try;; |
| 23427 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23429 | (eval "$ac_link") 2>conftest.er1 |
| 23430 | ac_status=$? |
| 23431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23432 | rm -f conftest.er1 |
| 23433 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23435 | (exit $ac_status); } && { |
| 23436 | test -z "$ac_c_werror_flag" || |
| 23437 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23438 | } && test -s conftest$ac_exeext && |
| 23439 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23440 | eval "$as_ac_var=yes" |
| 23441 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23442 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23444 | |
| 23445 | eval "$as_ac_var=no" |
| 23446 | fi |
| 23447 | |
| 23448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23449 | conftest$ac_exeext conftest.$ac_ext |
| 23450 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23451 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23453 | echo "${ECHO_T}$ac_res" >&6; } |
| 23454 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23455 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23457 | _ACEOF |
| 23458 | |
| 23459 | fi |
| 23460 | done |
| 23461 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23462 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 23463 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23464 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23466 | else |
| 23467 | cat >conftest.$ac_ext <<_ACEOF |
| 23468 | /* confdefs.h. */ |
| 23469 | _ACEOF |
| 23470 | cat confdefs.h >>conftest.$ac_ext |
| 23471 | cat >>conftest.$ac_ext <<_ACEOF |
| 23472 | /* end confdefs.h. */ |
| 23473 | #include <math.h> |
| 23474 | |
| 23475 | int |
| 23476 | main () |
| 23477 | { |
| 23478 | #ifndef isinf |
| 23479 | (void) isinf; |
| 23480 | #endif |
| 23481 | |
| 23482 | ; |
| 23483 | return 0; |
| 23484 | } |
| 23485 | _ACEOF |
| 23486 | rm -f conftest.$ac_objext |
| 23487 | if { (ac_try="$ac_compile" |
| 23488 | case "(($ac_try" in |
| 23489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23490 | *) ac_try_echo=$ac_try;; |
| 23491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23493 | (eval "$ac_compile") 2>conftest.er1 |
| 23494 | ac_status=$? |
| 23495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23496 | rm -f conftest.er1 |
| 23497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23499 | (exit $ac_status); } && { |
| 23500 | test -z "$ac_c_werror_flag" || |
| 23501 | test ! -s conftest.err |
| 23502 | } && test -s conftest.$ac_objext; then |
| 23503 | ac_cv_have_decl_isinf=yes |
| 23504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23505 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23507 | |
| 23508 | ac_cv_have_decl_isinf=no |
| 23509 | fi |
| 23510 | |
| 23511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23512 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23513 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 23514 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 23515 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23516 | |
| 23517 | cat >>confdefs.h <<_ACEOF |
| 23518 | #define HAVE_DECL_ISINF 1 |
| 23519 | _ACEOF |
| 23520 | |
| 23521 | |
| 23522 | else |
| 23523 | cat >>confdefs.h <<_ACEOF |
| 23524 | #define HAVE_DECL_ISINF 0 |
| 23525 | _ACEOF |
| 23526 | |
| 23527 | |
| 23528 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23529 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 23530 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23531 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23533 | else |
| 23534 | cat >conftest.$ac_ext <<_ACEOF |
| 23535 | /* confdefs.h. */ |
| 23536 | _ACEOF |
| 23537 | cat confdefs.h >>conftest.$ac_ext |
| 23538 | cat >>conftest.$ac_ext <<_ACEOF |
| 23539 | /* end confdefs.h. */ |
| 23540 | #include <math.h> |
| 23541 | |
| 23542 | int |
| 23543 | main () |
| 23544 | { |
| 23545 | #ifndef isnan |
| 23546 | (void) isnan; |
| 23547 | #endif |
| 23548 | |
| 23549 | ; |
| 23550 | return 0; |
| 23551 | } |
| 23552 | _ACEOF |
| 23553 | rm -f conftest.$ac_objext |
| 23554 | if { (ac_try="$ac_compile" |
| 23555 | case "(($ac_try" in |
| 23556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23557 | *) ac_try_echo=$ac_try;; |
| 23558 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23560 | (eval "$ac_compile") 2>conftest.er1 |
| 23561 | ac_status=$? |
| 23562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23563 | rm -f conftest.er1 |
| 23564 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23566 | (exit $ac_status); } && { |
| 23567 | test -z "$ac_c_werror_flag" || |
| 23568 | test ! -s conftest.err |
| 23569 | } && test -s conftest.$ac_objext; then |
| 23570 | ac_cv_have_decl_isnan=yes |
| 23571 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23572 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23574 | |
| 23575 | ac_cv_have_decl_isnan=no |
| 23576 | fi |
| 23577 | |
| 23578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23579 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23580 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 23581 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 23582 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23583 | |
| 23584 | cat >>confdefs.h <<_ACEOF |
| 23585 | #define HAVE_DECL_ISNAN 1 |
| 23586 | _ACEOF |
| 23587 | |
| 23588 | |
| 23589 | else |
| 23590 | cat >>confdefs.h <<_ACEOF |
| 23591 | #define HAVE_DECL_ISNAN 0 |
| 23592 | _ACEOF |
| 23593 | |
| 23594 | |
| 23595 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23596 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 23597 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23598 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23600 | else |
| 23601 | cat >conftest.$ac_ext <<_ACEOF |
| 23602 | /* confdefs.h. */ |
| 23603 | _ACEOF |
| 23604 | cat confdefs.h >>conftest.$ac_ext |
| 23605 | cat >>conftest.$ac_ext <<_ACEOF |
| 23606 | /* end confdefs.h. */ |
| 23607 | #include <math.h> |
| 23608 | |
| 23609 | int |
| 23610 | main () |
| 23611 | { |
| 23612 | #ifndef isfinite |
| 23613 | (void) isfinite; |
| 23614 | #endif |
| 23615 | |
| 23616 | ; |
| 23617 | return 0; |
| 23618 | } |
| 23619 | _ACEOF |
| 23620 | rm -f conftest.$ac_objext |
| 23621 | if { (ac_try="$ac_compile" |
| 23622 | case "(($ac_try" in |
| 23623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23624 | *) ac_try_echo=$ac_try;; |
| 23625 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23627 | (eval "$ac_compile") 2>conftest.er1 |
| 23628 | ac_status=$? |
| 23629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23630 | rm -f conftest.er1 |
| 23631 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23633 | (exit $ac_status); } && { |
| 23634 | test -z "$ac_c_werror_flag" || |
| 23635 | test ! -s conftest.err |
| 23636 | } && test -s conftest.$ac_objext; then |
| 23637 | ac_cv_have_decl_isfinite=yes |
| 23638 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23639 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23641 | |
| 23642 | ac_cv_have_decl_isfinite=no |
| 23643 | fi |
| 23644 | |
| 23645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23646 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23647 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 23648 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 23649 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23650 | |
| 23651 | cat >>confdefs.h <<_ACEOF |
| 23652 | #define HAVE_DECL_ISFINITE 1 |
| 23653 | _ACEOF |
| 23654 | |
| 23655 | |
| 23656 | else |
| 23657 | cat >>confdefs.h <<_ACEOF |
| 23658 | #define HAVE_DECL_ISFINITE 0 |
| 23659 | _ACEOF |
| 23660 | |
| 23661 | |
| 23662 | fi |
| 23663 | |
| 23664 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23665 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 23666 | LIBS=$LIBS_SAVE |
| 23667 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23668 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23669 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 23670 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23671 | # Check whether --enable-big-digits was given. |
| 23672 | if test "${enable_big_digits+set}" = set; then |
| 23673 | enableval=$enable_big_digits; case $enable_big_digits in |
| 23674 | yes) |
| 23675 | enable_big_digits=30 ;; |
| 23676 | no) |
| 23677 | enable_big_digits=15 ;; |
| 23678 | 15|30) |
| 23679 | ;; |
| 23680 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23681 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 23682 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23683 | { (exit 1); exit 1; }; } ;; |
| 23684 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23685 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 23686 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23687 | |
| 23688 | cat >>confdefs.h <<_ACEOF |
| 23689 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 23690 | _ACEOF |
| 23691 | |
| 23692 | |
| 23693 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23694 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 23695 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23696 | fi |
| 23697 | |
| 23698 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23699 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23700 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23701 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23702 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23703 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23705 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23706 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23707 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23709 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23710 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 23711 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23713 | /* confdefs.h. */ |
| 23714 | _ACEOF |
| 23715 | cat confdefs.h >>conftest.$ac_ext |
| 23716 | cat >>conftest.$ac_ext <<_ACEOF |
| 23717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23718 | $ac_includes_default |
| 23719 | #include <wchar.h> |
| 23720 | _ACEOF |
| 23721 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23722 | if { (ac_try="$ac_compile" |
| 23723 | case "(($ac_try" in |
| 23724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23725 | *) ac_try_echo=$ac_try;; |
| 23726 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23728 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23731 | rm -f conftest.er1 |
| 23732 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23734 | (exit $ac_status); } && { |
| 23735 | test -z "$ac_c_werror_flag" || |
| 23736 | test ! -s conftest.err |
| 23737 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23738 | ac_header_compiler=yes |
| 23739 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23742 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23743 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23744 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23745 | |
| 23746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23747 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23748 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23749 | |
| 23750 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23751 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 23752 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23753 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23754 | /* confdefs.h. */ |
| 23755 | _ACEOF |
| 23756 | cat confdefs.h >>conftest.$ac_ext |
| 23757 | cat >>conftest.$ac_ext <<_ACEOF |
| 23758 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23759 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23760 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23761 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23762 | case "(($ac_try" in |
| 23763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23764 | *) ac_try_echo=$ac_try;; |
| 23765 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23768 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23769 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23770 | rm -f conftest.er1 |
| 23771 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23773 | (exit $ac_status); } >/dev/null && { |
| 23774 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23775 | test ! -s conftest.err |
| 23776 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23777 | ac_header_preproc=yes |
| 23778 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23782 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23783 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23785 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23786 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23787 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23788 | |
| 23789 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23791 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23792 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23793 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23794 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 23795 | 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] | 23796 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23797 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23798 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23799 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 23800 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 23801 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 23802 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 23803 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 23804 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 23805 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 23806 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23807 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 23808 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 23809 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 23810 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23811 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 23812 | ## -------------------------------------- ## |
| 23813 | ## Report this to http://bugs.python.org/ ## |
| 23814 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23815 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23816 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23817 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23818 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23819 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23820 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23821 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23823 | else |
| 23824 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23825 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23826 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23827 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23828 | |
| 23829 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23830 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23831 | |
| 23832 | |
| 23833 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23834 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23835 | _ACEOF |
| 23836 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23837 | wchar_h="yes" |
| 23838 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23840 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23841 | |
| 23842 | fi |
| 23843 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23845 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23846 | # determine wchar_t size |
| 23847 | if test "$wchar_h" = yes |
| 23848 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23849 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 23850 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 23851 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 23852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23853 | else |
| 23854 | cat >conftest.$ac_ext <<_ACEOF |
| 23855 | /* confdefs.h. */ |
| 23856 | _ACEOF |
| 23857 | cat confdefs.h >>conftest.$ac_ext |
| 23858 | cat >>conftest.$ac_ext <<_ACEOF |
| 23859 | /* end confdefs.h. */ |
| 23860 | #include <wchar.h> |
| 23861 | |
| 23862 | typedef wchar_t ac__type_new_; |
| 23863 | int |
| 23864 | main () |
| 23865 | { |
| 23866 | if ((ac__type_new_ *) 0) |
| 23867 | return 0; |
| 23868 | if (sizeof (ac__type_new_)) |
| 23869 | return 0; |
| 23870 | ; |
| 23871 | return 0; |
| 23872 | } |
| 23873 | _ACEOF |
| 23874 | rm -f conftest.$ac_objext |
| 23875 | if { (ac_try="$ac_compile" |
| 23876 | case "(($ac_try" in |
| 23877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23878 | *) ac_try_echo=$ac_try;; |
| 23879 | esac |
| 23880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23881 | (eval "$ac_compile") 2>conftest.er1 |
| 23882 | ac_status=$? |
| 23883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23884 | rm -f conftest.er1 |
| 23885 | cat conftest.err >&5 |
| 23886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23887 | (exit $ac_status); } && { |
| 23888 | test -z "$ac_c_werror_flag" || |
| 23889 | test ! -s conftest.err |
| 23890 | } && test -s conftest.$ac_objext; then |
| 23891 | ac_cv_type_wchar_t=yes |
| 23892 | else |
| 23893 | echo "$as_me: failed program was:" >&5 |
| 23894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23895 | |
| 23896 | ac_cv_type_wchar_t=no |
| 23897 | fi |
| 23898 | |
| 23899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23900 | fi |
| 23901 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 23902 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 23903 | |
| 23904 | # The cast to long int works around a bug in the HP C Compiler |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23905 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23906 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23907 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23908 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 23909 | 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] | 23910 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23913 | if test "$cross_compiling" = yes; then |
| 23914 | # Depending upon the size, compute the lo and hi bounds. |
| 23915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23916 | /* confdefs.h. */ |
| 23917 | _ACEOF |
| 23918 | cat confdefs.h >>conftest.$ac_ext |
| 23919 | cat >>conftest.$ac_ext <<_ACEOF |
| 23920 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23921 | #include <wchar.h> |
| 23922 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23923 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23924 | int |
| 23925 | main () |
| 23926 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23927 | 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] | 23928 | test_array [0] = 0 |
| 23929 | |
| 23930 | ; |
| 23931 | return 0; |
| 23932 | } |
| 23933 | _ACEOF |
| 23934 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23935 | if { (ac_try="$ac_compile" |
| 23936 | case "(($ac_try" in |
| 23937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23938 | *) ac_try_echo=$ac_try;; |
| 23939 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23941 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23944 | rm -f conftest.er1 |
| 23945 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23947 | (exit $ac_status); } && { |
| 23948 | test -z "$ac_c_werror_flag" || |
| 23949 | test ! -s conftest.err |
| 23950 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23951 | ac_lo=0 ac_mid=0 |
| 23952 | while :; do |
| 23953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23954 | /* confdefs.h. */ |
| 23955 | _ACEOF |
| 23956 | cat confdefs.h >>conftest.$ac_ext |
| 23957 | cat >>conftest.$ac_ext <<_ACEOF |
| 23958 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23959 | #include <wchar.h> |
| 23960 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23961 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23962 | int |
| 23963 | main () |
| 23964 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23965 | 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] | 23966 | test_array [0] = 0 |
| 23967 | |
| 23968 | ; |
| 23969 | return 0; |
| 23970 | } |
| 23971 | _ACEOF |
| 23972 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23973 | if { (ac_try="$ac_compile" |
| 23974 | case "(($ac_try" in |
| 23975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23976 | *) ac_try_echo=$ac_try;; |
| 23977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23979 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23982 | rm -f conftest.er1 |
| 23983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23985 | (exit $ac_status); } && { |
| 23986 | test -z "$ac_c_werror_flag" || |
| 23987 | test ! -s conftest.err |
| 23988 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23989 | ac_hi=$ac_mid; break |
| 23990 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23994 | ac_lo=`expr $ac_mid + 1` |
| 23995 | if test $ac_lo -le $ac_mid; then |
| 23996 | ac_lo= ac_hi= |
| 23997 | break |
| 23998 | fi |
| 23999 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24001 | |
| 24002 | 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] | 24003 | done |
| 24004 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24005 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24007 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24009 | /* confdefs.h. */ |
| 24010 | _ACEOF |
| 24011 | cat confdefs.h >>conftest.$ac_ext |
| 24012 | cat >>conftest.$ac_ext <<_ACEOF |
| 24013 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24014 | #include <wchar.h> |
| 24015 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24016 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24017 | int |
| 24018 | main () |
| 24019 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24020 | 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] | 24021 | test_array [0] = 0 |
| 24022 | |
| 24023 | ; |
| 24024 | return 0; |
| 24025 | } |
| 24026 | _ACEOF |
| 24027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24028 | if { (ac_try="$ac_compile" |
| 24029 | case "(($ac_try" in |
| 24030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24031 | *) ac_try_echo=$ac_try;; |
| 24032 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24037 | rm -f conftest.er1 |
| 24038 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24040 | (exit $ac_status); } && { |
| 24041 | test -z "$ac_c_werror_flag" || |
| 24042 | test ! -s conftest.err |
| 24043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24044 | ac_hi=-1 ac_mid=-1 |
| 24045 | while :; do |
| 24046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24047 | /* confdefs.h. */ |
| 24048 | _ACEOF |
| 24049 | cat confdefs.h >>conftest.$ac_ext |
| 24050 | cat >>conftest.$ac_ext <<_ACEOF |
| 24051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24052 | #include <wchar.h> |
| 24053 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24054 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24055 | int |
| 24056 | main () |
| 24057 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24058 | 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] | 24059 | test_array [0] = 0 |
| 24060 | |
| 24061 | ; |
| 24062 | return 0; |
| 24063 | } |
| 24064 | _ACEOF |
| 24065 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24066 | if { (ac_try="$ac_compile" |
| 24067 | case "(($ac_try" in |
| 24068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24069 | *) ac_try_echo=$ac_try;; |
| 24070 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24072 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24075 | rm -f conftest.er1 |
| 24076 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24078 | (exit $ac_status); } && { |
| 24079 | test -z "$ac_c_werror_flag" || |
| 24080 | test ! -s conftest.err |
| 24081 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24082 | ac_lo=$ac_mid; break |
| 24083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24087 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24088 | if test $ac_mid -le $ac_hi; then |
| 24089 | ac_lo= ac_hi= |
| 24090 | break |
| 24091 | fi |
| 24092 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24094 | |
| 24095 | 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] | 24096 | done |
| 24097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24101 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24103 | |
| 24104 | 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] | 24105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24106 | |
| 24107 | 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] | 24108 | # Binary search between lo and hi bounds. |
| 24109 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24110 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24112 | /* confdefs.h. */ |
| 24113 | _ACEOF |
| 24114 | cat confdefs.h >>conftest.$ac_ext |
| 24115 | cat >>conftest.$ac_ext <<_ACEOF |
| 24116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24117 | #include <wchar.h> |
| 24118 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24119 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24120 | int |
| 24121 | main () |
| 24122 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24123 | 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] | 24124 | test_array [0] = 0 |
| 24125 | |
| 24126 | ; |
| 24127 | return 0; |
| 24128 | } |
| 24129 | _ACEOF |
| 24130 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24131 | if { (ac_try="$ac_compile" |
| 24132 | case "(($ac_try" in |
| 24133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24134 | *) ac_try_echo=$ac_try;; |
| 24135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24137 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24138 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24140 | rm -f conftest.er1 |
| 24141 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24143 | (exit $ac_status); } && { |
| 24144 | test -z "$ac_c_werror_flag" || |
| 24145 | test ! -s conftest.err |
| 24146 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24147 | ac_hi=$ac_mid |
| 24148 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24152 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24153 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24154 | |
| 24155 | 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] | 24156 | done |
| 24157 | case $ac_lo in |
| 24158 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24159 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24160 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24161 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24162 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24163 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24164 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24165 | else |
| 24166 | ac_cv_sizeof_wchar_t=0 |
| 24167 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24168 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24171 | /* confdefs.h. */ |
| 24172 | _ACEOF |
| 24173 | cat confdefs.h >>conftest.$ac_ext |
| 24174 | cat >>conftest.$ac_ext <<_ACEOF |
| 24175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24176 | #include <wchar.h> |
| 24177 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24178 | typedef wchar_t ac__type_sizeof_; |
| 24179 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 24180 | 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] | 24181 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24182 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24183 | int |
| 24184 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24185 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24186 | |
| 24187 | FILE *f = fopen ("conftest.val", "w"); |
| 24188 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24189 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24190 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24191 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24192 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24193 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24194 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24195 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24196 | } |
| 24197 | else |
| 24198 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24199 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24200 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24201 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24202 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24203 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24204 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24205 | |
| 24206 | ; |
| 24207 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24208 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24209 | _ACEOF |
| 24210 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24211 | if { (ac_try="$ac_link" |
| 24212 | case "(($ac_try" in |
| 24213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24214 | *) ac_try_echo=$ac_try;; |
| 24215 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24217 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24218 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24221 | { (case "(($ac_try" in |
| 24222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24223 | *) ac_try_echo=$ac_try;; |
| 24224 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24226 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24227 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24229 | (exit $ac_status); }; }; then |
| 24230 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24232 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24233 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24236 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24237 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24238 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24239 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24240 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24241 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24242 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24243 | else |
| 24244 | ac_cv_sizeof_wchar_t=0 |
| 24245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24246 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24247 | 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] | 24248 | fi |
| 24249 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24251 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 24252 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24253 | |
| 24254 | |
| 24255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24256 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24257 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24258 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24259 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24260 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24261 | fi |
| 24262 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24263 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 24264 | 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] | 24265 | have_ucs4_tcl=no |
| 24266 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24267 | /* confdefs.h. */ |
| 24268 | _ACEOF |
| 24269 | cat confdefs.h >>conftest.$ac_ext |
| 24270 | cat >>conftest.$ac_ext <<_ACEOF |
| 24271 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24272 | |
| 24273 | #include <tcl.h> |
| 24274 | #if TCL_UTF_MAX != 6 |
| 24275 | # error "NOT UCS4_TCL" |
| 24276 | #endif |
| 24277 | int |
| 24278 | main () |
| 24279 | { |
| 24280 | |
| 24281 | ; |
| 24282 | return 0; |
| 24283 | } |
| 24284 | _ACEOF |
| 24285 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24286 | if { (ac_try="$ac_compile" |
| 24287 | case "(($ac_try" in |
| 24288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24289 | *) ac_try_echo=$ac_try;; |
| 24290 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24292 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24295 | rm -f conftest.er1 |
| 24296 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24298 | (exit $ac_status); } && { |
| 24299 | test -z "$ac_c_werror_flag" || |
| 24300 | test ! -s conftest.err |
| 24301 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24302 | |
| 24303 | |
| 24304 | cat >>confdefs.h <<\_ACEOF |
| 24305 | #define HAVE_UCS4_TCL 1 |
| 24306 | _ACEOF |
| 24307 | |
| 24308 | have_ucs4_tcl=yes |
| 24309 | |
| 24310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24314 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24316 | |
| 24317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24318 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 24319 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24320 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24321 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24322 | if test "$wchar_h" = yes |
| 24323 | then |
| 24324 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24325 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 24326 | 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] | 24327 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24329 | else |
| 24330 | |
| 24331 | if test "$cross_compiling" = yes; then |
| 24332 | ac_cv_wchar_t_signed=yes |
| 24333 | else |
| 24334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24335 | /* confdefs.h. */ |
| 24336 | _ACEOF |
| 24337 | cat confdefs.h >>conftest.$ac_ext |
| 24338 | cat >>conftest.$ac_ext <<_ACEOF |
| 24339 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24340 | |
| 24341 | #include <wchar.h> |
| 24342 | int main() |
| 24343 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 24344 | /* Success: exit code 0 */ |
| 24345 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24346 | } |
| 24347 | |
| 24348 | _ACEOF |
| 24349 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24350 | if { (ac_try="$ac_link" |
| 24351 | case "(($ac_try" in |
| 24352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24353 | *) ac_try_echo=$ac_try;; |
| 24354 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24356 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24357 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24359 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24360 | { (case "(($ac_try" in |
| 24361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24362 | *) ac_try_echo=$ac_try;; |
| 24363 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24365 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24366 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24368 | (exit $ac_status); }; }; then |
| 24369 | ac_cv_wchar_t_signed=yes |
| 24370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24371 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24372 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24374 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24375 | ( exit $ac_status ) |
| 24376 | ac_cv_wchar_t_signed=no |
| 24377 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24378 | 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] | 24379 | fi |
| 24380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24381 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24382 | fi |
| 24383 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24384 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 24385 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24386 | fi |
| 24387 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24388 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 24389 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24390 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24391 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24392 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24393 | else |
| 24394 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24395 | fi |
| 24396 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24397 | |
| 24398 | if test $enable_unicode = yes |
| 24399 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 24400 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24401 | case "$have_ucs4_tcl" in |
| 24402 | yes) enable_unicode="ucs4" |
| 24403 | ;; |
| 24404 | *) enable_unicode="ucs2" |
| 24405 | ;; |
| 24406 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24407 | fi |
| 24408 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24409 | |
| 24410 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24411 | case "$enable_unicode" in |
| 24412 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24413 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24414 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24415 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24416 | |
| 24417 | ;; |
| 24418 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24419 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24420 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24421 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24422 | |
| 24423 | ;; |
| 24424 | esac |
| 24425 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24427 | |
| 24428 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24429 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24430 | if test "$enable_unicode" = "no" |
| 24431 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24432 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24433 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 24434 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24435 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24436 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24437 | |
| 24438 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24439 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24440 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24441 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24442 | |
| 24443 | # wchar_t is only usable if it maps to an unsigned type |
| 24444 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 24445 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24446 | then |
| 24447 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24449 | cat >>confdefs.h <<\_ACEOF |
| 24450 | #define HAVE_USABLE_WCHAR_T 1 |
| 24451 | _ACEOF |
| 24452 | |
| 24453 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24454 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24455 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24456 | |
| 24457 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 24458 | then |
| 24459 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24460 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24461 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24462 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24463 | |
| 24464 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 24465 | then |
| 24466 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24467 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24468 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24469 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24470 | |
| 24471 | else |
| 24472 | PY_UNICODE_TYPE="no type found" |
| 24473 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24474 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 24475 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24476 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24477 | |
| 24478 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24479 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 24480 | 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] | 24481 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24483 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24484 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 24485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24486 | /* confdefs.h. */ |
| 24487 | _ACEOF |
| 24488 | cat confdefs.h >>conftest.$ac_ext |
| 24489 | cat >>conftest.$ac_ext <<_ACEOF |
| 24490 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24491 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24492 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24494 | int |
| 24495 | main () |
| 24496 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24497 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 24498 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 24499 | bogus endian macros |
| 24500 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24501 | |
| 24502 | ; |
| 24503 | return 0; |
| 24504 | } |
| 24505 | _ACEOF |
| 24506 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24507 | if { (ac_try="$ac_compile" |
| 24508 | case "(($ac_try" in |
| 24509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24510 | *) ac_try_echo=$ac_try;; |
| 24511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24516 | rm -f conftest.er1 |
| 24517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24519 | (exit $ac_status); } && { |
| 24520 | test -z "$ac_c_werror_flag" || |
| 24521 | test ! -s conftest.err |
| 24522 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24523 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24525 | /* confdefs.h. */ |
| 24526 | _ACEOF |
| 24527 | cat confdefs.h >>conftest.$ac_ext |
| 24528 | cat >>conftest.$ac_ext <<_ACEOF |
| 24529 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24530 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24531 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24533 | int |
| 24534 | main () |
| 24535 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24536 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24537 | not big endian |
| 24538 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24539 | |
| 24540 | ; |
| 24541 | return 0; |
| 24542 | } |
| 24543 | _ACEOF |
| 24544 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24545 | if { (ac_try="$ac_compile" |
| 24546 | case "(($ac_try" in |
| 24547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24548 | *) ac_try_echo=$ac_try;; |
| 24549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24551 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24554 | rm -f conftest.er1 |
| 24555 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24557 | (exit $ac_status); } && { |
| 24558 | test -z "$ac_c_werror_flag" || |
| 24559 | test ! -s conftest.err |
| 24560 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24561 | ac_cv_c_bigendian=yes |
| 24562 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24563 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24566 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24567 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24568 | |
| 24569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24570 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24571 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24573 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24574 | # It does not; compile a test program. |
| 24575 | if test "$cross_compiling" = yes; then |
| 24576 | # try to guess the endianness by grepping values into an object file |
| 24577 | ac_cv_c_bigendian=unknown |
| 24578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24579 | /* confdefs.h. */ |
| 24580 | _ACEOF |
| 24581 | cat confdefs.h >>conftest.$ac_ext |
| 24582 | cat >>conftest.$ac_ext <<_ACEOF |
| 24583 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24584 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 24585 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 24586 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 24587 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 24588 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 24589 | 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] | 24590 | int |
| 24591 | main () |
| 24592 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24593 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24594 | ; |
| 24595 | return 0; |
| 24596 | } |
| 24597 | _ACEOF |
| 24598 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24599 | if { (ac_try="$ac_compile" |
| 24600 | case "(($ac_try" in |
| 24601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24602 | *) ac_try_echo=$ac_try;; |
| 24603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24605 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24608 | rm -f conftest.er1 |
| 24609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24611 | (exit $ac_status); } && { |
| 24612 | test -z "$ac_c_werror_flag" || |
| 24613 | test ! -s conftest.err |
| 24614 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24615 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24616 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24617 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24618 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 24619 | if test "$ac_cv_c_bigendian" = unknown; then |
| 24620 | ac_cv_c_bigendian=no |
| 24621 | else |
| 24622 | # finding both strings is unlikely to happen, but who knows? |
| 24623 | ac_cv_c_bigendian=unknown |
| 24624 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24625 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24626 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24631 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24632 | |
| 24633 | 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] | 24634 | else |
| 24635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24636 | /* confdefs.h. */ |
| 24637 | _ACEOF |
| 24638 | cat confdefs.h >>conftest.$ac_ext |
| 24639 | cat >>conftest.$ac_ext <<_ACEOF |
| 24640 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24641 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24642 | int |
| 24643 | main () |
| 24644 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24645 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24646 | /* Are we little or big endian? From Harbison&Steele. */ |
| 24647 | union |
| 24648 | { |
| 24649 | long int l; |
| 24650 | char c[sizeof (long int)]; |
| 24651 | } u; |
| 24652 | u.l = 1; |
| 24653 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24654 | |
| 24655 | ; |
| 24656 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24657 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24658 | _ACEOF |
| 24659 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24660 | if { (ac_try="$ac_link" |
| 24661 | case "(($ac_try" in |
| 24662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24663 | *) ac_try_echo=$ac_try;; |
| 24664 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24666 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24667 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24670 | { (case "(($ac_try" in |
| 24671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24672 | *) ac_try_echo=$ac_try;; |
| 24673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24675 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24676 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24678 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24679 | ac_cv_c_bigendian=no |
| 24680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24685 | ( exit $ac_status ) |
| 24686 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24688 | 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] | 24689 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24690 | |
| 24691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24692 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24693 | |
| 24694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24695 | fi |
| 24696 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 24697 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 24698 | case $ac_cv_c_bigendian in |
| 24699 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24700 | |
| 24701 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24702 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24703 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24704 | ;; |
| 24705 | no) |
| 24706 | ;; |
| 24707 | *) |
| 24708 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 24709 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 24710 | echo "$as_me: error: unknown endianness |
| 24711 | 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] | 24712 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24713 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24715 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24716 | # Check whether right shifting a negative integer extends the sign bit |
| 24717 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24718 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 24719 | 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] | 24720 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24723 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24724 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24725 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24728 | /* confdefs.h. */ |
| 24729 | _ACEOF |
| 24730 | cat confdefs.h >>conftest.$ac_ext |
| 24731 | cat >>conftest.$ac_ext <<_ACEOF |
| 24732 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24733 | |
| 24734 | int main() |
| 24735 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24736 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24737 | } |
| 24738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24739 | _ACEOF |
| 24740 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24741 | if { (ac_try="$ac_link" |
| 24742 | case "(($ac_try" in |
| 24743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24744 | *) ac_try_echo=$ac_try;; |
| 24745 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24747 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24748 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24751 | { (case "(($ac_try" in |
| 24752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24753 | *) ac_try_echo=$ac_try;; |
| 24754 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24756 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24757 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24759 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24760 | ac_cv_rshift_extends_sign=yes |
| 24761 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24762 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24766 | ( exit $ac_status ) |
| 24767 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24768 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24769 | 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] | 24770 | fi |
| 24771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24772 | |
| 24773 | fi |
| 24774 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24775 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 24776 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24777 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24778 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24779 | |
| 24780 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24781 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24782 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24783 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24784 | fi |
| 24785 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24786 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24787 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 24788 | 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] | 24789 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24792 | |
| 24793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24794 | /* confdefs.h. */ |
| 24795 | _ACEOF |
| 24796 | cat confdefs.h >>conftest.$ac_ext |
| 24797 | cat >>conftest.$ac_ext <<_ACEOF |
| 24798 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24799 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24800 | int |
| 24801 | main () |
| 24802 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24803 | |
| 24804 | FILE *f = fopen("/dev/null", "r"); |
| 24805 | flockfile(f); |
| 24806 | getc_unlocked(f); |
| 24807 | funlockfile(f); |
| 24808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24809 | ; |
| 24810 | return 0; |
| 24811 | } |
| 24812 | _ACEOF |
| 24813 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24814 | if { (ac_try="$ac_link" |
| 24815 | case "(($ac_try" in |
| 24816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24817 | *) ac_try_echo=$ac_try;; |
| 24818 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24820 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24821 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24823 | rm -f conftest.er1 |
| 24824 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24826 | (exit $ac_status); } && { |
| 24827 | test -z "$ac_c_werror_flag" || |
| 24828 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24829 | } && test -s conftest$ac_exeext && |
| 24830 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24831 | ac_cv_have_getc_unlocked=yes |
| 24832 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24836 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24838 | |
| 24839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24840 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24841 | fi |
| 24842 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24843 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 24844 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24845 | if test "$ac_cv_have_getc_unlocked" = yes |
| 24846 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24847 | |
| 24848 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24849 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24850 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24851 | |
| 24852 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24853 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24854 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24855 | # save the value of LIBS so we don't actually link Python with readline |
| 24856 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24857 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24858 | # On some systems we need to link readline to a termcap compatible |
| 24859 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 24860 | # with setup.py. |
| 24861 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24862 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 24863 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24864 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 24865 | if test -z "$py_libtermcap"; then |
| 24866 | READLINE_LIBS="-lreadline" |
| 24867 | else |
| 24868 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 24869 | fi |
| 24870 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 24871 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24872 | /* confdefs.h. */ |
| 24873 | _ACEOF |
| 24874 | cat confdefs.h >>conftest.$ac_ext |
| 24875 | cat >>conftest.$ac_ext <<_ACEOF |
| 24876 | /* end confdefs.h. */ |
| 24877 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24878 | /* Override any GCC internal prototype to avoid an error. |
| 24879 | Use char because int might match the return type of a GCC |
| 24880 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24881 | #ifdef __cplusplus |
| 24882 | extern "C" |
| 24883 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24884 | char readline (); |
| 24885 | int |
| 24886 | main () |
| 24887 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24888 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24889 | ; |
| 24890 | return 0; |
| 24891 | } |
| 24892 | _ACEOF |
| 24893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24894 | if { (ac_try="$ac_link" |
| 24895 | case "(($ac_try" in |
| 24896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24897 | *) ac_try_echo=$ac_try;; |
| 24898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24900 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24901 | ac_status=$? |
| 24902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24903 | rm -f conftest.er1 |
| 24904 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24906 | (exit $ac_status); } && { |
| 24907 | test -z "$ac_c_werror_flag" || |
| 24908 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24909 | } && test -s conftest$ac_exeext && |
| 24910 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24911 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24912 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24913 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24915 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24916 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24918 | |
| 24919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24920 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24921 | if test $py_cv_lib_readline = yes; then |
| 24922 | break |
| 24923 | fi |
| 24924 | done |
| 24925 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 24926 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 24927 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24928 | { echo "$as_me:$LINENO: result: none" >&5 |
| 24929 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24931 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 24932 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 24933 | |
| 24934 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24935 | #define HAVE_LIBREADLINE 1 |
| 24936 | _ACEOF |
| 24937 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24938 | fi |
| 24939 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24940 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24941 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 24942 | 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] | 24943 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24945 | else |
| 24946 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 24947 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24948 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24949 | /* confdefs.h. */ |
| 24950 | _ACEOF |
| 24951 | cat confdefs.h >>conftest.$ac_ext |
| 24952 | cat >>conftest.$ac_ext <<_ACEOF |
| 24953 | /* end confdefs.h. */ |
| 24954 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24955 | /* Override any GCC internal prototype to avoid an error. |
| 24956 | Use char because int might match the return type of a GCC |
| 24957 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24958 | #ifdef __cplusplus |
| 24959 | extern "C" |
| 24960 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24961 | char rl_callback_handler_install (); |
| 24962 | int |
| 24963 | main () |
| 24964 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24965 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24966 | ; |
| 24967 | return 0; |
| 24968 | } |
| 24969 | _ACEOF |
| 24970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24971 | if { (ac_try="$ac_link" |
| 24972 | case "(($ac_try" in |
| 24973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24974 | *) ac_try_echo=$ac_try;; |
| 24975 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24977 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24978 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24980 | rm -f conftest.er1 |
| 24981 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24983 | (exit $ac_status); } && { |
| 24984 | test -z "$ac_c_werror_flag" || |
| 24985 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24986 | } && test -s conftest$ac_exeext && |
| 24987 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24988 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 24989 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24990 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24992 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24993 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24994 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24995 | |
| 24996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24997 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24998 | LIBS=$ac_check_lib_save_LIBS |
| 24999 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25000 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25001 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25002 | 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] | 25003 | |
| 25004 | cat >>confdefs.h <<\_ACEOF |
| 25005 | #define HAVE_RL_CALLBACK 1 |
| 25006 | _ACEOF |
| 25007 | |
| 25008 | fi |
| 25009 | |
| 25010 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25011 | # check for readline 2.2 |
| 25012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25013 | /* confdefs.h. */ |
| 25014 | _ACEOF |
| 25015 | cat confdefs.h >>conftest.$ac_ext |
| 25016 | cat >>conftest.$ac_ext <<_ACEOF |
| 25017 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25018 | #include <readline/readline.h> |
| 25019 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25020 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25021 | case "(($ac_try" in |
| 25022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25023 | *) ac_try_echo=$ac_try;; |
| 25024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25026 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25027 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25028 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25029 | rm -f conftest.er1 |
| 25030 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25032 | (exit $ac_status); } >/dev/null && { |
| 25033 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25034 | test ! -s conftest.err |
| 25035 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25036 | have_readline=yes |
| 25037 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25040 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25041 | have_readline=no |
| 25042 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25043 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25044 | rm -f conftest.err conftest.$ac_ext |
| 25045 | if test $have_readline = yes |
| 25046 | then |
| 25047 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25048 | /* confdefs.h. */ |
| 25049 | _ACEOF |
| 25050 | cat confdefs.h >>conftest.$ac_ext |
| 25051 | cat >>conftest.$ac_ext <<_ACEOF |
| 25052 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25053 | #include <readline/readline.h> |
| 25054 | |
| 25055 | _ACEOF |
| 25056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25057 | $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] | 25058 | |
| 25059 | cat >>confdefs.h <<\_ACEOF |
| 25060 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 25061 | _ACEOF |
| 25062 | |
| 25063 | fi |
| 25064 | rm -f conftest* |
| 25065 | |
| 25066 | fi |
| 25067 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25068 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25069 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 25070 | 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] | 25071 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25074 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25075 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25077 | /* confdefs.h. */ |
| 25078 | _ACEOF |
| 25079 | cat confdefs.h >>conftest.$ac_ext |
| 25080 | cat >>conftest.$ac_ext <<_ACEOF |
| 25081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25083 | /* Override any GCC internal prototype to avoid an error. |
| 25084 | Use char because int might match the return type of a GCC |
| 25085 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25086 | #ifdef __cplusplus |
| 25087 | extern "C" |
| 25088 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25089 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25090 | int |
| 25091 | main () |
| 25092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25093 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25094 | ; |
| 25095 | return 0; |
| 25096 | } |
| 25097 | _ACEOF |
| 25098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25099 | if { (ac_try="$ac_link" |
| 25100 | case "(($ac_try" in |
| 25101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25102 | *) ac_try_echo=$ac_try;; |
| 25103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25105 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25108 | rm -f conftest.er1 |
| 25109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25111 | (exit $ac_status); } && { |
| 25112 | test -z "$ac_c_werror_flag" || |
| 25113 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25114 | } && test -s conftest$ac_exeext && |
| 25115 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25116 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25121 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25123 | |
| 25124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25126 | LIBS=$ac_check_lib_save_LIBS |
| 25127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 25129 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 25130 | 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] | 25131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25132 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25133 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25134 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25135 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25136 | fi |
| 25137 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25138 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25139 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25140 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 25141 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25142 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25144 | else |
| 25145 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25146 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25147 | cat >conftest.$ac_ext <<_ACEOF |
| 25148 | /* confdefs.h. */ |
| 25149 | _ACEOF |
| 25150 | cat confdefs.h >>conftest.$ac_ext |
| 25151 | cat >>conftest.$ac_ext <<_ACEOF |
| 25152 | /* end confdefs.h. */ |
| 25153 | |
| 25154 | /* Override any GCC internal prototype to avoid an error. |
| 25155 | Use char because int might match the return type of a GCC |
| 25156 | builtin and then its argument prototype would still apply. */ |
| 25157 | #ifdef __cplusplus |
| 25158 | extern "C" |
| 25159 | #endif |
| 25160 | char rl_completion_display_matches_hook (); |
| 25161 | int |
| 25162 | main () |
| 25163 | { |
| 25164 | return rl_completion_display_matches_hook (); |
| 25165 | ; |
| 25166 | return 0; |
| 25167 | } |
| 25168 | _ACEOF |
| 25169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25170 | if { (ac_try="$ac_link" |
| 25171 | case "(($ac_try" in |
| 25172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25173 | *) ac_try_echo=$ac_try;; |
| 25174 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25176 | (eval "$ac_link") 2>conftest.er1 |
| 25177 | ac_status=$? |
| 25178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25179 | rm -f conftest.er1 |
| 25180 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25182 | (exit $ac_status); } && { |
| 25183 | test -z "$ac_c_werror_flag" || |
| 25184 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25185 | } && test -s conftest$ac_exeext && |
| 25186 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25187 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 25188 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25189 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25191 | |
| 25192 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 25193 | fi |
| 25194 | |
| 25195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25196 | conftest$ac_exeext conftest.$ac_ext |
| 25197 | LIBS=$ac_check_lib_save_LIBS |
| 25198 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25199 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 25200 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 25201 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25202 | |
| 25203 | cat >>confdefs.h <<\_ACEOF |
| 25204 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 25205 | _ACEOF |
| 25206 | |
| 25207 | fi |
| 25208 | |
| 25209 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25210 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25211 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 25212 | 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] | 25213 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25216 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25217 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25219 | /* confdefs.h. */ |
| 25220 | _ACEOF |
| 25221 | cat confdefs.h >>conftest.$ac_ext |
| 25222 | cat >>conftest.$ac_ext <<_ACEOF |
| 25223 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25225 | /* Override any GCC internal prototype to avoid an error. |
| 25226 | Use char because int might match the return type of a GCC |
| 25227 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25228 | #ifdef __cplusplus |
| 25229 | extern "C" |
| 25230 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25231 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25232 | int |
| 25233 | main () |
| 25234 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25235 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25236 | ; |
| 25237 | return 0; |
| 25238 | } |
| 25239 | _ACEOF |
| 25240 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25241 | if { (ac_try="$ac_link" |
| 25242 | case "(($ac_try" in |
| 25243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25244 | *) ac_try_echo=$ac_try;; |
| 25245 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25247 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25250 | rm -f conftest.er1 |
| 25251 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25253 | (exit $ac_status); } && { |
| 25254 | test -z "$ac_c_werror_flag" || |
| 25255 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25256 | } && test -s conftest$ac_exeext && |
| 25257 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25258 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25259 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25263 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25264 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25265 | |
| 25266 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25267 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25268 | LIBS=$ac_check_lib_save_LIBS |
| 25269 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25270 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 25271 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 25272 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25274 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25275 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25276 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25277 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25278 | fi |
| 25279 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25280 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25281 | # also in readline 4.2 |
| 25282 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25283 | /* confdefs.h. */ |
| 25284 | _ACEOF |
| 25285 | cat confdefs.h >>conftest.$ac_ext |
| 25286 | cat >>conftest.$ac_ext <<_ACEOF |
| 25287 | /* end confdefs.h. */ |
| 25288 | #include <readline/readline.h> |
| 25289 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25291 | case "(($ac_try" in |
| 25292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25293 | *) ac_try_echo=$ac_try;; |
| 25294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25296 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25297 | ac_status=$? |
| 25298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25299 | rm -f conftest.er1 |
| 25300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25302 | (exit $ac_status); } >/dev/null && { |
| 25303 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25304 | test ! -s conftest.err |
| 25305 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25306 | have_readline=yes |
| 25307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25308 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25310 | |
| 25311 | have_readline=no |
| 25312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25313 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25314 | rm -f conftest.err conftest.$ac_ext |
| 25315 | if test $have_readline = yes |
| 25316 | then |
| 25317 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25318 | /* confdefs.h. */ |
| 25319 | _ACEOF |
| 25320 | cat confdefs.h >>conftest.$ac_ext |
| 25321 | cat >>conftest.$ac_ext <<_ACEOF |
| 25322 | /* end confdefs.h. */ |
| 25323 | #include <readline/readline.h> |
| 25324 | |
| 25325 | _ACEOF |
| 25326 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25327 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 25328 | |
| 25329 | cat >>confdefs.h <<\_ACEOF |
| 25330 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 25331 | _ACEOF |
| 25332 | |
| 25333 | fi |
| 25334 | rm -f conftest* |
| 25335 | |
| 25336 | fi |
| 25337 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25338 | # End of readline checks: restore LIBS |
| 25339 | LIBS=$LIBS_no_readline |
| 25340 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25341 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 25342 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25343 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25346 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25347 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25348 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25351 | /* confdefs.h. */ |
| 25352 | _ACEOF |
| 25353 | cat confdefs.h >>conftest.$ac_ext |
| 25354 | cat >>conftest.$ac_ext <<_ACEOF |
| 25355 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25356 | |
| 25357 | int main() |
| 25358 | { |
| 25359 | int val1 = nice(1); |
| 25360 | if (val1 != -1 && val1 == nice(2)) |
| 25361 | exit(0); |
| 25362 | exit(1); |
| 25363 | } |
| 25364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25365 | _ACEOF |
| 25366 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25367 | if { (ac_try="$ac_link" |
| 25368 | case "(($ac_try" in |
| 25369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25370 | *) ac_try_echo=$ac_try;; |
| 25371 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25373 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25374 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25377 | { (case "(($ac_try" in |
| 25378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25379 | *) ac_try_echo=$ac_try;; |
| 25380 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25382 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25383 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25385 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25386 | ac_cv_broken_nice=yes |
| 25387 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25388 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25392 | ( exit $ac_status ) |
| 25393 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25394 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25395 | 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] | 25396 | fi |
| 25397 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25398 | |
| 25399 | fi |
| 25400 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25401 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 25402 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25403 | if test "$ac_cv_broken_nice" = yes |
| 25404 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25405 | |
| 25406 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25407 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25408 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25409 | |
| 25410 | fi |
| 25411 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25412 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 25413 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25414 | if test "${ac_cv_broken_poll+set}" = set; then |
| 25415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25416 | else |
| 25417 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25418 | ac_cv_broken_poll=no |
| 25419 | else |
| 25420 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25421 | /* confdefs.h. */ |
| 25422 | _ACEOF |
| 25423 | cat confdefs.h >>conftest.$ac_ext |
| 25424 | cat >>conftest.$ac_ext <<_ACEOF |
| 25425 | /* end confdefs.h. */ |
| 25426 | |
| 25427 | #include <poll.h> |
| 25428 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25429 | int main() |
| 25430 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25431 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25432 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25433 | |
| 25434 | close (42); |
| 25435 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25436 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25437 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25438 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25439 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25440 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25441 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25442 | return 1; |
| 25443 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25444 | |
| 25445 | _ACEOF |
| 25446 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25447 | if { (ac_try="$ac_link" |
| 25448 | case "(($ac_try" in |
| 25449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25450 | *) ac_try_echo=$ac_try;; |
| 25451 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25453 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25454 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25457 | { (case "(($ac_try" in |
| 25458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25459 | *) ac_try_echo=$ac_try;; |
| 25460 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25462 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25463 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25465 | (exit $ac_status); }; }; then |
| 25466 | ac_cv_broken_poll=yes |
| 25467 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25468 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25469 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25471 | |
| 25472 | ( exit $ac_status ) |
| 25473 | ac_cv_broken_poll=no |
| 25474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25475 | 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] | 25476 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25477 | |
| 25478 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25479 | fi |
| 25480 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25481 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 25482 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25483 | if test "$ac_cv_broken_poll" = yes |
| 25484 | then |
| 25485 | |
| 25486 | cat >>confdefs.h <<\_ACEOF |
| 25487 | #define HAVE_BROKEN_POLL 1 |
| 25488 | _ACEOF |
| 25489 | |
| 25490 | fi |
| 25491 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25492 | # 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] | 25493 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 25494 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25495 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 25496 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25497 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25499 | else |
| 25500 | cat >conftest.$ac_ext <<_ACEOF |
| 25501 | /* confdefs.h. */ |
| 25502 | _ACEOF |
| 25503 | cat confdefs.h >>conftest.$ac_ext |
| 25504 | cat >>conftest.$ac_ext <<_ACEOF |
| 25505 | /* end confdefs.h. */ |
| 25506 | #include <sys/types.h> |
| 25507 | #include <$ac_cv_struct_tm> |
| 25508 | |
| 25509 | |
| 25510 | int |
| 25511 | main () |
| 25512 | { |
| 25513 | static struct tm ac_aggr; |
| 25514 | if (ac_aggr.tm_zone) |
| 25515 | return 0; |
| 25516 | ; |
| 25517 | return 0; |
| 25518 | } |
| 25519 | _ACEOF |
| 25520 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25521 | if { (ac_try="$ac_compile" |
| 25522 | case "(($ac_try" in |
| 25523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25524 | *) ac_try_echo=$ac_try;; |
| 25525 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25527 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25528 | ac_status=$? |
| 25529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25530 | rm -f conftest.er1 |
| 25531 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25533 | (exit $ac_status); } && { |
| 25534 | test -z "$ac_c_werror_flag" || |
| 25535 | test ! -s conftest.err |
| 25536 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25537 | ac_cv_member_struct_tm_tm_zone=yes |
| 25538 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25539 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25541 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25542 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25543 | /* confdefs.h. */ |
| 25544 | _ACEOF |
| 25545 | cat confdefs.h >>conftest.$ac_ext |
| 25546 | cat >>conftest.$ac_ext <<_ACEOF |
| 25547 | /* end confdefs.h. */ |
| 25548 | #include <sys/types.h> |
| 25549 | #include <$ac_cv_struct_tm> |
| 25550 | |
| 25551 | |
| 25552 | int |
| 25553 | main () |
| 25554 | { |
| 25555 | static struct tm ac_aggr; |
| 25556 | if (sizeof ac_aggr.tm_zone) |
| 25557 | return 0; |
| 25558 | ; |
| 25559 | return 0; |
| 25560 | } |
| 25561 | _ACEOF |
| 25562 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25563 | if { (ac_try="$ac_compile" |
| 25564 | case "(($ac_try" in |
| 25565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25566 | *) ac_try_echo=$ac_try;; |
| 25567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25569 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25570 | ac_status=$? |
| 25571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25572 | rm -f conftest.er1 |
| 25573 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25575 | (exit $ac_status); } && { |
| 25576 | test -z "$ac_c_werror_flag" || |
| 25577 | test ! -s conftest.err |
| 25578 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25579 | ac_cv_member_struct_tm_tm_zone=yes |
| 25580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25581 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25583 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25584 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25586 | |
| 25587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25589 | |
| 25590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25591 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25592 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 25593 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 25594 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25595 | |
| 25596 | cat >>confdefs.h <<_ACEOF |
| 25597 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 25598 | _ACEOF |
| 25599 | |
| 25600 | |
| 25601 | fi |
| 25602 | |
| 25603 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 25604 | |
| 25605 | cat >>confdefs.h <<\_ACEOF |
| 25606 | #define HAVE_TM_ZONE 1 |
| 25607 | _ACEOF |
| 25608 | |
| 25609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25610 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 25611 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25612 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25614 | else |
| 25615 | cat >conftest.$ac_ext <<_ACEOF |
| 25616 | /* confdefs.h. */ |
| 25617 | _ACEOF |
| 25618 | cat confdefs.h >>conftest.$ac_ext |
| 25619 | cat >>conftest.$ac_ext <<_ACEOF |
| 25620 | /* end confdefs.h. */ |
| 25621 | #include <time.h> |
| 25622 | |
| 25623 | int |
| 25624 | main () |
| 25625 | { |
| 25626 | #ifndef tzname |
| 25627 | (void) tzname; |
| 25628 | #endif |
| 25629 | |
| 25630 | ; |
| 25631 | return 0; |
| 25632 | } |
| 25633 | _ACEOF |
| 25634 | rm -f conftest.$ac_objext |
| 25635 | if { (ac_try="$ac_compile" |
| 25636 | case "(($ac_try" in |
| 25637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25638 | *) ac_try_echo=$ac_try;; |
| 25639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25641 | (eval "$ac_compile") 2>conftest.er1 |
| 25642 | ac_status=$? |
| 25643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25644 | rm -f conftest.er1 |
| 25645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25647 | (exit $ac_status); } && { |
| 25648 | test -z "$ac_c_werror_flag" || |
| 25649 | test ! -s conftest.err |
| 25650 | } && test -s conftest.$ac_objext; then |
| 25651 | ac_cv_have_decl_tzname=yes |
| 25652 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25653 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25655 | |
| 25656 | ac_cv_have_decl_tzname=no |
| 25657 | fi |
| 25658 | |
| 25659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25660 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25661 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 25662 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 25663 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25664 | |
| 25665 | cat >>confdefs.h <<_ACEOF |
| 25666 | #define HAVE_DECL_TZNAME 1 |
| 25667 | _ACEOF |
| 25668 | |
| 25669 | |
| 25670 | else |
| 25671 | cat >>confdefs.h <<_ACEOF |
| 25672 | #define HAVE_DECL_TZNAME 0 |
| 25673 | _ACEOF |
| 25674 | |
| 25675 | |
| 25676 | fi |
| 25677 | |
| 25678 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25679 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 25680 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25681 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25683 | else |
| 25684 | cat >conftest.$ac_ext <<_ACEOF |
| 25685 | /* confdefs.h. */ |
| 25686 | _ACEOF |
| 25687 | cat confdefs.h >>conftest.$ac_ext |
| 25688 | cat >>conftest.$ac_ext <<_ACEOF |
| 25689 | /* end confdefs.h. */ |
| 25690 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25691 | #if !HAVE_DECL_TZNAME |
| 25692 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25693 | #endif |
| 25694 | |
| 25695 | int |
| 25696 | main () |
| 25697 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25698 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25699 | ; |
| 25700 | return 0; |
| 25701 | } |
| 25702 | _ACEOF |
| 25703 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25704 | if { (ac_try="$ac_link" |
| 25705 | case "(($ac_try" in |
| 25706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25707 | *) ac_try_echo=$ac_try;; |
| 25708 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25710 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25711 | ac_status=$? |
| 25712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25713 | rm -f conftest.er1 |
| 25714 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25716 | (exit $ac_status); } && { |
| 25717 | test -z "$ac_c_werror_flag" || |
| 25718 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25719 | } && test -s conftest$ac_exeext && |
| 25720 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25721 | ac_cv_var_tzname=yes |
| 25722 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25723 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25725 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25726 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25727 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25728 | |
| 25729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25730 | conftest$ac_exeext conftest.$ac_ext |
| 25731 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25732 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 25733 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25734 | if test $ac_cv_var_tzname = yes; then |
| 25735 | |
| 25736 | cat >>confdefs.h <<\_ACEOF |
| 25737 | #define HAVE_TZNAME 1 |
| 25738 | _ACEOF |
| 25739 | |
| 25740 | fi |
| 25741 | fi |
| 25742 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25743 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25744 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25745 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 25746 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25747 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25749 | else |
| 25750 | |
| 25751 | if test "$cross_compiling" = yes; then |
| 25752 | ac_cv_working_tzset=no |
| 25753 | else |
| 25754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25755 | /* confdefs.h. */ |
| 25756 | _ACEOF |
| 25757 | cat confdefs.h >>conftest.$ac_ext |
| 25758 | cat >>conftest.$ac_ext <<_ACEOF |
| 25759 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25760 | |
| 25761 | #include <stdlib.h> |
| 25762 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25763 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25764 | |
| 25765 | #if HAVE_TZNAME |
| 25766 | extern char *tzname[]; |
| 25767 | #endif |
| 25768 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25769 | int main() |
| 25770 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25771 | /* Note that we need to ensure that not only does tzset(3) |
| 25772 | do 'something' with localtime, but it works as documented |
| 25773 | 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] | 25774 | This includes making sure that tzname is set properly if |
| 25775 | tm->tm_zone does not exist since it is the alternative way |
| 25776 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25777 | |
| 25778 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25779 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25780 | */ |
| 25781 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25782 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25783 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 25784 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25785 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25786 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25787 | if (localtime(&groundhogday)->tm_hour != 0) |
| 25788 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25789 | #if HAVE_TZNAME |
| 25790 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 25791 | if (strcmp(tzname[0], "UTC") || |
| 25792 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 25793 | exit(1); |
| 25794 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25795 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25796 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25797 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25798 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25799 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25800 | #if HAVE_TZNAME |
| 25801 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 25802 | exit(1); |
| 25803 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25804 | |
| 25805 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 25806 | tzset(); |
| 25807 | if (localtime(&groundhogday)->tm_hour != 11) |
| 25808 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25809 | #if HAVE_TZNAME |
| 25810 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 25811 | exit(1); |
| 25812 | #endif |
| 25813 | |
| 25814 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25815 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 25816 | exit(1); |
| 25817 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 25818 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25819 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25820 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25821 | exit(0); |
| 25822 | } |
| 25823 | |
| 25824 | _ACEOF |
| 25825 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25826 | if { (ac_try="$ac_link" |
| 25827 | case "(($ac_try" in |
| 25828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25829 | *) ac_try_echo=$ac_try;; |
| 25830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25832 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25833 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25836 | { (case "(($ac_try" in |
| 25837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25838 | *) ac_try_echo=$ac_try;; |
| 25839 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25841 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25842 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25844 | (exit $ac_status); }; }; then |
| 25845 | ac_cv_working_tzset=yes |
| 25846 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25847 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25850 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25851 | ( exit $ac_status ) |
| 25852 | ac_cv_working_tzset=no |
| 25853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25854 | 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] | 25855 | fi |
| 25856 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25857 | |
| 25858 | fi |
| 25859 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25860 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 25861 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25862 | if test "$ac_cv_working_tzset" = yes |
| 25863 | then |
| 25864 | |
| 25865 | cat >>confdefs.h <<\_ACEOF |
| 25866 | #define HAVE_WORKING_TZSET 1 |
| 25867 | _ACEOF |
| 25868 | |
| 25869 | fi |
| 25870 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25871 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25872 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 25873 | 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] | 25874 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25876 | else |
| 25877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25878 | /* confdefs.h. */ |
| 25879 | _ACEOF |
| 25880 | cat confdefs.h >>conftest.$ac_ext |
| 25881 | cat >>conftest.$ac_ext <<_ACEOF |
| 25882 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25883 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25884 | int |
| 25885 | main () |
| 25886 | { |
| 25887 | |
| 25888 | struct stat st; |
| 25889 | st.st_mtim.tv_nsec = 1; |
| 25890 | |
| 25891 | ; |
| 25892 | return 0; |
| 25893 | } |
| 25894 | _ACEOF |
| 25895 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25896 | if { (ac_try="$ac_compile" |
| 25897 | case "(($ac_try" in |
| 25898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25899 | *) ac_try_echo=$ac_try;; |
| 25900 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25902 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25903 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25905 | rm -f conftest.er1 |
| 25906 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25908 | (exit $ac_status); } && { |
| 25909 | test -z "$ac_c_werror_flag" || |
| 25910 | test ! -s conftest.err |
| 25911 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 25912 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25913 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25916 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25917 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25918 | fi |
| 25919 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25921 | fi |
| 25922 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25923 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 25924 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25925 | if test "$ac_cv_stat_tv_nsec" = yes |
| 25926 | then |
| 25927 | |
| 25928 | cat >>confdefs.h <<\_ACEOF |
| 25929 | #define HAVE_STAT_TV_NSEC 1 |
| 25930 | _ACEOF |
| 25931 | |
| 25932 | fi |
| 25933 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25934 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25935 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 25936 | 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] | 25937 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25939 | else |
| 25940 | cat >conftest.$ac_ext <<_ACEOF |
| 25941 | /* confdefs.h. */ |
| 25942 | _ACEOF |
| 25943 | cat confdefs.h >>conftest.$ac_ext |
| 25944 | cat >>conftest.$ac_ext <<_ACEOF |
| 25945 | /* end confdefs.h. */ |
| 25946 | #include <sys/stat.h> |
| 25947 | int |
| 25948 | main () |
| 25949 | { |
| 25950 | |
| 25951 | struct stat st; |
| 25952 | st.st_mtimespec.tv_nsec = 1; |
| 25953 | |
| 25954 | ; |
| 25955 | return 0; |
| 25956 | } |
| 25957 | _ACEOF |
| 25958 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25959 | if { (ac_try="$ac_compile" |
| 25960 | case "(($ac_try" in |
| 25961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25962 | *) ac_try_echo=$ac_try;; |
| 25963 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25965 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25966 | ac_status=$? |
| 25967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25968 | rm -f conftest.er1 |
| 25969 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25971 | (exit $ac_status); } && { |
| 25972 | test -z "$ac_c_werror_flag" || |
| 25973 | test ! -s conftest.err |
| 25974 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25975 | ac_cv_stat_tv_nsec2=yes |
| 25976 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25977 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25979 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25980 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25981 | fi |
| 25982 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25984 | fi |
| 25985 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25986 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 25987 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25988 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 25989 | then |
| 25990 | |
| 25991 | cat >>confdefs.h <<\_ACEOF |
| 25992 | #define HAVE_STAT_TV_NSEC2 1 |
| 25993 | _ACEOF |
| 25994 | |
| 25995 | fi |
| 25996 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25997 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25998 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 25999 | 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] | 26000 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26003 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26004 | /* confdefs.h. */ |
| 26005 | _ACEOF |
| 26006 | cat confdefs.h >>conftest.$ac_ext |
| 26007 | cat >>conftest.$ac_ext <<_ACEOF |
| 26008 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26009 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26010 | int |
| 26011 | main () |
| 26012 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26013 | |
| 26014 | int rtn; |
| 26015 | rtn = mvwdelch(0,0,0); |
| 26016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26017 | ; |
| 26018 | return 0; |
| 26019 | } |
| 26020 | _ACEOF |
| 26021 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26022 | if { (ac_try="$ac_compile" |
| 26023 | case "(($ac_try" in |
| 26024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26025 | *) ac_try_echo=$ac_try;; |
| 26026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26028 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26029 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26031 | rm -f conftest.er1 |
| 26032 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26034 | (exit $ac_status); } && { |
| 26035 | test -z "$ac_c_werror_flag" || |
| 26036 | test ! -s conftest.err |
| 26037 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26038 | ac_cv_mvwdelch_is_expression=yes |
| 26039 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26042 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26043 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26044 | fi |
| 26045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26047 | fi |
| 26048 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26049 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 26050 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26051 | |
| 26052 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 26053 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26054 | |
| 26055 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26056 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26057 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26058 | |
| 26059 | fi |
| 26060 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26061 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 26062 | 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] | 26063 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26067 | /* confdefs.h. */ |
| 26068 | _ACEOF |
| 26069 | cat confdefs.h >>conftest.$ac_ext |
| 26070 | cat >>conftest.$ac_ext <<_ACEOF |
| 26071 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26072 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26073 | int |
| 26074 | main () |
| 26075 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26076 | |
| 26077 | WINDOW *w; |
| 26078 | w->_flags = 0; |
| 26079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26080 | ; |
| 26081 | return 0; |
| 26082 | } |
| 26083 | _ACEOF |
| 26084 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26085 | if { (ac_try="$ac_compile" |
| 26086 | case "(($ac_try" in |
| 26087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26088 | *) ac_try_echo=$ac_try;; |
| 26089 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26091 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26094 | rm -f conftest.er1 |
| 26095 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26097 | (exit $ac_status); } && { |
| 26098 | test -z "$ac_c_werror_flag" || |
| 26099 | test ! -s conftest.err |
| 26100 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26101 | ac_cv_window_has_flags=yes |
| 26102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26106 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26107 | fi |
| 26108 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26110 | fi |
| 26111 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26112 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 26113 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26114 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26115 | |
| 26116 | if test "$ac_cv_window_has_flags" = yes |
| 26117 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26118 | |
| 26119 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26120 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26121 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26122 | |
| 26123 | fi |
| 26124 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26125 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 26126 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26127 | cat >conftest.$ac_ext <<_ACEOF |
| 26128 | /* confdefs.h. */ |
| 26129 | _ACEOF |
| 26130 | cat confdefs.h >>conftest.$ac_ext |
| 26131 | cat >>conftest.$ac_ext <<_ACEOF |
| 26132 | /* end confdefs.h. */ |
| 26133 | #include <curses.h> |
| 26134 | int |
| 26135 | main () |
| 26136 | { |
| 26137 | void *x=is_term_resized |
| 26138 | ; |
| 26139 | return 0; |
| 26140 | } |
| 26141 | _ACEOF |
| 26142 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26143 | if { (ac_try="$ac_compile" |
| 26144 | case "(($ac_try" in |
| 26145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26146 | *) ac_try_echo=$ac_try;; |
| 26147 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26149 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26150 | ac_status=$? |
| 26151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26152 | rm -f conftest.er1 |
| 26153 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26155 | (exit $ac_status); } && { |
| 26156 | test -z "$ac_c_werror_flag" || |
| 26157 | test ! -s conftest.err |
| 26158 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26159 | |
| 26160 | cat >>confdefs.h <<\_ACEOF |
| 26161 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 26162 | _ACEOF |
| 26163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26164 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26165 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26166 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26167 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26171 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26172 | |
| 26173 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26176 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26177 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 26178 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26179 | cat >conftest.$ac_ext <<_ACEOF |
| 26180 | /* confdefs.h. */ |
| 26181 | _ACEOF |
| 26182 | cat confdefs.h >>conftest.$ac_ext |
| 26183 | cat >>conftest.$ac_ext <<_ACEOF |
| 26184 | /* end confdefs.h. */ |
| 26185 | #include <curses.h> |
| 26186 | int |
| 26187 | main () |
| 26188 | { |
| 26189 | void *x=resize_term |
| 26190 | ; |
| 26191 | return 0; |
| 26192 | } |
| 26193 | _ACEOF |
| 26194 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26195 | if { (ac_try="$ac_compile" |
| 26196 | case "(($ac_try" in |
| 26197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26198 | *) ac_try_echo=$ac_try;; |
| 26199 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26201 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26202 | ac_status=$? |
| 26203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26204 | rm -f conftest.er1 |
| 26205 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26207 | (exit $ac_status); } && { |
| 26208 | test -z "$ac_c_werror_flag" || |
| 26209 | test ! -s conftest.err |
| 26210 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26211 | |
| 26212 | cat >>confdefs.h <<\_ACEOF |
| 26213 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 26214 | _ACEOF |
| 26215 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26216 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26217 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26219 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26221 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26222 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26223 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26224 | |
| 26225 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26228 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26229 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 26230 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26231 | cat >conftest.$ac_ext <<_ACEOF |
| 26232 | /* confdefs.h. */ |
| 26233 | _ACEOF |
| 26234 | cat confdefs.h >>conftest.$ac_ext |
| 26235 | cat >>conftest.$ac_ext <<_ACEOF |
| 26236 | /* end confdefs.h. */ |
| 26237 | #include <curses.h> |
| 26238 | int |
| 26239 | main () |
| 26240 | { |
| 26241 | void *x=resizeterm |
| 26242 | ; |
| 26243 | return 0; |
| 26244 | } |
| 26245 | _ACEOF |
| 26246 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26247 | if { (ac_try="$ac_compile" |
| 26248 | case "(($ac_try" in |
| 26249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26250 | *) ac_try_echo=$ac_try;; |
| 26251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26253 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26254 | ac_status=$? |
| 26255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26256 | rm -f conftest.er1 |
| 26257 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26259 | (exit $ac_status); } && { |
| 26260 | test -z "$ac_c_werror_flag" || |
| 26261 | test ! -s conftest.err |
| 26262 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26263 | |
| 26264 | cat >>confdefs.h <<\_ACEOF |
| 26265 | #define HAVE_CURSES_RESIZETERM 1 |
| 26266 | _ACEOF |
| 26267 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26268 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26269 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26270 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26271 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26273 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26274 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26275 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26276 | |
| 26277 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26280 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26281 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 26282 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26283 | |
| 26284 | if test -r /dev/ptmx |
| 26285 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26286 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26287 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26288 | |
| 26289 | cat >>confdefs.h <<\_ACEOF |
| 26290 | #define HAVE_DEV_PTMX 1 |
| 26291 | _ACEOF |
| 26292 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26293 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26295 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26296 | fi |
| 26297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26298 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 26299 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26300 | |
| 26301 | if test -r /dev/ptc |
| 26302 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26303 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26304 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26305 | |
| 26306 | cat >>confdefs.h <<\_ACEOF |
| 26307 | #define HAVE_DEV_PTC 1 |
| 26308 | _ACEOF |
| 26309 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26312 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26313 | fi |
| 26314 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26315 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 26316 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26317 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 26318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26319 | else |
| 26320 | if test "$cross_compiling" = yes; then |
| 26321 | ac_cv_have_size_t_format=no |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26322 | else |
| 26323 | cat >conftest.$ac_ext <<_ACEOF |
| 26324 | /* confdefs.h. */ |
| 26325 | _ACEOF |
| 26326 | cat confdefs.h >>conftest.$ac_ext |
| 26327 | cat >>conftest.$ac_ext <<_ACEOF |
| 26328 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26329 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26330 | #include <stdio.h> |
| 26331 | #include <stddef.h> |
| 26332 | #include <string.h> |
| 26333 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26334 | #ifdef HAVE_SYS_TYPES_H |
| 26335 | #include <sys/types.h> |
| 26336 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26337 | |
| 26338 | #ifdef HAVE_SSIZE_T |
| 26339 | typedef ssize_t Py_ssize_t; |
| 26340 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 26341 | typedef long Py_ssize_t; |
| 26342 | #else |
| 26343 | typedef int Py_ssize_t; |
| 26344 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26345 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26346 | int main() |
| 26347 | { |
| 26348 | char buffer[256]; |
| 26349 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26350 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 26351 | return 1; |
| 26352 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26353 | if (strcmp(buffer, "123")) |
| 26354 | return 1; |
| 26355 | |
| 26356 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 26357 | return 1; |
| 26358 | |
| 26359 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26360 | return 1; |
| 26361 | |
| 26362 | return 0; |
| 26363 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26364 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26365 | _ACEOF |
| 26366 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26367 | if { (ac_try="$ac_link" |
| 26368 | case "(($ac_try" in |
| 26369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26370 | *) ac_try_echo=$ac_try;; |
| 26371 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26373 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26374 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26377 | { (case "(($ac_try" in |
| 26378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26379 | *) ac_try_echo=$ac_try;; |
| 26380 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26382 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26383 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26385 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26386 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26387 | else |
| 26388 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26389 | echo "$as_me: failed program was:" >&5 |
| 26390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26391 | |
| 26392 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26393 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26394 | fi |
| 26395 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 26396 | fi |
| 26397 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26398 | |
| 26399 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26400 | fi |
| 26401 | |
| 26402 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 26403 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
| 26404 | if test $ac_cv_have_size_t_format = yes |
| 26405 | then |
| 26406 | |
| 26407 | cat >>confdefs.h <<\_ACEOF |
| 26408 | #define PY_FORMAT_SIZE_T "z" |
| 26409 | _ACEOF |
| 26410 | |
| 26411 | fi |
| 26412 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26413 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 26414 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26415 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26419 | /* confdefs.h. */ |
| 26420 | _ACEOF |
| 26421 | cat confdefs.h >>conftest.$ac_ext |
| 26422 | cat >>conftest.$ac_ext <<_ACEOF |
| 26423 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26424 | |
| 26425 | #ifdef HAVE_SYS_TYPES_H |
| 26426 | #include <sys/types.h> |
| 26427 | #endif |
| 26428 | #ifdef HAVE_SYS_SOCKET_H |
| 26429 | #include <sys/socket.h> |
| 26430 | #endif |
| 26431 | |
| 26432 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26433 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26434 | int |
| 26435 | main () |
| 26436 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26437 | if ((ac__type_new_ *) 0) |
| 26438 | return 0; |
| 26439 | if (sizeof (ac__type_new_)) |
| 26440 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26441 | ; |
| 26442 | return 0; |
| 26443 | } |
| 26444 | _ACEOF |
| 26445 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26446 | if { (ac_try="$ac_compile" |
| 26447 | case "(($ac_try" in |
| 26448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26449 | *) ac_try_echo=$ac_try;; |
| 26450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26452 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26455 | rm -f conftest.er1 |
| 26456 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26458 | (exit $ac_status); } && { |
| 26459 | test -z "$ac_c_werror_flag" || |
| 26460 | test ! -s conftest.err |
| 26461 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26462 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26466 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26467 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26468 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26469 | |
| 26470 | 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] | 26471 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26472 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 26473 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 26474 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26475 | : |
| 26476 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26477 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26478 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26479 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26480 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26481 | |
| 26482 | fi |
| 26483 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26484 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26485 | |
| 26486 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 26487 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 26488 | do |
| 26489 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 26490 | done |
| 26491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26492 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 26493 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26494 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 26495 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26496 | for dir in $SRCDIRS; do |
| 26497 | if test ! -d $dir; then |
| 26498 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 26499 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26500 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26501 | { echo "$as_me:$LINENO: result: done" >&5 |
| 26502 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 26503 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26504 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 26505 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 26506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26507 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26508 | # This file is a shell script that caches the results of configure |
| 26509 | # 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] | 26510 | # scripts and configure runs, see configure's option --config-cache. |
| 26511 | # It is not useful on other systems. If it contains results you don't |
| 26512 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26513 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26514 | # config.status only pays attention to the cache file if you give it |
| 26515 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26516 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26517 | # `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] | 26518 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 26519 | # following values. |
| 26520 | |
| 26521 | _ACEOF |
| 26522 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 26523 | # The following way of writing the cache mishandles newlines in values, |
| 26524 | # but we know of no workaround that is simple, portable, and efficient. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26525 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26526 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 26527 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26528 | ( |
| 26529 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 26530 | eval ac_val=\$$ac_var |
| 26531 | case $ac_val in #( |
| 26532 | *${as_nl}*) |
| 26533 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26534 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 26535 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26536 | esac |
| 26537 | case $ac_var in #( |
| 26538 | _ | IFS | as_nl) ;; #( |
| 26539 | *) $as_unset $ac_var ;; |
| 26540 | esac ;; |
| 26541 | esac |
| 26542 | done |
| 26543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26544 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26545 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 26546 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26547 | # `set' does not quote correctly, so add quotes (double-quote |
| 26548 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 26549 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26550 | "s/'/'\\\\''/g; |
| 26551 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26552 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26553 | *) |
| 26554 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26555 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26556 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26557 | esac | |
| 26558 | sort |
| 26559 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26560 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26561 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26562 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26563 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26564 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 26565 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26566 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 26567 | :end' >>confcache |
| 26568 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 26569 | if test -w "$cache_file"; then |
| 26570 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26571 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 26572 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26573 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26574 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26575 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 26576 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26577 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26578 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26579 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26580 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26581 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 26582 | # Let make expand exec_prefix. |
| 26583 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26584 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26585 | DEFS=-DHAVE_CONFIG_H |
| 26586 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26587 | ac_libobjs= |
| 26588 | ac_ltlibobjs= |
| 26589 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 26590 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26591 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26592 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26593 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 26594 | # will be set to the directory where LIBOBJS objects are built. |
| 26595 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 26596 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26597 | done |
| 26598 | LIBOBJS=$ac_libobjs |
| 26599 | |
| 26600 | LTLIBOBJS=$ac_ltlibobjs |
| 26601 | |
| 26602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26604 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26605 | ac_clean_files_save=$ac_clean_files |
| 26606 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26607 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 26608 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 26609 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26610 | #! $SHELL |
| 26611 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26612 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26613 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26614 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26616 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26617 | ac_cs_recheck=false |
| 26618 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26619 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 26620 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26621 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26622 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26623 | ## --------------------- ## |
| 26624 | ## M4sh Initialization. ## |
| 26625 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26626 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26627 | # Be more Bourne compatible |
| 26628 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26629 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 26630 | emulate sh |
| 26631 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26632 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26633 | # is contrary to our usage. Disable this feature. |
| 26634 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26635 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26636 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26637 | case `(set -o) 2>/dev/null` in |
| 26638 | *posix*) set -o posix ;; |
| 26639 | esac |
| 26640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26641 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26642 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26644 | |
| 26645 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26646 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26647 | # Avoid depending upon Character Ranges. |
| 26648 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 26649 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 26650 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 26651 | as_cr_digits='0123456789' |
| 26652 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 26653 | |
| 26654 | # The user is always right. |
| 26655 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26656 | echo "#! /bin/sh" >conf$$.sh |
| 26657 | echo "exit 0" >>conf$$.sh |
| 26658 | chmod +x conf$$.sh |
| 26659 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 26660 | PATH_SEPARATOR=';' |
| 26661 | else |
| 26662 | PATH_SEPARATOR=: |
| 26663 | fi |
| 26664 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26665 | fi |
| 26666 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26667 | # Support unset when possible. |
| 26668 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26669 | as_unset=unset |
| 26670 | else |
| 26671 | as_unset=false |
| 26672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26673 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26674 | |
| 26675 | # IFS |
| 26676 | # We need space, tab and new line, in precisely that order. Quoting is |
| 26677 | # there to prevent editors from complaining about space-tab. |
| 26678 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 26679 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26680 | as_nl=' |
| 26681 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26682 | IFS=" "" $as_nl" |
| 26683 | |
| 26684 | # Find who we are. Look in the path if we contain no directory separator. |
| 26685 | case $0 in |
| 26686 | *[\\/]* ) as_myself=$0 ;; |
| 26687 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26688 | for as_dir in $PATH |
| 26689 | do |
| 26690 | IFS=$as_save_IFS |
| 26691 | test -z "$as_dir" && as_dir=. |
| 26692 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 26693 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26694 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26696 | ;; |
| 26697 | esac |
| 26698 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 26699 | # in which case we are not to be found in the path. |
| 26700 | if test "x$as_myself" = x; then |
| 26701 | as_myself=$0 |
| 26702 | fi |
| 26703 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26704 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26705 | { (exit 1); exit 1; } |
| 26706 | fi |
| 26707 | |
| 26708 | # Work around bugs in pre-3.0 UWIN ksh. |
| 26709 | for as_var in ENV MAIL MAILPATH |
| 26710 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26711 | done |
| 26712 | PS1='$ ' |
| 26713 | PS2='> ' |
| 26714 | PS4='+ ' |
| 26715 | |
| 26716 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26717 | for as_var in \ |
| 26718 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 26719 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 26720 | LC_TELEPHONE LC_TIME |
| 26721 | do |
| 26722 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 26723 | eval $as_var=C; export $as_var |
| 26724 | else |
| 26725 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26726 | fi |
| 26727 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26728 | |
| 26729 | # Required to use basename. |
| 26730 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26731 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 26732 | as_expr=expr |
| 26733 | else |
| 26734 | as_expr=false |
| 26735 | fi |
| 26736 | |
| 26737 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 26738 | as_basename=basename |
| 26739 | else |
| 26740 | as_basename=false |
| 26741 | fi |
| 26742 | |
| 26743 | |
| 26744 | # Name of the executable. |
| 26745 | as_me=`$as_basename -- "$0" || |
| 26746 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26747 | X"$0" : 'X\(//\)$' \| \ |
| 26748 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26749 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26750 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26751 | s//\1/ |
| 26752 | q |
| 26753 | } |
| 26754 | /^X\/\(\/\/\)$/{ |
| 26755 | s//\1/ |
| 26756 | q |
| 26757 | } |
| 26758 | /^X\/\(\/\).*/{ |
| 26759 | s//\1/ |
| 26760 | q |
| 26761 | } |
| 26762 | s/.*/./; q'` |
| 26763 | |
| 26764 | # CDPATH. |
| 26765 | $as_unset CDPATH |
| 26766 | |
| 26767 | |
| 26768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26769 | as_lineno_1=$LINENO |
| 26770 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26771 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26772 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26774 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 26775 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26776 | # line-number line after each line using $LINENO; the second 'sed' |
| 26777 | # does the real work. The second script uses 'N' to pair each |
| 26778 | # line-number line with the line containing $LINENO, and appends |
| 26779 | # trailing '-' during substitution so that $LINENO is not a special |
| 26780 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26781 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26782 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 26783 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 26784 | sed -n ' |
| 26785 | p |
| 26786 | /[$]LINENO/= |
| 26787 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26788 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26789 | s/[$]LINENO.*/&-/ |
| 26790 | t lineno |
| 26791 | b |
| 26792 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26793 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26794 | :loop |
| 26795 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26796 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26797 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26798 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26799 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26800 | { 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] | 26801 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26803 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 26804 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26805 | # original and so on. Autoconf is especially sensitive to this). |
| 26806 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26807 | # Exit status is that of the last command. |
| 26808 | exit |
| 26809 | } |
| 26810 | |
| 26811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26812 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 26813 | as_dirname=dirname |
| 26814 | else |
| 26815 | as_dirname=false |
| 26816 | fi |
| 26817 | |
| 26818 | ECHO_C= ECHO_N= ECHO_T= |
| 26819 | case `echo -n x` in |
| 26820 | -n*) |
| 26821 | case `echo 'x\c'` in |
| 26822 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 26823 | *) ECHO_C='\c';; |
| 26824 | esac;; |
| 26825 | *) |
| 26826 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26827 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26829 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26830 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26831 | as_expr=expr |
| 26832 | else |
| 26833 | as_expr=false |
| 26834 | fi |
| 26835 | |
| 26836 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26837 | if test -d conf$$.dir; then |
| 26838 | rm -f conf$$.dir/conf$$.file |
| 26839 | else |
| 26840 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26841 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26843 | echo >conf$$.file |
| 26844 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 26845 | as_ln_s='ln -s' |
| 26846 | # ... but there are two gotchas: |
| 26847 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 26848 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 26849 | # In both cases, we have to default to `cp -p'. |
| 26850 | 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] | 26851 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26852 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 26853 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26854 | else |
| 26855 | as_ln_s='cp -p' |
| 26856 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26857 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 26858 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26859 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26860 | if mkdir -p . 2>/dev/null; then |
| 26861 | as_mkdir_p=: |
| 26862 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26863 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26864 | as_mkdir_p=false |
| 26865 | fi |
| 26866 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26867 | if test -x / >/dev/null 2>&1; then |
| 26868 | as_test_x='test -x' |
| 26869 | else |
| 26870 | if ls -dL / >/dev/null 2>&1; then |
| 26871 | as_ls_L_option=L |
| 26872 | else |
| 26873 | as_ls_L_option= |
| 26874 | fi |
| 26875 | as_test_x=' |
| 26876 | eval sh -c '\'' |
| 26877 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26878 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26879 | else |
| 26880 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26881 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26882 | esac; |
| 26883 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 26884 | ???[sx]*):;;*)false;;esac;fi |
| 26885 | '\'' sh |
| 26886 | ' |
| 26887 | fi |
| 26888 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26889 | |
| 26890 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26891 | 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] | 26892 | |
| 26893 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26894 | 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] | 26895 | |
| 26896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26897 | exec 6>&1 |
| 26898 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26899 | # 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] | 26900 | # report actual input values of CONFIG_FILES etc. instead of their |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26901 | # values after options handling. |
| 26902 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 26903 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26904 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26905 | |
| 26906 | CONFIG_FILES = $CONFIG_FILES |
| 26907 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 26908 | CONFIG_LINKS = $CONFIG_LINKS |
| 26909 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 26910 | $ $0 $@ |
| 26911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26912 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 26913 | " |
| 26914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26915 | _ACEOF |
| 26916 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26917 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26918 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 26919 | config_files="$ac_config_files" |
| 26920 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26922 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26923 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26924 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26925 | ac_cs_usage="\ |
| 26926 | \`$as_me' instantiates files from templates according to the |
| 26927 | current configuration. |
| 26928 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26929 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26930 | |
| 26931 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26932 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26933 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26934 | -d, --debug don't remove temporary files |
| 26935 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26936 | --file=FILE[:TEMPLATE] |
| 26937 | instantiate the configuration file FILE |
| 26938 | --header=FILE[:TEMPLATE] |
| 26939 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26940 | |
| 26941 | Configuration files: |
| 26942 | $config_files |
| 26943 | |
| 26944 | Configuration headers: |
| 26945 | $config_headers |
| 26946 | |
| 26947 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26948 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26949 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26950 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26951 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 26952 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26953 | configured by $0, generated by GNU Autoconf 2.61, |
| 26954 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26955 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26956 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26957 | This config.status script is free software; the Free Software Foundation |
| 26958 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26959 | |
| 26960 | ac_pwd='$ac_pwd' |
| 26961 | srcdir='$srcdir' |
| 26962 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26963 | _ACEOF |
| 26964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26965 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26966 | # If no file are specified by the user, then we need to provide default |
| 26967 | # 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] | 26968 | ac_need_defaults=: |
| 26969 | while test $# != 0 |
| 26970 | do |
| 26971 | case $1 in |
| 26972 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26973 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 26974 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26975 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26976 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26977 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26978 | ac_option=$1 |
| 26979 | ac_optarg=$2 |
| 26980 | ac_shift=shift |
| 26981 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26982 | esac |
| 26983 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26984 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26985 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26986 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 26987 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26988 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26989 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26990 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26991 | debug=: ;; |
| 26992 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26993 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26994 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26995 | ac_need_defaults=false;; |
| 26996 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26997 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26998 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26999 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27000 | --he | --h) |
| 27001 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27002 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27003 | Try \`$0 --help' for more information." >&2 |
| 27004 | { (exit 1); exit 1; }; };; |
| 27005 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27006 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27007 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 27008 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 27009 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27010 | |
| 27011 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27012 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27013 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27014 | { (exit 1); exit 1; }; } ;; |
| 27015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27016 | *) ac_config_targets="$ac_config_targets $1" |
| 27017 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27018 | |
| 27019 | esac |
| 27020 | shift |
| 27021 | done |
| 27022 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27023 | ac_configure_extra_args= |
| 27024 | |
| 27025 | if $ac_cs_silent; then |
| 27026 | exec 6>/dev/null |
| 27027 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 27028 | fi |
| 27029 | |
| 27030 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27031 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27032 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27033 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 27034 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27035 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27036 | 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] | 27037 | fi |
| 27038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27039 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27040 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27041 | exec 5>>config.log |
| 27042 | { |
| 27043 | echo |
| 27044 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27045 | ## Running $as_me. ## |
| 27046 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27047 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27048 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27049 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27050 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27051 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27052 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27053 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27054 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27055 | |
| 27056 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27057 | for ac_config_target in $ac_config_targets |
| 27058 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27059 | case $ac_config_target in |
| 27060 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 27061 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 27062 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 27063 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 27064 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 27065 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27066 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 27067 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27068 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27069 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27070 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 27071 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27072 | { (exit 1); exit 1; }; };; |
| 27073 | esac |
| 27074 | done |
| 27075 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27077 | # If the user did not use the arguments to specify the items to instantiate, |
| 27078 | # then the envvar interface is used. Set only those that are not. |
| 27079 | # We use the long form for the default assignment because of an extremely |
| 27080 | # bizarre bug on SunOS 4.1.3. |
| 27081 | if $ac_need_defaults; then |
| 27082 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 27083 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 27084 | fi |
| 27085 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27086 | # Have a temporary directory for convenience. Make it in the build tree |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27087 | # 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] | 27088 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27089 | # Hook for its removal unless debugging. |
| 27090 | # Note that there is a small window in which the directory will not be cleaned: |
| 27091 | # 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] | 27092 | $debug || |
| 27093 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27094 | tmp= |
| 27095 | trap 'exit_status=$? |
| 27096 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 27097 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27098 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 27099 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27100 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27102 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27103 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27104 | test -n "$tmp" && test -d "$tmp" |
| 27105 | } || |
| 27106 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27107 | tmp=./conf$$-$RANDOM |
| 27108 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27109 | } || |
| 27110 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27111 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27112 | { (exit 1); exit 1; } |
| 27113 | } |
| 27114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27115 | # |
| 27116 | # Set up the sed scripts for CONFIG_FILES section. |
| 27117 | # |
| 27118 | |
| 27119 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 27120 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27121 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27122 | |
| 27123 | _ACEOF |
| 27124 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27125 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27127 | ac_delim='%!_!# ' |
| 27128 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27129 | cat >conf$$subs.sed <<_ACEOF |
| 27130 | SHELL!$SHELL$ac_delim |
| 27131 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 27132 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 27133 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 27134 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 27135 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 27136 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 27137 | exec_prefix!$exec_prefix$ac_delim |
| 27138 | prefix!$prefix$ac_delim |
| 27139 | program_transform_name!$program_transform_name$ac_delim |
| 27140 | bindir!$bindir$ac_delim |
| 27141 | sbindir!$sbindir$ac_delim |
| 27142 | libexecdir!$libexecdir$ac_delim |
| 27143 | datarootdir!$datarootdir$ac_delim |
| 27144 | datadir!$datadir$ac_delim |
| 27145 | sysconfdir!$sysconfdir$ac_delim |
| 27146 | sharedstatedir!$sharedstatedir$ac_delim |
| 27147 | localstatedir!$localstatedir$ac_delim |
| 27148 | includedir!$includedir$ac_delim |
| 27149 | oldincludedir!$oldincludedir$ac_delim |
| 27150 | docdir!$docdir$ac_delim |
| 27151 | infodir!$infodir$ac_delim |
| 27152 | htmldir!$htmldir$ac_delim |
| 27153 | dvidir!$dvidir$ac_delim |
| 27154 | pdfdir!$pdfdir$ac_delim |
| 27155 | psdir!$psdir$ac_delim |
| 27156 | libdir!$libdir$ac_delim |
| 27157 | localedir!$localedir$ac_delim |
| 27158 | mandir!$mandir$ac_delim |
| 27159 | DEFS!$DEFS$ac_delim |
| 27160 | ECHO_C!$ECHO_C$ac_delim |
| 27161 | ECHO_N!$ECHO_N$ac_delim |
| 27162 | ECHO_T!$ECHO_T$ac_delim |
| 27163 | LIBS!$LIBS$ac_delim |
| 27164 | build_alias!$build_alias$ac_delim |
| 27165 | host_alias!$host_alias$ac_delim |
| 27166 | target_alias!$target_alias$ac_delim |
| 27167 | VERSION!$VERSION$ac_delim |
| 27168 | SOVERSION!$SOVERSION$ac_delim |
| 27169 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 27170 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 27171 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 27172 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 27173 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 27174 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 27175 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 27176 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 27177 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 27178 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 27179 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 27180 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 27181 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 27182 | MACHDEP!$MACHDEP$ac_delim |
| 27183 | SGI_ABI!$SGI_ABI$ac_delim |
| 27184 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 27185 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 27186 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27187 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27188 | CC!$CC$ac_delim |
| 27189 | CFLAGS!$CFLAGS$ac_delim |
| 27190 | LDFLAGS!$LDFLAGS$ac_delim |
| 27191 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 27192 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 27193 | EXEEXT!$EXEEXT$ac_delim |
| 27194 | OBJEXT!$OBJEXT$ac_delim |
| 27195 | CXX!$CXX$ac_delim |
| 27196 | MAINCC!$MAINCC$ac_delim |
| 27197 | CPP!$CPP$ac_delim |
| 27198 | GREP!$GREP$ac_delim |
| 27199 | EGREP!$EGREP$ac_delim |
| 27200 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 27201 | LIBRARY!$LIBRARY$ac_delim |
| 27202 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 27203 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 27204 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 27205 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 27206 | INSTSONAME!$INSTSONAME$ac_delim |
| 27207 | RUNSHARED!$RUNSHARED$ac_delim |
| 27208 | LINKCC!$LINKCC$ac_delim |
| 27209 | GNULD!$GNULD$ac_delim |
| 27210 | RANLIB!$RANLIB$ac_delim |
| 27211 | AR!$AR$ac_delim |
| 27212 | ARFLAGS!$ARFLAGS$ac_delim |
| 27213 | SVNVERSION!$SVNVERSION$ac_delim |
| 27214 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 27215 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 27216 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 27217 | LN!$LN$ac_delim |
| 27218 | OPT!$OPT$ac_delim |
| 27219 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 27220 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 27221 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 27222 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 27223 | SO!$SO$ac_delim |
| 27224 | LDSHARED!$LDSHARED$ac_delim |
| 27225 | BLDSHARED!$BLDSHARED$ac_delim |
| 27226 | CCSHARED!$CCSHARED$ac_delim |
| 27227 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27228 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27229 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27230 | break |
| 27231 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27232 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27233 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27234 | { (exit 1); exit 1; }; } |
| 27235 | else |
| 27236 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27237 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27238 | done |
| 27239 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27240 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27241 | if test -n "$ac_eof"; then |
| 27242 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27243 | ac_eof=`expr $ac_eof + 1` |
| 27244 | fi |
| 27245 | |
| 27246 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27247 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 27248 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27249 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27250 | sed ' |
| 27251 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27252 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27253 | :n |
| 27254 | t n |
| 27255 | s/'"$ac_delim"'$/,g/; t |
| 27256 | s/$/\\/; p |
| 27257 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27258 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27259 | rm -f conf$$subs.sed |
| 27260 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27261 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27262 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27263 | |
| 27264 | |
| 27265 | ac_delim='%!_!# ' |
| 27266 | for ac_last_try in false false false false false :; do |
| 27267 | cat >conf$$subs.sed <<_ACEOF |
| 27268 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 27269 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 27270 | SHLIBS!$SHLIBS$ac_delim |
| 27271 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 27272 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 27273 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 27274 | LDLAST!$LDLAST$ac_delim |
| 27275 | THREADOBJ!$THREADOBJ$ac_delim |
| 27276 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 27277 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 27278 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 27279 | TRUE!$TRUE$ac_delim |
| 27280 | LIBOBJS!$LIBOBJS$ac_delim |
| 27281 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 27282 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 27283 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 27284 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 27285 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 27286 | LIBM!$LIBM$ac_delim |
| 27287 | LIBC!$LIBC$ac_delim |
| 27288 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 27289 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 27290 | SRCDIRS!$SRCDIRS$ac_delim |
| 27291 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 27292 | _ACEOF |
| 27293 | |
| 27294 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then |
| 27295 | break |
| 27296 | elif $ac_last_try; then |
| 27297 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27298 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27299 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27300 | else |
| 27301 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 27302 | fi |
| 27303 | done |
| 27304 | |
| 27305 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27306 | if test -n "$ac_eof"; then |
| 27307 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27308 | ac_eof=`expr $ac_eof + 1` |
| 27309 | fi |
| 27310 | |
| 27311 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27312 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 27313 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27314 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27315 | sed ' |
| 27316 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27317 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27318 | :n |
| 27319 | t n |
| 27320 | s/'"$ac_delim"'$/,g/; t |
| 27321 | s/$/\\/; p |
| 27322 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27323 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27324 | rm -f conf$$subs.sed |
| 27325 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27326 | :end |
| 27327 | s/|#_!!_#|//g |
| 27328 | CEOF$ac_eof |
| 27329 | _ACEOF |
| 27330 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27331 | |
| 27332 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 27333 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 27334 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 27335 | # (actually we leave an empty line to preserve line numbers). |
| 27336 | if test "x$srcdir" = x.; then |
| 27337 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 27338 | s/:*\$(srcdir):*/:/ |
| 27339 | s/:*\${srcdir}:*/:/ |
| 27340 | s/:*@srcdir@:*/:/ |
| 27341 | s/^\([^=]*=[ ]*\):*/\1/ |
| 27342 | s/:*$// |
| 27343 | s/^[^=]*=[ ]*$// |
| 27344 | }' |
| 27345 | fi |
| 27346 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27347 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27348 | fi # test -n "$CONFIG_FILES" |
| 27349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27350 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27351 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27352 | do |
| 27353 | case $ac_tag in |
| 27354 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 27355 | esac |
| 27356 | case $ac_mode$ac_tag in |
| 27357 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27358 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 27359 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27360 | { (exit 1); exit 1; }; };; |
| 27361 | :[FH]-) ac_tag=-:-;; |
| 27362 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 27363 | esac |
| 27364 | ac_save_IFS=$IFS |
| 27365 | IFS=: |
| 27366 | set x $ac_tag |
| 27367 | IFS=$ac_save_IFS |
| 27368 | shift |
| 27369 | ac_file=$1 |
| 27370 | shift |
| 27371 | |
| 27372 | case $ac_mode in |
| 27373 | :L) ac_source=$1;; |
| 27374 | :[FH]) |
| 27375 | ac_file_inputs= |
| 27376 | for ac_f |
| 27377 | do |
| 27378 | case $ac_f in |
| 27379 | -) ac_f="$tmp/stdin";; |
| 27380 | *) # Look for the file first in the build tree, then in the source tree |
| 27381 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 27382 | # because $ac_f cannot contain `:'. |
| 27383 | test -f "$ac_f" || |
| 27384 | case $ac_f in |
| 27385 | [\\/$]*) false;; |
| 27386 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 27387 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27388 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 27389 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27390 | { (exit 1); exit 1; }; };; |
| 27391 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27392 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27393 | done |
| 27394 | |
| 27395 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 27396 | # use $as_me), people would be surprised to read: |
| 27397 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27398 | configure_input="Generated from "`IFS=: |
| 27399 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27400 | if test x"$ac_file" != x-; then |
| 27401 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27402 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 27403 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27404 | fi |
| 27405 | |
| 27406 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27407 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27408 | esac |
| 27409 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27410 | esac |
| 27411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27412 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27413 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27414 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 27415 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27416 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27417 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27419 | s//\1/ |
| 27420 | q |
| 27421 | } |
| 27422 | /^X\(\/\/\)[^/].*/{ |
| 27423 | s//\1/ |
| 27424 | q |
| 27425 | } |
| 27426 | /^X\(\/\/\)$/{ |
| 27427 | s//\1/ |
| 27428 | q |
| 27429 | } |
| 27430 | /^X\(\/\).*/{ |
| 27431 | s//\1/ |
| 27432 | q |
| 27433 | } |
| 27434 | s/.*/./; q'` |
| 27435 | { as_dir="$ac_dir" |
| 27436 | case $as_dir in #( |
| 27437 | -*) as_dir=./$as_dir;; |
| 27438 | esac |
| 27439 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27440 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27441 | while :; do |
| 27442 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27443 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27444 | *) as_qdir=$as_dir;; |
| 27445 | esac |
| 27446 | as_dirs="'$as_qdir' $as_dirs" |
| 27447 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27448 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27449 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27450 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27451 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27452 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27454 | s//\1/ |
| 27455 | q |
| 27456 | } |
| 27457 | /^X\(\/\/\)[^/].*/{ |
| 27458 | s//\1/ |
| 27459 | q |
| 27460 | } |
| 27461 | /^X\(\/\/\)$/{ |
| 27462 | s//\1/ |
| 27463 | q |
| 27464 | } |
| 27465 | /^X\(\/\).*/{ |
| 27466 | s//\1/ |
| 27467 | q |
| 27468 | } |
| 27469 | s/.*/./; q'` |
| 27470 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27471 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27472 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27473 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 27474 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27475 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27476 | ac_builddir=. |
| 27477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27478 | case "$ac_dir" in |
| 27479 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27480 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27481 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27482 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27483 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27484 | case $ac_top_builddir_sub in |
| 27485 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27486 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 27487 | esac ;; |
| 27488 | esac |
| 27489 | ac_abs_top_builddir=$ac_pwd |
| 27490 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 27491 | # for backward compatibility: |
| 27492 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27493 | |
| 27494 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27495 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27496 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27497 | ac_top_srcdir=$ac_top_builddir_sub |
| 27498 | ac_abs_top_srcdir=$ac_pwd ;; |
| 27499 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27500 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27501 | ac_top_srcdir=$srcdir |
| 27502 | ac_abs_top_srcdir=$srcdir ;; |
| 27503 | *) # Relative name. |
| 27504 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 27505 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 27506 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27507 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27508 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27511 | case $ac_mode in |
| 27512 | :F) |
| 27513 | # |
| 27514 | # CONFIG_FILE |
| 27515 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27516 | |
| 27517 | case $INSTALL in |
| 27518 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27519 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27520 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 27521 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27523 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27524 | # If the template does not know about datarootdir, expand it. |
| 27525 | # FIXME: This hack should be removed a few years after 2.60. |
| 27526 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 27527 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27528 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27529 | p |
| 27530 | q |
| 27531 | } |
| 27532 | /@datadir@/p |
| 27533 | /@docdir@/p |
| 27534 | /@infodir@/p |
| 27535 | /@localedir@/p |
| 27536 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27537 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27538 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 27539 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27540 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 27541 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27542 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27543 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27544 | ac_datarootdir_hack=' |
| 27545 | s&@datadir@&$datadir&g |
| 27546 | s&@docdir@&$docdir&g |
| 27547 | s&@infodir@&$infodir&g |
| 27548 | s&@localedir@&$localedir&g |
| 27549 | s&@mandir@&$mandir&g |
| 27550 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 27551 | esac |
| 27552 | _ACEOF |
| 27553 | |
| 27554 | # Neutralize VPATH when `$srcdir' = `.'. |
| 27555 | # Shell code in configure.ac might set extrasub. |
| 27556 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27557 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27558 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27559 | $extrasub |
| 27560 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27561 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27562 | :t |
| 27563 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27564 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27565 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 27566 | s&@srcdir@&$ac_srcdir&;t t |
| 27567 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 27568 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 27569 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 27570 | s&@builddir@&$ac_builddir&;t t |
| 27571 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 27572 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 27573 | s&@INSTALL@&$ac_INSTALL&;t t |
| 27574 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27575 | " $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] | 27576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27577 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 27578 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 27579 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27580 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27581 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27582 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27583 | which seems to be undefined. Please make sure it is defined." >&2;} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27585 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27586 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27587 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 27588 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 27589 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27590 | ;; |
| 27591 | :H) |
| 27592 | # |
| 27593 | # CONFIG_HEADER |
| 27594 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27595 | _ACEOF |
| 27596 | |
| 27597 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 27598 | # substitutes the proper values into config.h.in to produce config.h. |
| 27599 | rm -f conftest.defines conftest.tail |
| 27600 | # First, append a space to every undef/define line, to ease matching. |
| 27601 | echo 's/$/ /' >conftest.defines |
| 27602 | # Then, protect against being on the right side of a sed subst, or in |
| 27603 | # an unquoted here document, in config.status. If some macros were |
| 27604 | # called several times there might be several #defines for the same |
| 27605 | # symbol, which is useless. But do not sort them, since the last |
| 27606 | # AC_DEFINE must be honored. |
| 27607 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 27608 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 27609 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 27610 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 27611 | # just an empty string. |
| 27612 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 27613 | ac_dB='\\)[ (].*,\\1define\\2' |
| 27614 | ac_dC=' ' |
| 27615 | ac_dD=' ,' |
| 27616 | |
| 27617 | uniq confdefs.h | |
| 27618 | sed -n ' |
| 27619 | t rset |
| 27620 | :rset |
| 27621 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 27622 | t ok |
| 27623 | d |
| 27624 | :ok |
| 27625 | s/[\\&,]/\\&/g |
| 27626 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 27627 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 27628 | ' >>conftest.defines |
| 27629 | |
| 27630 | # Remove the space that was appended to ease matching. |
| 27631 | # Then replace #undef with comments. This is necessary, for |
| 27632 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 27633 | # on some systems where configure will not decide to define it. |
| 27634 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 27635 | echo 's/ $// |
| 27636 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 27637 | |
| 27638 | # Break up conftest.defines: |
| 27639 | ac_max_sed_lines=50 |
| 27640 | |
| 27641 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 27642 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 27643 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 27644 | # et cetera. |
| 27645 | ac_in='$ac_file_inputs' |
| 27646 | ac_out='"$tmp/out1"' |
| 27647 | ac_nxt='"$tmp/out2"' |
| 27648 | |
| 27649 | while : |
| 27650 | do |
| 27651 | # Write a here document: |
| 27652 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27653 | # First, check the format of the line: |
| 27654 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 27655 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 27656 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 27657 | b |
| 27658 | :def |
| 27659 | _ACEOF |
| 27660 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 27661 | echo 'CEOF |
| 27662 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 27663 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 27664 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 27665 | grep . conftest.tail >/dev/null || break |
| 27666 | rm -f conftest.defines |
| 27667 | mv conftest.tail conftest.defines |
| 27668 | done |
| 27669 | rm -f conftest.defines conftest.tail |
| 27670 | |
| 27671 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 27672 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27673 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27674 | echo "/* $configure_input */" >"$tmp/config.h" |
| 27675 | cat "$ac_result" >>"$tmp/config.h" |
| 27676 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 27677 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 27678 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27679 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27680 | rm -f $ac_file |
| 27681 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27682 | fi |
| 27683 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27684 | echo "/* $configure_input */" |
| 27685 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27686 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27687 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27688 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 27689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27690 | |
| 27691 | esac |
| 27692 | |
| 27693 | done # for ac_tag |
| 27694 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27696 | { (exit 0); exit 0; } |
| 27697 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27698 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27699 | ac_clean_files=$ac_clean_files_save |
| 27700 | |
| 27701 | |
| 27702 | # configure is writing to config.log, and then calls config.status. |
| 27703 | # config.status does its own redirection, appending to config.log. |
| 27704 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27705 | # by configure, so config.status won't be able to write to it; its |
| 27706 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27707 | # effectively closing config.log, so it can be properly (re)opened and |
| 27708 | # appended to by config.status. When coming back to configure, we |
| 27709 | # need to make the FD available again. |
| 27710 | if test "$no_create" != yes; then |
| 27711 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27712 | ac_config_status_args= |
| 27713 | test "$silent" = yes && |
| 27714 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27715 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27716 | $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] | 27717 | exec 5>>config.log |
| 27718 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27719 | # would make configure fail if this is the last instruction. |
| 27720 | $ac_cs_success || { (exit 1); exit 1; } |
| 27721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27722 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27723 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 27724 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27725 | if test ! -f Modules/Setup |
| 27726 | then |
| 27727 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 27728 | fi |
| 27729 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 27730 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27731 | if test ! -f Modules/Setup.local |
| 27732 | then |
| 27733 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 27734 | fi |
| 27735 | |
| 27736 | echo "creating Makefile" |
| 27737 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 27738 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 27739 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27740 | |
| 27741 | case $ac_sys_system in |
| 27742 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27743 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27744 | |
| 27745 | Support for BeOS is deprecated as of Python 2.6. |
| 27746 | See PEP 11 for the gory details. |
| 27747 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27748 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27749 | |
| 27750 | Support for BeOS is deprecated as of Python 2.6. |
| 27751 | See PEP 11 for the gory details. |
| 27752 | " >&2;} |
| 27753 | ;; |
| 27754 | *) ;; |
| 27755 | esac |
| 27756 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 27757 | mv config.c Modules |