Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 77189 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 661 | LIPO_32BIT_FLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORK |
| 663 | PYTHONFRAMEWORKIDENTIFIER |
| 664 | PYTHONFRAMEWORKDIR |
| 665 | PYTHONFRAMEWORKPREFIX |
| 666 | PYTHONFRAMEWORKINSTALLDIR |
| 667 | FRAMEWORKINSTALLFIRST |
| 668 | FRAMEWORKINSTALLLAST |
| 669 | FRAMEWORKALTINSTALLFIRST |
| 670 | FRAMEWORKALTINSTALLLAST |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
| 672 | MACHDEP |
| 673 | SGI_ABI |
| 674 | EXTRAPLATDIR |
| 675 | EXTRAMACHDEPPATH |
| 676 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 677 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 678 | CC |
| 679 | CFLAGS |
| 680 | LDFLAGS |
| 681 | CPPFLAGS |
| 682 | ac_ct_CC |
| 683 | EXEEXT |
| 684 | OBJEXT |
| 685 | CXX |
| 686 | MAINCC |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | BUILDEXEEXT |
| 691 | LIBRARY |
| 692 | LDLIBRARY |
| 693 | DLLLIBRARY |
| 694 | BLDLIBRARY |
| 695 | LDLIBRARYDIR |
| 696 | INSTSONAME |
| 697 | RUNSHARED |
| 698 | LINKCC |
| 699 | GNULD |
| 700 | RANLIB |
| 701 | AR |
| 702 | ARFLAGS |
| 703 | SVNVERSION |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | LN |
| 708 | OPT |
| 709 | BASECFLAGS |
| 710 | UNIVERSAL_ARCH_FLAGS |
| 711 | OTHER_LIBTOOL_OPT |
| 712 | LIBTOOL_CRUFT |
| 713 | SO |
| 714 | LDSHARED |
| 715 | BLDSHARED |
| 716 | CCSHARED |
| 717 | LINKFORSHARED |
| 718 | CFLAGSFORSHARED |
| 719 | SHLIBS |
| 720 | USE_SIGNAL_MODULE |
| 721 | SIGNAL_OBJS |
| 722 | USE_THREAD_MODULE |
| 723 | LDLAST |
| 724 | THREADOBJ |
| 725 | DLINCLDIR |
| 726 | DYNLOADFILE |
| 727 | MACHDEP_OBJS |
| 728 | TRUE |
| 729 | LIBOBJS |
| 730 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 731 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 732 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 733 | HAVE_GETHOSTBYNAME_R |
| 734 | HAVE_GETHOSTBYNAME |
| 735 | LIBM |
| 736 | LIBC |
| 737 | UNICODE_OBJS |
| 738 | THREADHEADERS |
| 739 | SRCDIRS |
| 740 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 741 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 742 | ac_precious_vars='build_alias |
| 743 | host_alias |
| 744 | target_alias |
| 745 | CC |
| 746 | CFLAGS |
| 747 | LDFLAGS |
| 748 | LIBS |
| 749 | CPPFLAGS |
| 750 | CPP' |
| 751 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 752 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 753 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 754 | ac_init_help= |
| 755 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 756 | # The variables have the same names as the options, with |
| 757 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 758 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 759 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 760 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | no_recursion= |
| 762 | prefix=NONE |
| 763 | program_prefix=NONE |
| 764 | program_suffix=NONE |
| 765 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 766 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 767 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 769 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 770 | x_includes=NONE |
| 771 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 772 | |
| 773 | # Installation directory options. |
| 774 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 775 | # and all the variables that are supposed to be based on exec_prefix |
| 776 | # by default will actually change. |
| 777 | # 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] | 778 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 779 | bindir='${exec_prefix}/bin' |
| 780 | sbindir='${exec_prefix}/sbin' |
| 781 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 782 | datarootdir='${prefix}/share' |
| 783 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 784 | sysconfdir='${prefix}/etc' |
| 785 | sharedstatedir='${prefix}/com' |
| 786 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 787 | includedir='${prefix}/include' |
| 788 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 789 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 790 | infodir='${datarootdir}/info' |
| 791 | htmldir='${docdir}' |
| 792 | dvidir='${docdir}' |
| 793 | pdfdir='${docdir}' |
| 794 | psdir='${docdir}' |
| 795 | libdir='${exec_prefix}/lib' |
| 796 | localedir='${datarootdir}/locale' |
| 797 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 798 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 799 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 800 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 802 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | # If the previous option needs an argument, assign it. |
| 804 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 805 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 806 | ac_prev= |
| 807 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 808 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 809 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 810 | case $ac_option in |
| 811 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 812 | *) ac_optarg=yes ;; |
| 813 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 814 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 815 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 816 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 817 | case $ac_dashdash$ac_option in |
| 818 | --) |
| 819 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 820 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 821 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 822 | ac_prev=bindir ;; |
| 823 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 824 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | |
| 826 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 827 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 828 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 830 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 831 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 832 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 833 | ac_prev=cache_file ;; |
| 834 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 835 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 836 | cache_file=$ac_optarg ;; |
| 837 | |
| 838 | --config-cache | -C) |
| 839 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 840 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 841 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 842 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 843 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 844 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 845 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 846 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 847 | | --dataroo | --dataro | --datar) |
| 848 | ac_prev=datarootdir ;; |
| 849 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 850 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 851 | datarootdir=$ac_optarg ;; |
| 852 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 853 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 854 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 855 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 856 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 857 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 858 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 859 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 860 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 861 | |
| 862 | -docdir | --docdir | --docdi | --doc | --do) |
| 863 | ac_prev=docdir ;; |
| 864 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 865 | docdir=$ac_optarg ;; |
| 866 | |
| 867 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 868 | ac_prev=dvidir ;; |
| 869 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 870 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 871 | |
| 872 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 873 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 875 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 876 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 877 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 878 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 879 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 881 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 882 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 883 | | --exec | --exe | --ex) |
| 884 | ac_prev=exec_prefix ;; |
| 885 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 886 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 887 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 888 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 889 | |
| 890 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 891 | # Obsolete; use --with-gas. |
| 892 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 894 | -help | --help | --hel | --he | -h) |
| 895 | ac_init_help=long ;; |
| 896 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 897 | ac_init_help=recursive ;; |
| 898 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 899 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | |
| 901 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 902 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 906 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 907 | ac_prev=htmldir ;; |
| 908 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 909 | | --ht=*) |
| 910 | htmldir=$ac_optarg ;; |
| 911 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 912 | -includedir | --includedir | --includedi | --included | --include \ |
| 913 | | --includ | --inclu | --incl | --inc) |
| 914 | ac_prev=includedir ;; |
| 915 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 916 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 917 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 918 | |
| 919 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 920 | ac_prev=infodir ;; |
| 921 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 922 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 923 | |
| 924 | -libdir | --libdir | --libdi | --libd) |
| 925 | ac_prev=libdir ;; |
| 926 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 927 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 928 | |
| 929 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 930 | | --libexe | --libex | --libe) |
| 931 | ac_prev=libexecdir ;; |
| 932 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 933 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 934 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 936 | -localedir | --localedir | --localedi | --localed | --locale) |
| 937 | ac_prev=localedir ;; |
| 938 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 939 | localedir=$ac_optarg ;; |
| 940 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 942 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | ac_prev=localstatedir ;; |
| 944 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 945 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 946 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 | |
| 948 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 949 | ac_prev=mandir ;; |
| 950 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 952 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | # Obsolete; use --without-fp. |
| 955 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 956 | |
| 957 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 958 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 959 | no_create=yes ;; |
| 960 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 961 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 962 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 963 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 965 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 966 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 967 | | --oldin | --oldi | --old | --ol | --o) |
| 968 | ac_prev=oldincludedir ;; |
| 969 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 970 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 971 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 972 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 973 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 974 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 975 | ac_prev=prefix ;; |
| 976 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 978 | |
| 979 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 980 | | --program-pre | --program-pr | --program-p) |
| 981 | ac_prev=program_prefix ;; |
| 982 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 983 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 984 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 985 | |
| 986 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 987 | | --program-suf | --program-su | --program-s) |
| 988 | ac_prev=program_suffix ;; |
| 989 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 990 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 992 | |
| 993 | -program-transform-name | --program-transform-name \ |
| 994 | | --program-transform-nam | --program-transform-na \ |
| 995 | | --program-transform-n | --program-transform- \ |
| 996 | | --program-transform | --program-transfor \ |
| 997 | | --program-transfo | --program-transf \ |
| 998 | | --program-trans | --program-tran \ |
| 999 | | --progr-tra | --program-tr | --program-t) |
| 1000 | ac_prev=program_transform_name ;; |
| 1001 | -program-transform-name=* | --program-transform-name=* \ |
| 1002 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1003 | | --program-transform-n=* | --program-transform-=* \ |
| 1004 | | --program-transform=* | --program-transfor=* \ |
| 1005 | | --program-transfo=* | --program-transf=* \ |
| 1006 | | --program-trans=* | --program-tran=* \ |
| 1007 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1010 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1011 | ac_prev=pdfdir ;; |
| 1012 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1013 | pdfdir=$ac_optarg ;; |
| 1014 | |
| 1015 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1016 | ac_prev=psdir ;; |
| 1017 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1018 | psdir=$ac_optarg ;; |
| 1019 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1020 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1021 | | -silent | --silent | --silen | --sile | --sil) |
| 1022 | silent=yes ;; |
| 1023 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1024 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1025 | ac_prev=sbindir ;; |
| 1026 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1027 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 | |
| 1030 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1031 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1032 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1033 | | --sha | --sh) |
| 1034 | ac_prev=sharedstatedir ;; |
| 1035 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1036 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1037 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1038 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1039 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1040 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1041 | -site | --site | --sit) |
| 1042 | ac_prev=site ;; |
| 1043 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1045 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1047 | ac_prev=srcdir ;; |
| 1048 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1052 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1053 | ac_prev=sysconfdir ;; |
| 1054 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1055 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1057 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1058 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1061 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | |
| 1063 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1064 | verbose=yes ;; |
| 1065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1066 | -version | --version | --versio | --versi | --vers | -V) |
| 1067 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1068 | |
| 1069 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1070 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1071 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1072 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1073 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1074 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1075 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1076 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1077 | |
| 1078 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1079 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1080 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1081 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1082 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1084 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1085 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1087 | --x) |
| 1088 | # Obsolete; use --with-x. |
| 1089 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1090 | |
| 1091 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1092 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1093 | ac_prev=x_includes ;; |
| 1094 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1095 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 | |
| 1098 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1099 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1100 | ac_prev=x_libraries ;; |
| 1101 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1102 | | --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] | 1103 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1104 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1105 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | Try \`$0 --help' for more information." >&2 |
| 1107 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1108 | ;; |
| 1109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 | *=*) |
| 1111 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1112 | # Reject names that are not valid shell variable names. |
| 1113 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1114 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1116 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | export $ac_envvar ;; |
| 1118 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1119 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1121 | 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] | 1122 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1123 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | : ${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] | 1125 | ;; |
| 1126 | |
| 1127 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1128 | done |
| 1129 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1130 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1131 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1132 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | fi |
| 1135 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1136 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1137 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1138 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1139 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1140 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1141 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1142 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1144 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1145 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1147 | { 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] | 1148 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1149 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1151 | # There might be people who depend on the old broken behavior: `$host' |
| 1152 | # used to hold the argument of --host etc. |
| 1153 | # FIXME: To remove some day. |
| 1154 | build=$build_alias |
| 1155 | host=$host_alias |
| 1156 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1158 | # FIXME: To remove some day. |
| 1159 | if test "x$host_alias" != x; then |
| 1160 | if test "x$build_alias" = x; then |
| 1161 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1162 | 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] | 1163 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1164 | elif test "x$build_alias" != "x$host_alias"; then |
| 1165 | cross_compiling=yes |
| 1166 | fi |
| 1167 | fi |
| 1168 | |
| 1169 | ac_tool_prefix= |
| 1170 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1171 | |
| 1172 | test "$silent" = yes && exec 6>/dev/null |
| 1173 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1175 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1176 | ac_ls_di=`ls -di .` && |
| 1177 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1178 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1179 | { (exit 1); exit 1; }; } |
| 1180 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1181 | { 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] | 1182 | { (exit 1); exit 1; }; } |
| 1183 | |
| 1184 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1185 | # Find the source files, if location was not specified. |
| 1186 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1188 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1189 | ac_confdir=`$as_dirname -- "$0" || |
| 1190 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1191 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1192 | X"$0" : 'X\(//\)$' \| \ |
| 1193 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1194 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1196 | s//\1/ |
| 1197 | q |
| 1198 | } |
| 1199 | /^X\(\/\/\)[^/].*/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\/\)$/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | /^X\(\/\).*/{ |
| 1208 | s//\1/ |
| 1209 | q |
| 1210 | } |
| 1211 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1212 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1214 | srcdir=.. |
| 1215 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1216 | else |
| 1217 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1218 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1219 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1220 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1221 | { 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] | 1222 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1223 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1224 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1225 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1226 | 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] | 1227 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1228 | pwd)` |
| 1229 | # When building in place, set srcdir=. |
| 1230 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1231 | srcdir=. |
| 1232 | fi |
| 1233 | # Remove unnecessary trailing slashes from srcdir. |
| 1234 | # Double slashes in file names in object file debugging info |
| 1235 | # mess up M-x gdb in Emacs. |
| 1236 | case $srcdir in |
| 1237 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1238 | esac |
| 1239 | for ac_var in $ac_precious_vars; do |
| 1240 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1241 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1242 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1243 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1244 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 | # |
| 1247 | # Report the --help message. |
| 1248 | # |
| 1249 | if test "$ac_init_help" = "long"; then |
| 1250 | # Omit some internal or obsolete options to make the list less imposing. |
| 1251 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1252 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1253 | \`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] | 1254 | |
| 1255 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1256 | |
| 1257 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1258 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1259 | |
| 1260 | Defaults for the options are specified in brackets. |
| 1261 | |
| 1262 | Configuration: |
| 1263 | -h, --help display this help and exit |
| 1264 | --help=short display options specific to this package |
| 1265 | --help=recursive display the short help of all the included packages |
| 1266 | -V, --version display version information and exit |
| 1267 | -q, --quiet, --silent do not print \`checking...' messages |
| 1268 | --cache-file=FILE cache test results in FILE [disabled] |
| 1269 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1270 | -n, --no-create do not create output files |
| 1271 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | Installation directories: |
| 1274 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1275 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1276 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1277 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | |
| 1279 | By default, \`make install' will install all the files in |
| 1280 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1281 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1282 | for instance \`--prefix=\$HOME'. |
| 1283 | |
| 1284 | For better control, use the options below. |
| 1285 | |
| 1286 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1287 | --bindir=DIR user executables [EPREFIX/bin] |
| 1288 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1289 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1290 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1291 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1292 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1293 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1294 | --includedir=DIR C header files [PREFIX/include] |
| 1295 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1296 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1297 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1298 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1299 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1300 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1301 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1302 | --htmldir=DIR html documentation [DOCDIR] |
| 1303 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1304 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1305 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | _ACEOF |
| 1307 | |
| 1308 | cat <<\_ACEOF |
| 1309 | _ACEOF |
| 1310 | fi |
| 1311 | |
| 1312 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1313 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1314 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1315 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | cat <<\_ACEOF |
| 1317 | |
| 1318 | Optional Features: |
| 1319 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1320 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1321 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1322 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1323 | --enable-framework[=INSTALLDIR] |
| 1324 | Build (MacOSX|Darwin) framework |
| 1325 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1326 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1327 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1328 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1329 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1330 | --enable-big-digits[=BITS] |
| 1331 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1332 | --enable-unicode[=ucs[24]] |
| 1333 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1334 | |
| 1335 | Optional Packages: |
| 1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1338 | --with-universal-archs=ARCH |
| 1339 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1340 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1341 | --with-framework-name=FRAMEWORK |
| 1342 | specify an alternate name of the framework built |
| 1343 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1344 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1345 | --with-cxx-main=<compiler> |
| 1346 | compile main() and link python executable with C++ |
| 1347 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1348 | --with-suffix=.exe set executable suffix |
| 1349 | --with-pydebug build with Py_DEBUG defined |
| 1350 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1351 | --with-system-expat build pyexpat module using an installed expat |
| 1352 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1353 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1354 | --with-dbmliborder=db1:db2:... |
| 1355 | order to check db backends for dbm. Valid value is a |
| 1356 | colon separated string with the backend names |
| 1357 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1358 | --with-signal-module disable/enable signal module |
| 1359 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1360 | --with(out)-threads[=DIRECTORY] |
| 1361 | disable/enable thread support |
| 1362 | --with(out)-thread[=DIRECTORY] |
| 1363 | deprecated; use --with(out)-threads |
| 1364 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1365 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1366 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1367 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1368 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1369 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1370 | --with-fpectl enable SIGFPE catching |
| 1371 | --with-libm=STRING math library |
| 1372 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | |
| 1374 | Some influential environment variables: |
| 1375 | CC C compiler command |
| 1376 | CFLAGS C compiler flags |
| 1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1378 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1379 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1381 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1382 | CPP C preprocessor |
| 1383 | |
| 1384 | Use these variables to override the choices made by `configure' or to help |
| 1385 | it to find libraries and programs with nonstandard names/locations. |
| 1386 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1387 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1388 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1389 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | fi |
| 1391 | |
| 1392 | if test "$ac_init_help" = "recursive"; then |
| 1393 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | 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] | 1395 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | ac_builddir=. |
| 1397 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1398 | case "$ac_dir" in |
| 1399 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1400 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1401 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1402 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1403 | 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] | 1404 | case $ac_top_builddir_sub in |
| 1405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1407 | esac ;; |
| 1408 | esac |
| 1409 | ac_abs_top_builddir=$ac_pwd |
| 1410 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1411 | # for backward compatibility: |
| 1412 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | |
| 1414 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1415 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | ac_top_srcdir=$ac_top_builddir_sub |
| 1418 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1419 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1421 | ac_top_srcdir=$srcdir |
| 1422 | ac_abs_top_srcdir=$srcdir ;; |
| 1423 | *) # Relative name. |
| 1424 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1425 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1426 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1428 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1429 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1431 | # Check for guested configure. |
| 1432 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1433 | echo && |
| 1434 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1435 | elif test -f "$ac_srcdir/configure"; then |
| 1436 | echo && |
| 1437 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1439 | 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] | 1440 | fi || ac_status=$? |
| 1441 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | done |
| 1443 | fi |
| 1444 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1445 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | if $ac_init_version; then |
| 1447 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1448 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1449 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1451 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1452 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | This configure script is free software; the Free Software Foundation |
| 1454 | gives unlimited permission to copy, distribute and modify it. |
| 1455 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1456 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | This file contains any messages produced by compilers while |
| 1460 | running configure, to aid debugging if configure makes a mistake. |
| 1461 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1462 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1463 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | |
| 1465 | $ $0 $@ |
| 1466 | |
| 1467 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1468 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1469 | { |
| 1470 | cat <<_ASUNAME |
| 1471 | ## --------- ## |
| 1472 | ## Platform. ## |
| 1473 | ## --------- ## |
| 1474 | |
| 1475 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1476 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1477 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1478 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1479 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1480 | |
| 1481 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1482 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1483 | |
| 1484 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1486 | /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] | 1487 | /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] | 1488 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1489 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1490 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1491 | |
| 1492 | _ASUNAME |
| 1493 | |
| 1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1495 | for as_dir in $PATH |
| 1496 | do |
| 1497 | IFS=$as_save_IFS |
| 1498 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1499 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1501 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | |
| 1503 | } >&5 |
| 1504 | |
| 1505 | cat >&5 <<_ACEOF |
| 1506 | |
| 1507 | |
| 1508 | ## ----------- ## |
| 1509 | ## Core tests. ## |
| 1510 | ## ----------- ## |
| 1511 | |
| 1512 | _ACEOF |
| 1513 | |
| 1514 | |
| 1515 | # Keep a trace of the command line. |
| 1516 | # 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] | 1517 | # 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] | 1518 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | ac_configure_args0= |
| 1522 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | ac_must_keep_next=false |
| 1524 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1526 | for ac_arg |
| 1527 | do |
| 1528 | case $ac_arg in |
| 1529 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1530 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1531 | | -silent | --silent | --silen | --sile | --sil) |
| 1532 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1533 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1534 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1535 | esac |
| 1536 | case $ac_pass in |
| 1537 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1538 | 2) |
| 1539 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1540 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1541 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1542 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1543 | case $ac_arg in |
| 1544 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1545 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1546 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1547 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1548 | case "$ac_configure_args0 " in |
| 1549 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1550 | esac |
| 1551 | ;; |
| 1552 | -* ) ac_must_keep_next=true ;; |
| 1553 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1554 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1555 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | ;; |
| 1557 | esac |
| 1558 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1559 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1560 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1561 | $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] | 1562 | |
| 1563 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1564 | # config.log. We remove comments because anyway the quotes in there |
| 1565 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1566 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1567 | # 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] | 1568 | trap 'exit_status=$? |
| 1569 | # Save into config.log some information that might help in debugging. |
| 1570 | { |
| 1571 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1573 | cat <<\_ASBOX |
| 1574 | ## ---------------- ## |
| 1575 | ## Cache variables. ## |
| 1576 | ## ---------------- ## |
| 1577 | _ASBOX |
| 1578 | echo |
| 1579 | # 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] | 1580 | ( |
| 1581 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1582 | eval ac_val=\$$ac_var |
| 1583 | case $ac_val in #( |
| 1584 | *${as_nl}*) |
| 1585 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1586 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1587 | 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] | 1588 | esac |
| 1589 | case $ac_var in #( |
| 1590 | _ | IFS | as_nl) ;; #( |
| 1591 | *) $as_unset $ac_var ;; |
| 1592 | esac ;; |
| 1593 | esac |
| 1594 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1596 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1597 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1600 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1601 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1602 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1604 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1605 | esac | |
| 1606 | sort |
| 1607 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1609 | |
| 1610 | cat <<\_ASBOX |
| 1611 | ## ----------------- ## |
| 1612 | ## Output variables. ## |
| 1613 | ## ----------------- ## |
| 1614 | _ASBOX |
| 1615 | echo |
| 1616 | for ac_var in $ac_subst_vars |
| 1617 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1618 | eval ac_val=\$$ac_var |
| 1619 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1620 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1621 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1622 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1623 | done | sort |
| 1624 | echo |
| 1625 | |
| 1626 | if test -n "$ac_subst_files"; then |
| 1627 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1628 | ## ------------------- ## |
| 1629 | ## File substitutions. ## |
| 1630 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1631 | _ASBOX |
| 1632 | echo |
| 1633 | for ac_var in $ac_subst_files |
| 1634 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1635 | eval ac_val=\$$ac_var |
| 1636 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1637 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1639 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1640 | done | sort |
| 1641 | echo |
| 1642 | fi |
| 1643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1644 | if test -s confdefs.h; then |
| 1645 | cat <<\_ASBOX |
| 1646 | ## ----------- ## |
| 1647 | ## confdefs.h. ## |
| 1648 | ## ----------- ## |
| 1649 | _ASBOX |
| 1650 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1651 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | echo |
| 1653 | fi |
| 1654 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1655 | echo "$as_me: caught signal $ac_signal" |
| 1656 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1657 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1658 | rm -f core *.core core.conftest.* && |
| 1659 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1660 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1661 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | for ac_signal in 1 2 13 15; do |
| 1663 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1664 | done |
| 1665 | ac_signal=0 |
| 1666 | |
| 1667 | # 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] | 1668 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | |
| 1670 | # Predefined preprocessor variables. |
| 1671 | |
| 1672 | cat >>confdefs.h <<_ACEOF |
| 1673 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1674 | _ACEOF |
| 1675 | |
| 1676 | |
| 1677 | cat >>confdefs.h <<_ACEOF |
| 1678 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1679 | _ACEOF |
| 1680 | |
| 1681 | |
| 1682 | cat >>confdefs.h <<_ACEOF |
| 1683 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1684 | _ACEOF |
| 1685 | |
| 1686 | |
| 1687 | cat >>confdefs.h <<_ACEOF |
| 1688 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1689 | _ACEOF |
| 1690 | |
| 1691 | |
| 1692 | cat >>confdefs.h <<_ACEOF |
| 1693 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1694 | _ACEOF |
| 1695 | |
| 1696 | |
| 1697 | # 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] | 1698 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1699 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1701 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1702 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1704 | set x "$ac_default_prefix/share/config.site" \ |
| 1705 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1707 | shift |
| 1708 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1709 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1711 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1712 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1713 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1714 | . "$ac_site_file" |
| 1715 | fi |
| 1716 | done |
| 1717 | |
| 1718 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1719 | # Some versions of bash will fail to source /dev/null (special |
| 1720 | # files actually), so we avoid doing that. |
| 1721 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1722 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1723 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1724 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1725 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1726 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | esac |
| 1728 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1729 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1730 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1731 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | >$cache_file |
| 1733 | fi |
| 1734 | |
| 1735 | # Check that the precious variables saved in the cache have kept the same |
| 1736 | # value. |
| 1737 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1738 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1740 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1741 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1742 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | case $ac_old_set,$ac_new_set in |
| 1744 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1746 | 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] | 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1749 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1750 | 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] | 1751 | ac_cache_corrupted=: ;; |
| 1752 | ,);; |
| 1753 | *) |
| 1754 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1755 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1756 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1757 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1758 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1759 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1760 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1761 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1762 | fi;; |
| 1763 | esac |
| 1764 | # Pass precious variables to config.status. |
| 1765 | if test "$ac_new_set" = set; then |
| 1766 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1767 | *\'*) 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] | 1768 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1769 | esac |
| 1770 | case " $ac_configure_args " in |
| 1771 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1772 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1773 | esac |
| 1774 | fi |
| 1775 | done |
| 1776 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1777 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1778 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1779 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1780 | 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] | 1781 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1782 | fi |
| 1783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1808 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1814 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1816 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | |
| 1818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1820 | if test "$prefix" != "/"; then |
| 1821 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1822 | fi |
| 1823 | |
| 1824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1825 | |
| 1826 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1827 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1828 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1829 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1830 | # with other autoconf-based packages that include Python.h |
| 1831 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1832 | rm confdefs.h |
| 1833 | mv confdefs.h.new confdefs.h |
| 1834 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1835 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1836 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1837 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1838 | |
| 1839 | SOVERSION=1.0 |
| 1840 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1841 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1842 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1843 | |
| 1844 | cat >>confdefs.h <<\_ACEOF |
| 1845 | #define _GNU_SOURCE 1 |
| 1846 | _ACEOF |
| 1847 | |
| 1848 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1849 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1850 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1851 | # them. |
| 1852 | |
| 1853 | cat >>confdefs.h <<\_ACEOF |
| 1854 | #define _NETBSD_SOURCE 1 |
| 1855 | _ACEOF |
| 1856 | |
| 1857 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1858 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1859 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1860 | # them. |
| 1861 | |
| 1862 | cat >>confdefs.h <<\_ACEOF |
| 1863 | #define __BSD_VISIBLE 1 |
| 1864 | _ACEOF |
| 1865 | |
| 1866 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1867 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1868 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1869 | |
| 1870 | cat >>confdefs.h <<\_ACEOF |
| 1871 | #define _BSD_TYPES 1 |
| 1872 | _ACEOF |
| 1873 | |
| 1874 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1875 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1876 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1877 | # them. |
| 1878 | |
| 1879 | cat >>confdefs.h <<\_ACEOF |
| 1880 | #define _DARWIN_C_SOURCE 1 |
| 1881 | _ACEOF |
| 1882 | |
| 1883 | |
| 1884 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1885 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1886 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1887 | # Arguments passed to configure. |
| 1888 | |
| 1889 | CONFIG_ARGS="$ac_configure_args" |
| 1890 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1891 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1892 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1893 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1894 | case $enableval in |
| 1895 | yes) |
| 1896 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1897 | ;; |
| 1898 | esac |
| 1899 | case $enableval in |
| 1900 | no) |
| 1901 | UNIVERSALSDK= |
| 1902 | enable_universalsdk= |
| 1903 | ;; |
| 1904 | *) |
| 1905 | UNIVERSALSDK=$enableval |
| 1906 | ;; |
| 1907 | esac |
| 1908 | |
| 1909 | else |
| 1910 | |
| 1911 | UNIVERSALSDK= |
| 1912 | enable_universalsdk= |
| 1913 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1914 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1915 | |
| 1916 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1917 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1918 | |
| 1919 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1920 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1921 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1922 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1923 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1924 | |
| 1925 | # Check whether --with-universal-archs was given. |
| 1926 | if test "${with_universal_archs+set}" = set; then |
| 1927 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1928 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1929 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1930 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1931 | if test "${enable_universalsdk}" ; then |
| 1932 | : |
| 1933 | else |
| 1934 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1935 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1936 | { (exit 1); exit 1; }; } |
| 1937 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1938 | |
| 1939 | else |
| 1940 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1941 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1942 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1943 | |
| 1944 | fi |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1949 | |
| 1950 | # Check whether --with-framework-name was given. |
| 1951 | if test "${with_framework_name+set}" = set; then |
| 1952 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1953 | if test "${enable_framework}"; then |
| 1954 | : |
| 1955 | else |
| 1956 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1957 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1958 | { (exit 1); exit 1; }; } |
| 1959 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1960 | PYTHONFRAMEWORK=${withval} |
| 1961 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1962 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1963 | |
| 1964 | else |
| 1965 | |
| 1966 | PYTHONFRAMEWORK=Python |
| 1967 | PYTHONFRAMEWORKDIR=Python.framework |
| 1968 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1969 | |
| 1970 | fi |
| 1971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1972 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1973 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1974 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1975 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1976 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1977 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1978 | esac |
| 1979 | case $enableval in |
| 1980 | no) |
| 1981 | PYTHONFRAMEWORK= |
| 1982 | PYTHONFRAMEWORKDIR=no-framework |
| 1983 | PYTHONFRAMEWORKPREFIX= |
| 1984 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1985 | FRAMEWORKINSTALLFIRST= |
| 1986 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1987 | FRAMEWORKALTINSTALLFIRST= |
| 1988 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1989 | if test "x${prefix}" = "xNONE"; then |
| 1990 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1991 | else |
| 1992 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1993 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1994 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1995 | ;; |
| 1996 | *) |
| 1997 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1998 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1999 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2000 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2001 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2002 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2003 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2004 | if test "x${prefix}" = "xNONE" ; then |
| 2005 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2006 | else |
| 2007 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2008 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2009 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2010 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2011 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2012 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2013 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2015 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2017 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2018 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2019 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2020 | |
| 2021 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2022 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2023 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2024 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2026 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2027 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2028 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2029 | PYTHONFRAMEWORKPREFIX= |
| 2030 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2031 | FRAMEWORKINSTALLFIRST= |
| 2032 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2033 | FRAMEWORKALTINSTALLFIRST= |
| 2034 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2035 | if test "x${prefix}" = "xNONE" ; then |
| 2036 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2037 | else |
| 2038 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2039 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2040 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2041 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2042 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2043 | fi |
| 2044 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2049 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2050 | |
| 2051 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2052 | |
| 2053 | |
| 2054 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2055 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2056 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2057 | ## AC_HELP_STRING(--with-dyld, |
| 2058 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2059 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2060 | # Set name for machine-dependent library files |
| 2061 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2063 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2064 | if test -z "$MACHDEP" |
| 2065 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2066 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2067 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2068 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2069 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2070 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2071 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2072 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2073 | ac_md_system=`echo $ac_sys_system | |
| 2074 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2075 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2076 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2077 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2078 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2079 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2080 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2081 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2082 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2083 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2084 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2085 | esac |
| 2086 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2087 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2088 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2089 | # disable features if it is defined, without any means to access these |
| 2090 | # features as extensions. For these systems, we skip the definition of |
| 2091 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2092 | # some feature, make sure there is no alternative way to access this |
| 2093 | # feature. Also, when using wildcards, make sure you have verified the |
| 2094 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2095 | # wildcard, and that the wildcard does not include future systems |
| 2096 | # (which may remove their limitations). |
| 2097 | case $ac_sys_system/$ac_sys_release in |
| 2098 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2099 | # 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] | 2100 | # 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] | 2101 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2102 | define_xopen_source=no |
| 2103 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2104 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2105 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2106 | |
| 2107 | cat >>confdefs.h <<\_ACEOF |
| 2108 | #define _BSD_SOURCE 1 |
| 2109 | _ACEOF |
| 2110 | |
| 2111 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2112 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2113 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2114 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2115 | 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] | 2116 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2117 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2118 | # of union __?sigval. Reported by Stuart Bishop. |
| 2119 | SunOS/5.6) |
| 2120 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2121 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2122 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2123 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2124 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2125 | define_xopen_source=no;; |
| 2126 | # 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] | 2127 | # 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] | 2128 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2129 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2130 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2131 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2132 | FreeBSD/4.*) |
| 2133 | define_xopen_source=no;; |
| 2134 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2135 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2136 | # identifies itself as Darwin/7.* |
| 2137 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2138 | # disables platform specific features beyond repair. |
| 2139 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2140 | # has no effect, don't bother defining them |
| 2141 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2142 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2143 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2144 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2145 | # 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] | 2146 | AIX/4) |
| 2147 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2148 | AIX/5) |
| 2149 | if test `uname -r` -eq 1; then |
| 2150 | define_xopen_source=no |
| 2151 | fi |
| 2152 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2153 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2154 | # defining NI_NUMERICHOST. |
| 2155 | QNX/6.3.2) |
| 2156 | define_xopen_source=no |
| 2157 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2158 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2159 | esac |
| 2160 | |
| 2161 | if test $define_xopen_source = yes |
| 2162 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2163 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2164 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2165 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2166 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2167 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2168 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2169 | |
| 2170 | cat >>confdefs.h <<\_ACEOF |
| 2171 | #define _XOPEN_SOURCE 500 |
| 2172 | _ACEOF |
| 2173 | |
| 2174 | ;; |
| 2175 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2176 | |
| 2177 | cat >>confdefs.h <<\_ACEOF |
| 2178 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2179 | _ACEOF |
| 2180 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2181 | ;; |
| 2182 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2183 | |
| 2184 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2185 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2186 | # several APIs are not declared. Since this is also needed in some |
| 2187 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2188 | # except for Solaris 10, where it must not be defined, |
| 2189 | # as it implies XPG4.2 |
| 2190 | case $ac_sys_system/$ac_sys_release in |
| 2191 | SunOS/5.10) |
| 2192 | ;; |
| 2193 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2194 | |
| 2195 | cat >>confdefs.h <<\_ACEOF |
| 2196 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2197 | _ACEOF |
| 2198 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2199 | ;; |
| 2200 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2201 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2202 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2203 | cat >>confdefs.h <<\_ACEOF |
| 2204 | #define _POSIX_C_SOURCE 200112L |
| 2205 | _ACEOF |
| 2206 | |
| 2207 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2208 | fi |
| 2209 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2210 | # |
| 2211 | # SGI compilers allow the specification of the both the ABI and the |
| 2212 | # ISA on the command line. Depending on the values of these switches, |
| 2213 | # different and often incompatable code will be generated. |
| 2214 | # |
| 2215 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2216 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2217 | # variable is also adjusted. |
| 2218 | # |
| 2219 | |
| 2220 | if test ! -z "$SGI_ABI" |
| 2221 | then |
| 2222 | CC="cc $SGI_ABI" |
| 2223 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2224 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2225 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2226 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2227 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2228 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2229 | # And add extra plat-mac for darwin |
| 2230 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2231 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2232 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2233 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2234 | if test -z "$EXTRAPLATDIR" |
| 2235 | then |
| 2236 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2237 | darwin) |
| 2238 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2239 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2240 | ;; |
| 2241 | *) |
| 2242 | EXTRAPLATDIR="" |
| 2243 | EXTRAMACHDEPPATH="" |
| 2244 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2245 | esac |
| 2246 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2247 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2248 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2249 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2250 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2251 | # it may influence the way we can build extensions, so distutils |
| 2252 | # needs to check it |
| 2253 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2254 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2255 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2256 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2257 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2258 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2259 | 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] | 2260 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2261 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2262 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2263 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2264 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2265 | |
| 2266 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2267 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2268 | # just to get things to compile and link. Users are free to override OPT |
| 2269 | # when running configure or make. The build should not break if they do. |
| 2270 | # BASECFLAGS should generally not be messed with, however. |
| 2271 | |
| 2272 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2273 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2274 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2275 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2276 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2277 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2278 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2279 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2280 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2281 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2282 | without_gcc=yes;; |
| 2283 | yes) CC=gcc |
| 2284 | without_gcc=no;; |
| 2285 | *) CC=$withval |
| 2286 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2287 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2289 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2290 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2291 | AIX*) CC=cc_r |
| 2292 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2293 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2294 | case $BE_HOST_CPU in |
| 2295 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2296 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2297 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2298 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2299 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2300 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2301 | ;; |
| 2302 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2303 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2304 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2305 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2306 | ;; |
| 2307 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2308 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2309 | 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] | 2310 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2311 | ;; |
| 2312 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2313 | AR="\$(srcdir)/Modules/ar_beos" |
| 2314 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2315 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2316 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2317 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2318 | fi |
| 2319 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2320 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2321 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2322 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2323 | # If the user switches compilers, we can't believe the cache |
| 2324 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2325 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2326 | { { 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] | 2327 | (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] | 2328 | 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] | 2329 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2330 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2331 | fi |
| 2332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | ac_ext=c |
| 2334 | ac_cpp='$CPP $CPPFLAGS' |
| 2335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2338 | if test -n "$ac_tool_prefix"; then |
| 2339 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2340 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2345 | else |
| 2346 | if test -n "$CC"; then |
| 2347 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2350 | for as_dir in $PATH |
| 2351 | do |
| 2352 | IFS=$as_save_IFS |
| 2353 | test -z "$as_dir" && as_dir=. |
| 2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2355 | 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] | 2356 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2357 | 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] | 2358 | break 2 |
| 2359 | fi |
| 2360 | done |
| 2361 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2362 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2363 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2364 | fi |
| 2365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2367 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2368 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2369 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2372 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2373 | fi |
| 2374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | fi |
| 2377 | if test -z "$ac_cv_prog_CC"; then |
| 2378 | ac_ct_CC=$CC |
| 2379 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2380 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2385 | else |
| 2386 | if test -n "$ac_ct_CC"; then |
| 2387 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2388 | else |
| 2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2390 | for as_dir in $PATH |
| 2391 | do |
| 2392 | IFS=$as_save_IFS |
| 2393 | test -z "$as_dir" && as_dir=. |
| 2394 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2395 | 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] | 2396 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2397 | 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] | 2398 | break 2 |
| 2399 | fi |
| 2400 | done |
| 2401 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2402 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2403 | |
| 2404 | fi |
| 2405 | fi |
| 2406 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2407 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2408 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2409 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2410 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2412 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | fi |
| 2414 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2415 | if test "x$ac_ct_CC" = x; then |
| 2416 | CC="" |
| 2417 | else |
| 2418 | case $cross_compiling:$ac_tool_warned in |
| 2419 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2420 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2421 | whose name does not start with the host triplet. If you think this |
| 2422 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2423 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2424 | whose name does not start with the host triplet. If you think this |
| 2425 | 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] | 2426 | ac_tool_warned=yes ;; |
| 2427 | esac |
| 2428 | CC=$ac_ct_CC |
| 2429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | else |
| 2431 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2434 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2435 | if test -n "$ac_tool_prefix"; then |
| 2436 | # 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] | 2437 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2440 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2442 | else |
| 2443 | if test -n "$CC"; then |
| 2444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2447 | for as_dir in $PATH |
| 2448 | do |
| 2449 | IFS=$as_save_IFS |
| 2450 | test -z "$as_dir" && as_dir=. |
| 2451 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2452 | 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] | 2453 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2454 | 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] | 2455 | break 2 |
| 2456 | fi |
| 2457 | done |
| 2458 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2459 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | |
| 2461 | fi |
| 2462 | fi |
| 2463 | CC=$ac_cv_prog_CC |
| 2464 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2466 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2469 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | if test -z "$CC"; then |
| 2476 | # Extract the first word of "cc", so it can be a program name with args. |
| 2477 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2482 | else |
| 2483 | if test -n "$CC"; then |
| 2484 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2485 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2486 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2488 | for as_dir in $PATH |
| 2489 | do |
| 2490 | IFS=$as_save_IFS |
| 2491 | test -z "$as_dir" && as_dir=. |
| 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2493 | 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] | 2494 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2495 | ac_prog_rejected=yes |
| 2496 | continue |
| 2497 | fi |
| 2498 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2499 | 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] | 2500 | break 2 |
| 2501 | fi |
| 2502 | done |
| 2503 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2504 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2506 | if test $ac_prog_rejected = yes; then |
| 2507 | # We found a bogon in the path, so make sure we never use it. |
| 2508 | set dummy $ac_cv_prog_CC |
| 2509 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2511 | # We chose a different compiler from the bogus one. |
| 2512 | # However, it has the same basename, so the bogon will be chosen |
| 2513 | # first if we set CC to just the basename; use the full file name. |
| 2514 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2516 | fi |
| 2517 | fi |
| 2518 | fi |
| 2519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2521 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2522 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2523 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2524 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2525 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2526 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2527 | fi |
| 2528 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | if test -z "$CC"; then |
| 2532 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 | do |
| 2535 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2536 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2541 | else |
| 2542 | if test -n "$CC"; then |
| 2543 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2546 | for as_dir in $PATH |
| 2547 | do |
| 2548 | IFS=$as_save_IFS |
| 2549 | test -z "$as_dir" && as_dir=. |
| 2550 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2551 | 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] | 2552 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2553 | 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] | 2554 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2555 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2556 | done |
| 2557 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2558 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | |
| 2560 | fi |
| 2561 | fi |
| 2562 | CC=$ac_cv_prog_CC |
| 2563 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2564 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2565 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2567 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2568 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2569 | fi |
| 2570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2572 | test -n "$CC" && break |
| 2573 | done |
| 2574 | fi |
| 2575 | if test -z "$CC"; then |
| 2576 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2577 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | do |
| 2579 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2580 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | else |
| 2586 | if test -n "$ac_ct_CC"; then |
| 2587 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2588 | else |
| 2589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2590 | for as_dir in $PATH |
| 2591 | do |
| 2592 | IFS=$as_save_IFS |
| 2593 | test -z "$as_dir" && as_dir=. |
| 2594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2595 | 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] | 2596 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2597 | 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] | 2598 | break 2 |
| 2599 | fi |
| 2600 | done |
| 2601 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2602 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | fi |
| 2605 | fi |
| 2606 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2607 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2609 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2612 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | test -n "$ac_ct_CC" && break |
| 2617 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2619 | if test "x$ac_ct_CC" = x; then |
| 2620 | CC="" |
| 2621 | else |
| 2622 | case $cross_compiling:$ac_tool_warned in |
| 2623 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2624 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2625 | whose name does not start with the host triplet. If you think this |
| 2626 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2627 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2628 | whose name does not start with the host triplet. If you think this |
| 2629 | 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] | 2630 | ac_tool_warned=yes ;; |
| 2631 | esac |
| 2632 | CC=$ac_ct_CC |
| 2633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | fi |
| 2635 | |
| 2636 | fi |
| 2637 | |
| 2638 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2639 | 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] | 2640 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2641 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2642 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2643 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | |
| 2645 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2646 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2647 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2648 | { (ac_try="$ac_compiler --version >&5" |
| 2649 | case "(($ac_try" in |
| 2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2651 | *) ac_try_echo=$ac_try;; |
| 2652 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2657 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2658 | { (ac_try="$ac_compiler -v >&5" |
| 2659 | case "(($ac_try" in |
| 2660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2661 | *) ac_try_echo=$ac_try;; |
| 2662 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2664 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2667 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2668 | { (ac_try="$ac_compiler -V >&5" |
| 2669 | case "(($ac_try" in |
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2671 | *) ac_try_echo=$ac_try;; |
| 2672 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2674 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2675 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 | (exit $ac_status); } |
| 2678 | |
| 2679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2680 | /* confdefs.h. */ |
| 2681 | _ACEOF |
| 2682 | cat confdefs.h >>conftest.$ac_ext |
| 2683 | cat >>conftest.$ac_ext <<_ACEOF |
| 2684 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | int |
| 2687 | main () |
| 2688 | { |
| 2689 | |
| 2690 | ; |
| 2691 | return 0; |
| 2692 | } |
| 2693 | _ACEOF |
| 2694 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2695 | 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] | 2696 | # Try to create an executable without -o first, disregard a.out. |
| 2697 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2698 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2699 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2700 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2701 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2702 | # |
| 2703 | # List of possible output files, starting from the most likely. |
| 2704 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2705 | # only as a last resort. b.out is created by i960 compilers. |
| 2706 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2707 | # |
| 2708 | # The IRIX 6 linker writes into existing files which may not be |
| 2709 | # executable, retaining their permissions. Remove them first so a |
| 2710 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2711 | ac_rmfiles= |
| 2712 | for ac_file in $ac_files |
| 2713 | do |
| 2714 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2715 | *.$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] | 2716 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2717 | esac |
| 2718 | done |
| 2719 | rm -f $ac_rmfiles |
| 2720 | |
| 2721 | if { (ac_try="$ac_link_default" |
| 2722 | case "(($ac_try" in |
| 2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2724 | *) ac_try_echo=$ac_try;; |
| 2725 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2727 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2728 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2730 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2731 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2732 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2733 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2734 | # so that the user can short-circuit this test for compilers unknown to |
| 2735 | # Autoconf. |
| 2736 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2737 | do |
| 2738 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2739 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2740 | *.$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] | 2741 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2742 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2743 | # We found the default executable, but exeext='' is most |
| 2744 | # certainly right. |
| 2745 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2746 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2747 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2748 | then :; else |
| 2749 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2750 | fi |
| 2751 | # We set ac_cv_exeext here because the later test for it is not |
| 2752 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2753 | # argument, so we may need to know it at that point already. |
| 2754 | # Even if this section looks crufty: it has the advantage of |
| 2755 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2756 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2757 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2758 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2759 | esac |
| 2760 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2761 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2762 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2763 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2764 | ac_file='' |
| 2765 | fi |
| 2766 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2767 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2768 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2769 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2773 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2774 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2775 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2776 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2777 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2778 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2782 | # 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] | 2783 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2784 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2785 | 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] | 2786 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2787 | # If not cross compiling, check that we can run a simple program. |
| 2788 | if test "$cross_compiling" != yes; then |
| 2789 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2790 | { (case "(($ac_try" in |
| 2791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2792 | *) ac_try_echo=$ac_try;; |
| 2793 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2795 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | (exit $ac_status); }; }; then |
| 2799 | cross_compiling=no |
| 2800 | else |
| 2801 | if test "$cross_compiling" = maybe; then |
| 2802 | cross_compiling=yes |
| 2803 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2804 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2805 | If you meant to cross compile, use \`--host'. |
| 2806 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2807 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | If you meant to cross compile, use \`--host'. |
| 2809 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | fi |
| 2812 | fi |
| 2813 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2814 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2815 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2816 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2817 | 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] | 2818 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2819 | # 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] | 2820 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2821 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2822 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2823 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2824 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2826 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2827 | 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] | 2828 | if { (ac_try="$ac_link" |
| 2829 | case "(($ac_try" in |
| 2830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2831 | *) ac_try_echo=$ac_try;; |
| 2832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2834 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2835 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2837 | (exit $ac_status); }; then |
| 2838 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2839 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2840 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2841 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2842 | for ac_file in conftest.exe conftest conftest.*; do |
| 2843 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2844 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2845 | *.$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] | 2846 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2847 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2848 | * ) break;; |
| 2849 | esac |
| 2850 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2851 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2852 | { { 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] | 2853 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2854 | 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] | 2855 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2856 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2857 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2859 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2860 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2861 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2862 | |
| 2863 | rm -f conftest.$ac_ext |
| 2864 | EXEEXT=$ac_cv_exeext |
| 2865 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2866 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2867 | 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] | 2868 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2872 | /* confdefs.h. */ |
| 2873 | _ACEOF |
| 2874 | cat confdefs.h >>conftest.$ac_ext |
| 2875 | cat >>conftest.$ac_ext <<_ACEOF |
| 2876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2878 | int |
| 2879 | main () |
| 2880 | { |
| 2881 | |
| 2882 | ; |
| 2883 | return 0; |
| 2884 | } |
| 2885 | _ACEOF |
| 2886 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2887 | if { (ac_try="$ac_compile" |
| 2888 | case "(($ac_try" in |
| 2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2890 | *) ac_try_echo=$ac_try;; |
| 2891 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2893 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2897 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2898 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2899 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2900 | *.$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] | 2901 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2902 | break;; |
| 2903 | esac |
| 2904 | done |
| 2905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2908 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2909 | { { 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] | 2910 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2911 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2912 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2913 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 | fi |
| 2915 | |
| 2916 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2917 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2918 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2919 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 | OBJEXT=$ac_cv_objext |
| 2921 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2922 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2923 | 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] | 2924 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | else |
| 2927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2928 | /* confdefs.h. */ |
| 2929 | _ACEOF |
| 2930 | cat confdefs.h >>conftest.$ac_ext |
| 2931 | cat >>conftest.$ac_ext <<_ACEOF |
| 2932 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | int |
| 2935 | main () |
| 2936 | { |
| 2937 | #ifndef __GNUC__ |
| 2938 | choke me |
| 2939 | #endif |
| 2940 | |
| 2941 | ; |
| 2942 | return 0; |
| 2943 | } |
| 2944 | _ACEOF |
| 2945 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2946 | if { (ac_try="$ac_compile" |
| 2947 | case "(($ac_try" in |
| 2948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2949 | *) ac_try_echo=$ac_try;; |
| 2950 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2952 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2955 | rm -f conftest.er1 |
| 2956 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2958 | (exit $ac_status); } && { |
| 2959 | test -z "$ac_c_werror_flag" || |
| 2960 | test ! -s conftest.err |
| 2961 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2962 | ac_compiler_gnu=yes |
| 2963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2967 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2969 | |
| 2970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2972 | |
| 2973 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2974 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2975 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2976 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | ac_test_CFLAGS=${CFLAGS+set} |
| 2978 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2979 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2980 | 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] | 2981 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2984 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2985 | ac_c_werror_flag=yes |
| 2986 | ac_cv_prog_cc_g=no |
| 2987 | CFLAGS="-g" |
| 2988 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2989 | /* confdefs.h. */ |
| 2990 | _ACEOF |
| 2991 | cat confdefs.h >>conftest.$ac_ext |
| 2992 | cat >>conftest.$ac_ext <<_ACEOF |
| 2993 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2995 | int |
| 2996 | main () |
| 2997 | { |
| 2998 | |
| 2999 | ; |
| 3000 | return 0; |
| 3001 | } |
| 3002 | _ACEOF |
| 3003 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3004 | if { (ac_try="$ac_compile" |
| 3005 | case "(($ac_try" in |
| 3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3007 | *) ac_try_echo=$ac_try;; |
| 3008 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3010 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3013 | rm -f conftest.er1 |
| 3014 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3016 | (exit $ac_status); } && { |
| 3017 | test -z "$ac_c_werror_flag" || |
| 3018 | test ! -s conftest.err |
| 3019 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3020 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3021 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3025 | CFLAGS="" |
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
| 3027 | /* confdefs.h. */ |
| 3028 | _ACEOF |
| 3029 | cat confdefs.h >>conftest.$ac_ext |
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
| 3031 | /* end confdefs.h. */ |
| 3032 | |
| 3033 | int |
| 3034 | main () |
| 3035 | { |
| 3036 | |
| 3037 | ; |
| 3038 | return 0; |
| 3039 | } |
| 3040 | _ACEOF |
| 3041 | rm -f conftest.$ac_objext |
| 3042 | if { (ac_try="$ac_compile" |
| 3043 | case "(($ac_try" in |
| 3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3045 | *) ac_try_echo=$ac_try;; |
| 3046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3048 | (eval "$ac_compile") 2>conftest.er1 |
| 3049 | ac_status=$? |
| 3050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3051 | rm -f conftest.er1 |
| 3052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3054 | (exit $ac_status); } && { |
| 3055 | test -z "$ac_c_werror_flag" || |
| 3056 | test ! -s conftest.err |
| 3057 | } && test -s conftest.$ac_objext; then |
| 3058 | : |
| 3059 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3060 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3062 | |
| 3063 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3064 | CFLAGS="-g" |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
| 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
| 3071 | |
| 3072 | int |
| 3073 | main () |
| 3074 | { |
| 3075 | |
| 3076 | ; |
| 3077 | return 0; |
| 3078 | } |
| 3079 | _ACEOF |
| 3080 | rm -f conftest.$ac_objext |
| 3081 | if { (ac_try="$ac_compile" |
| 3082 | case "(($ac_try" in |
| 3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3084 | *) ac_try_echo=$ac_try;; |
| 3085 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3087 | (eval "$ac_compile") 2>conftest.er1 |
| 3088 | ac_status=$? |
| 3089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3090 | rm -f conftest.er1 |
| 3091 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | (exit $ac_status); } && { |
| 3094 | test -z "$ac_c_werror_flag" || |
| 3095 | test ! -s conftest.err |
| 3096 | } && test -s conftest.$ac_objext; then |
| 3097 | ac_cv_prog_cc_g=yes |
| 3098 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3099 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3101 | |
| 3102 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3103 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3104 | |
| 3105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3106 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3107 | |
| 3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3109 | fi |
| 3110 | |
| 3111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3112 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3113 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3114 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3115 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3116 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3117 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3118 | elif test $ac_cv_prog_cc_g = yes; then |
| 3119 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3120 | CFLAGS="-g -O2" |
| 3121 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3122 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3123 | fi |
| 3124 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3125 | if test "$GCC" = yes; then |
| 3126 | CFLAGS="-O2" |
| 3127 | else |
| 3128 | CFLAGS= |
| 3129 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3130 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3131 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3132 | 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] | 3133 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3135 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3136 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3137 | ac_save_CC=$CC |
| 3138 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | /* confdefs.h. */ |
| 3140 | _ACEOF |
| 3141 | cat confdefs.h >>conftest.$ac_ext |
| 3142 | cat >>conftest.$ac_ext <<_ACEOF |
| 3143 | /* end confdefs.h. */ |
| 3144 | #include <stdarg.h> |
| 3145 | #include <stdio.h> |
| 3146 | #include <sys/types.h> |
| 3147 | #include <sys/stat.h> |
| 3148 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3149 | struct buf { int x; }; |
| 3150 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3151 | static char *e (p, i) |
| 3152 | char **p; |
| 3153 | int i; |
| 3154 | { |
| 3155 | return p[i]; |
| 3156 | } |
| 3157 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3158 | { |
| 3159 | char *s; |
| 3160 | va_list v; |
| 3161 | va_start (v,p); |
| 3162 | s = g (p, va_arg (v,int)); |
| 3163 | va_end (v); |
| 3164 | return s; |
| 3165 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3166 | |
| 3167 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3168 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3169 | 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] | 3170 | 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] | 3171 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3172 | 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] | 3173 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3174 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3176 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3177 | inside strings and character constants. */ |
| 3178 | #define FOO(x) 'x' |
| 3179 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3180 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3181 | int test (int i, double x); |
| 3182 | struct s1 {int (*f) (int a);}; |
| 3183 | struct s2 {int (*f) (double a);}; |
| 3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3185 | int argc; |
| 3186 | char **argv; |
| 3187 | int |
| 3188 | main () |
| 3189 | { |
| 3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3191 | ; |
| 3192 | return 0; |
| 3193 | } |
| 3194 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3195 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3196 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3197 | do |
| 3198 | CC="$ac_save_CC $ac_arg" |
| 3199 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3200 | if { (ac_try="$ac_compile" |
| 3201 | case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3206 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3207 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3209 | rm -f conftest.er1 |
| 3210 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3212 | (exit $ac_status); } && { |
| 3213 | test -z "$ac_c_werror_flag" || |
| 3214 | test ! -s conftest.err |
| 3215 | } && test -s conftest.$ac_objext; then |
| 3216 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3221 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3223 | |
| 3224 | rm -f core conftest.err conftest.$ac_objext |
| 3225 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3226 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3228 | CC=$ac_save_CC |
| 3229 | |
| 3230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3231 | # AC_CACHE_VAL |
| 3232 | case "x$ac_cv_prog_cc_c89" in |
| 3233 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3234 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3235 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3236 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3237 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3238 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3239 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3240 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3241 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3242 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3243 | esac |
| 3244 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3246 | ac_ext=c |
| 3247 | ac_cpp='$CPP $CPPFLAGS' |
| 3248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3251 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3252 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3253 | |
| 3254 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3255 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3256 | 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] | 3257 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3258 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3259 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3260 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3261 | |
| 3262 | case $withval in |
| 3263 | no) with_cxx_main=no |
| 3264 | MAINCC='$(CC)';; |
| 3265 | yes) with_cxx_main=yes |
| 3266 | MAINCC='$(CXX)';; |
| 3267 | *) with_cxx_main=yes |
| 3268 | MAINCC=$withval |
| 3269 | if test -z "$CXX" |
| 3270 | then |
| 3271 | CXX=$withval |
| 3272 | fi;; |
| 3273 | esac |
| 3274 | else |
| 3275 | |
| 3276 | with_cxx_main=no |
| 3277 | MAINCC='$(CC)' |
| 3278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3279 | fi |
| 3280 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3281 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3282 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3283 | |
| 3284 | preset_cxx="$CXX" |
| 3285 | if test -z "$CXX" |
| 3286 | then |
| 3287 | case "$CC" in |
| 3288 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3289 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3292 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3294 | else |
| 3295 | case $CXX in |
| 3296 | [\\/]* | ?:[\\/]*) |
| 3297 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3298 | ;; |
| 3299 | *) |
| 3300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3301 | for as_dir in notfound |
| 3302 | do |
| 3303 | IFS=$as_save_IFS |
| 3304 | test -z "$as_dir" && as_dir=. |
| 3305 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3306 | 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] | 3307 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3308 | 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] | 3309 | break 2 |
| 3310 | fi |
| 3311 | done |
| 3312 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3313 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3314 | |
| 3315 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3316 | ;; |
| 3317 | esac |
| 3318 | fi |
| 3319 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3320 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3321 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3322 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3323 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3324 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3325 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3326 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3327 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3328 | ;; |
| 3329 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3330 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3333 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3335 | else |
| 3336 | case $CXX in |
| 3337 | [\\/]* | ?:[\\/]*) |
| 3338 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3339 | ;; |
| 3340 | *) |
| 3341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3342 | for as_dir in notfound |
| 3343 | do |
| 3344 | IFS=$as_save_IFS |
| 3345 | test -z "$as_dir" && as_dir=. |
| 3346 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3347 | 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] | 3348 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3349 | 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] | 3350 | break 2 |
| 3351 | fi |
| 3352 | done |
| 3353 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3354 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3355 | |
| 3356 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3357 | ;; |
| 3358 | esac |
| 3359 | fi |
| 3360 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3361 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3362 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3363 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3364 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3365 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3366 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3368 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3369 | ;; |
| 3370 | esac |
| 3371 | if test "$CXX" = "notfound" |
| 3372 | then |
| 3373 | CXX="" |
| 3374 | fi |
| 3375 | fi |
| 3376 | if test -z "$CXX" |
| 3377 | then |
| 3378 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3379 | do |
| 3380 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3381 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3384 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3386 | else |
| 3387 | if test -n "$CXX"; then |
| 3388 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3389 | else |
| 3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3391 | for as_dir in $PATH |
| 3392 | do |
| 3393 | IFS=$as_save_IFS |
| 3394 | test -z "$as_dir" && as_dir=. |
| 3395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3396 | 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] | 3397 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3398 | 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] | 3399 | break 2 |
| 3400 | fi |
| 3401 | done |
| 3402 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3403 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3404 | |
| 3405 | fi |
| 3406 | fi |
| 3407 | CXX=$ac_cv_prog_CXX |
| 3408 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3409 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3410 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3411 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3413 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3414 | fi |
| 3415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3416 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3417 | test -n "$CXX" && break |
| 3418 | done |
| 3419 | test -n "$CXX" || CXX="notfound" |
| 3420 | |
| 3421 | if test "$CXX" = "notfound" |
| 3422 | then |
| 3423 | CXX="" |
| 3424 | fi |
| 3425 | fi |
| 3426 | if test "$preset_cxx" != "$CXX" |
| 3427 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3428 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3429 | |
| 3430 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3431 | If this is not intended, then set CXX on the configure command line. |
| 3432 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3433 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3434 | |
| 3435 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3436 | If this is not intended, then set CXX on the configure command line. |
| 3437 | " >&2;} |
| 3438 | fi |
| 3439 | |
| 3440 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3441 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3442 | |
| 3443 | ac_ext=c |
| 3444 | ac_cpp='$CPP $CPPFLAGS' |
| 3445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3448 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3449 | 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] | 3450 | # On Suns, sometimes $CPP names a directory. |
| 3451 | if test -n "$CPP" && test -d "$CPP"; then |
| 3452 | CPP= |
| 3453 | fi |
| 3454 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | # Double quotes because CPP needs to be expanded |
| 3459 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3460 | do |
| 3461 | ac_preproc_ok=false |
| 3462 | for ac_c_preproc_warn_flag in '' yes |
| 3463 | do |
| 3464 | # Use a header file that comes with gcc, so configuring glibc |
| 3465 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3466 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3467 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3468 | # 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] | 3469 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3471 | /* confdefs.h. */ |
| 3472 | _ACEOF |
| 3473 | cat confdefs.h >>conftest.$ac_ext |
| 3474 | cat >>conftest.$ac_ext <<_ACEOF |
| 3475 | /* end confdefs.h. */ |
| 3476 | #ifdef __STDC__ |
| 3477 | # include <limits.h> |
| 3478 | #else |
| 3479 | # include <assert.h> |
| 3480 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3481 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3484 | case "(($ac_try" in |
| 3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3486 | *) ac_try_echo=$ac_try;; |
| 3487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3491 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | rm -f conftest.er1 |
| 3493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3495 | (exit $ac_status); } >/dev/null && { |
| 3496 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3497 | test ! -s conftest.err |
| 3498 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3499 | : |
| 3500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | # Broken: fails on valid input. |
| 3505 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3508 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3509 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3510 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3511 | # can be detected and how. |
| 3512 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3513 | /* confdefs.h. */ |
| 3514 | _ACEOF |
| 3515 | cat confdefs.h >>conftest.$ac_ext |
| 3516 | cat >>conftest.$ac_ext <<_ACEOF |
| 3517 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | #include <ac_nonexistent.h> |
| 3519 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3521 | case "(($ac_try" in |
| 3522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3523 | *) ac_try_echo=$ac_try;; |
| 3524 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3528 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | rm -f conftest.er1 |
| 3530 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3532 | (exit $ac_status); } >/dev/null && { |
| 3533 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3534 | test ! -s conftest.err |
| 3535 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3536 | # Broken: success on invalid input. |
| 3537 | continue |
| 3538 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # Passes both tests. |
| 3543 | ac_preproc_ok=: |
| 3544 | break |
| 3545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | rm -f conftest.err conftest.$ac_ext |
| 3548 | |
| 3549 | done |
| 3550 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3551 | rm -f conftest.err conftest.$ac_ext |
| 3552 | if $ac_preproc_ok; then |
| 3553 | break |
| 3554 | fi |
| 3555 | |
| 3556 | done |
| 3557 | ac_cv_prog_CPP=$CPP |
| 3558 | |
| 3559 | fi |
| 3560 | CPP=$ac_cv_prog_CPP |
| 3561 | else |
| 3562 | ac_cv_prog_CPP=$CPP |
| 3563 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3564 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3565 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | ac_preproc_ok=false |
| 3567 | for ac_c_preproc_warn_flag in '' yes |
| 3568 | do |
| 3569 | # Use a header file that comes with gcc, so configuring glibc |
| 3570 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3571 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3572 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3574 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3576 | /* confdefs.h. */ |
| 3577 | _ACEOF |
| 3578 | cat confdefs.h >>conftest.$ac_ext |
| 3579 | cat >>conftest.$ac_ext <<_ACEOF |
| 3580 | /* end confdefs.h. */ |
| 3581 | #ifdef __STDC__ |
| 3582 | # include <limits.h> |
| 3583 | #else |
| 3584 | # include <assert.h> |
| 3585 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3586 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3588 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3589 | case "(($ac_try" in |
| 3590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3591 | *) ac_try_echo=$ac_try;; |
| 3592 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | rm -f conftest.er1 |
| 3598 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3600 | (exit $ac_status); } >/dev/null && { |
| 3601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3602 | test ! -s conftest.err |
| 3603 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | : |
| 3605 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3606 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | # Broken: fails on valid input. |
| 3610 | continue |
| 3611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | rm -f conftest.err conftest.$ac_ext |
| 3614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3615 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | # can be detected and how. |
| 3617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3618 | /* confdefs.h. */ |
| 3619 | _ACEOF |
| 3620 | cat confdefs.h >>conftest.$ac_ext |
| 3621 | cat >>conftest.$ac_ext <<_ACEOF |
| 3622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | #include <ac_nonexistent.h> |
| 3624 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3625 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3626 | case "(($ac_try" in |
| 3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3628 | *) ac_try_echo=$ac_try;; |
| 3629 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3633 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | rm -f conftest.er1 |
| 3635 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3637 | (exit $ac_status); } >/dev/null && { |
| 3638 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3639 | test ! -s conftest.err |
| 3640 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | # Broken: success on invalid input. |
| 3642 | continue |
| 3643 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | # Passes both tests. |
| 3648 | ac_preproc_ok=: |
| 3649 | break |
| 3650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3652 | rm -f conftest.err conftest.$ac_ext |
| 3653 | |
| 3654 | done |
| 3655 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3656 | rm -f conftest.err conftest.$ac_ext |
| 3657 | if $ac_preproc_ok; then |
| 3658 | : |
| 3659 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3660 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3661 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3662 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3663 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3664 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | |
| 3667 | ac_ext=c |
| 3668 | ac_cpp='$CPP $CPPFLAGS' |
| 3669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3672 | |
| 3673 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3674 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3675 | 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] | 3676 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3678 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3679 | # Extract the first word of "grep ggrep" to use in msg output |
| 3680 | if test -z "$GREP"; then |
| 3681 | set dummy grep ggrep; ac_prog_name=$2 |
| 3682 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3684 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3685 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3686 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3688 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3689 | do |
| 3690 | IFS=$as_save_IFS |
| 3691 | test -z "$as_dir" && as_dir=. |
| 3692 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3694 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3695 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3696 | # 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] | 3697 | # Check for GNU $ac_path_GREP |
| 3698 | case `"$ac_path_GREP" --version 2>&1` in |
| 3699 | *GNU*) |
| 3700 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3701 | *) |
| 3702 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3703 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3704 | while : |
| 3705 | do |
| 3706 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3707 | mv "conftest.tmp" "conftest.in" |
| 3708 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3709 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3710 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3711 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3712 | ac_count=`expr $ac_count + 1` |
| 3713 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3714 | # Best one so far, save it but keep looking for a better one |
| 3715 | ac_cv_path_GREP="$ac_path_GREP" |
| 3716 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3718 | # 10*(2^10) chars as input seems more than enough |
| 3719 | test $ac_count -gt 10 && break |
| 3720 | done |
| 3721 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3722 | esac |
| 3723 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3724 | |
| 3725 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3726 | done |
| 3727 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3728 | |
| 3729 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3730 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3731 | |
| 3732 | |
| 3733 | fi |
| 3734 | |
| 3735 | GREP="$ac_cv_path_GREP" |
| 3736 | if test -z "$GREP"; then |
| 3737 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3738 | 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] | 3739 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3742 | else |
| 3743 | ac_cv_path_GREP=$GREP |
| 3744 | fi |
| 3745 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3747 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3748 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3749 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3750 | GREP="$ac_cv_path_GREP" |
| 3751 | |
| 3752 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3753 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3754 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3755 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3757 | else |
| 3758 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3759 | then ac_cv_path_EGREP="$GREP -E" |
| 3760 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3761 | # Extract the first word of "egrep" to use in msg output |
| 3762 | if test -z "$EGREP"; then |
| 3763 | set dummy egrep; ac_prog_name=$2 |
| 3764 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3766 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3767 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3768 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3770 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3771 | do |
| 3772 | IFS=$as_save_IFS |
| 3773 | test -z "$as_dir" && as_dir=. |
| 3774 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3776 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3777 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3778 | # 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] | 3779 | # Check for GNU $ac_path_EGREP |
| 3780 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3781 | *GNU*) |
| 3782 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3783 | *) |
| 3784 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3785 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3786 | while : |
| 3787 | do |
| 3788 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3789 | mv "conftest.tmp" "conftest.in" |
| 3790 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3791 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3793 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3794 | ac_count=`expr $ac_count + 1` |
| 3795 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3796 | # Best one so far, save it but keep looking for a better one |
| 3797 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3798 | ac_path_EGREP_max=$ac_count |
| 3799 | fi |
| 3800 | # 10*(2^10) chars as input seems more than enough |
| 3801 | test $ac_count -gt 10 && break |
| 3802 | done |
| 3803 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3804 | esac |
| 3805 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3806 | |
| 3807 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3808 | done |
| 3809 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3810 | |
| 3811 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3812 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3813 | |
| 3814 | |
| 3815 | fi |
| 3816 | |
| 3817 | EGREP="$ac_cv_path_EGREP" |
| 3818 | if test -z "$EGREP"; then |
| 3819 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3820 | 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] | 3821 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3822 | fi |
| 3823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3824 | else |
| 3825 | ac_cv_path_EGREP=$EGREP |
| 3826 | fi |
| 3827 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3829 | fi |
| 3830 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3831 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3832 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3833 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3834 | |
| 3835 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3836 | |
| 3837 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3838 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3839 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3840 | /* confdefs.h. */ |
| 3841 | _ACEOF |
| 3842 | cat confdefs.h >>conftest.$ac_ext |
| 3843 | cat >>conftest.$ac_ext <<_ACEOF |
| 3844 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3845 | #ifdef _AIX |
| 3846 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3847 | #endif |
| 3848 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3849 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3851 | $EGREP "yes" >/dev/null 2>&1; then |
| 3852 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3853 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3854 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3855 | #define _ALL_SOURCE 1 |
| 3856 | _ACEOF |
| 3857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3858 | else |
| 3859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3860 | echo "${ECHO_T}no" >&6; } |
| 3861 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 3862 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3863 | |
| 3864 | |
| 3865 | |
| 3866 | # Check for unsupported systems |
| 3867 | case $ac_sys_system/$ac_sys_release in |
| 3868 | atheos*|Linux*/1*) |
| 3869 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3870 | echo See README for details. |
| 3871 | exit 1;; |
| 3872 | esac |
| 3873 | |
| 3874 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3875 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3876 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3877 | |
| 3878 | # Check whether --with-suffix was given. |
| 3879 | if test "${with_suffix+set}" = set; then |
| 3880 | withval=$with_suffix; |
| 3881 | case $withval in |
| 3882 | no) EXEEXT=;; |
| 3883 | yes) EXEEXT=.exe;; |
| 3884 | *) EXEEXT=$withval;; |
| 3885 | esac |
| 3886 | fi |
| 3887 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3888 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3889 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3890 | |
| 3891 | # Test whether we're running on a non-case-sensitive system, in which |
| 3892 | # case we give a warning if no ext is given |
| 3893 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3894 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3895 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3896 | if test ! -d CaseSensitiveTestDir; then |
| 3897 | mkdir CaseSensitiveTestDir |
| 3898 | fi |
| 3899 | |
| 3900 | if test -d casesensitivetestdir |
| 3901 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3902 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3903 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3904 | BUILDEXEEXT=.exe |
| 3905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3906 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3907 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3908 | BUILDEXEEXT=$EXEEXT |
| 3909 | fi |
| 3910 | rmdir CaseSensitiveTestDir |
| 3911 | |
| 3912 | case $MACHDEP in |
| 3913 | bsdos*) |
| 3914 | case $CC in |
| 3915 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3916 | esac;; |
| 3917 | esac |
| 3918 | |
| 3919 | case $ac_sys_system in |
| 3920 | hp*|HP*) |
| 3921 | case $CC in |
| 3922 | cc|*/cc) CC="$CC -Ae";; |
| 3923 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3924 | SunOS*) |
| 3925 | # Some functions have a prototype only with that define, e.g. confstr |
| 3926 | |
| 3927 | cat >>confdefs.h <<\_ACEOF |
| 3928 | #define __EXTENSIONS__ 1 |
| 3929 | _ACEOF |
| 3930 | |
| 3931 | ;; |
| 3932 | esac |
| 3933 | |
| 3934 | |
| 3935 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3936 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3937 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3938 | if test -z "$LIBRARY" |
| 3939 | then |
| 3940 | LIBRARY='libpython$(VERSION).a' |
| 3941 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3942 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3943 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3944 | |
| 3945 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3946 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3947 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3948 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3949 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3950 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3951 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3952 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3953 | # |
| 3954 | # RUNSHARED is used to run shared python without installed libraries |
| 3955 | # |
| 3956 | # INSTSONAME is the name of the shared library that will be use to install |
| 3957 | # on the system - some systems like version suffix, others don't |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | LDLIBRARY="$LIBRARY" |
| 3965 | BLDLIBRARY='$(LDLIBRARY)' |
| 3966 | INSTSONAME='$(LDLIBRARY)' |
| 3967 | DLLLIBRARY='' |
| 3968 | LDLIBRARYDIR='' |
| 3969 | RUNSHARED='' |
| 3970 | |
| 3971 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3972 | # If CXX is set, and if it is needed to link a main function that was |
| 3973 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3974 | # python might then depend on the C++ runtime |
| 3975 | # This is altered for AIX in order to build the export list before |
| 3976 | # linking. |
| 3977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3978 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3979 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3980 | if test -z "$LINKCC" |
| 3981 | then |
| 3982 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3983 | case $ac_sys_system in |
| 3984 | AIX*) |
| 3985 | exp_extra="\"\"" |
| 3986 | if test $ac_sys_release -ge 5 -o \ |
| 3987 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3988 | exp_extra="." |
| 3989 | fi |
| 3990 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3991 | QNX*) |
| 3992 | # qcc must be used because the other compilers do not |
| 3993 | # support -N. |
| 3994 | LINKCC=qcc;; |
| 3995 | esac |
| 3996 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3997 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3998 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3999 | |
| 4000 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4001 | # make sure we default having it set to "no": this is used by |
| 4002 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4003 | # to linker command lines, and failing to detect GNU ld simply results |
| 4004 | # in the same bahaviour as before. |
| 4005 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4006 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4007 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4008 | ac_prog=ld |
| 4009 | if test "$GCC" = yes; then |
| 4010 | ac_prog=`$CC -print-prog-name=ld` |
| 4011 | fi |
| 4012 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4013 | *GNU*) |
| 4014 | GNULD=yes;; |
| 4015 | *) |
| 4016 | GNULD=no;; |
| 4017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4018 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4019 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4020 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4021 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4022 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4023 | # Check whether --enable-shared was given. |
| 4024 | if test "${enable_shared+set}" = set; then |
| 4025 | enableval=$enable_shared; |
| 4026 | fi |
| 4027 | |
| 4028 | |
| 4029 | if test -z "$enable_shared" |
| 4030 | then |
| 4031 | case $ac_sys_system in |
| 4032 | CYGWIN* | atheos*) |
| 4033 | enable_shared="yes";; |
| 4034 | *) |
| 4035 | enable_shared="no";; |
| 4036 | esac |
| 4037 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4038 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4039 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4041 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4042 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4043 | # Check whether --enable-profiling was given. |
| 4044 | if test "${enable_profiling+set}" = set; then |
| 4045 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4046 | CC="$CC -pg" |
| 4047 | if test "$cross_compiling" = yes; then |
| 4048 | ac_enable_profiling="no" |
| 4049 | else |
| 4050 | cat >conftest.$ac_ext <<_ACEOF |
| 4051 | /* confdefs.h. */ |
| 4052 | _ACEOF |
| 4053 | cat confdefs.h >>conftest.$ac_ext |
| 4054 | cat >>conftest.$ac_ext <<_ACEOF |
| 4055 | /* end confdefs.h. */ |
| 4056 | int main() { return 0; } |
| 4057 | _ACEOF |
| 4058 | rm -f conftest$ac_exeext |
| 4059 | if { (ac_try="$ac_link" |
| 4060 | case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4065 | (eval "$ac_link") 2>&5 |
| 4066 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4069 | { (case "(($ac_try" in |
| 4070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4071 | *) ac_try_echo=$ac_try;; |
| 4072 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4074 | (eval "$ac_try") 2>&5 |
| 4075 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4077 | (exit $ac_status); }; }; then |
| 4078 | ac_enable_profiling="yes" |
| 4079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4081 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
| 4084 | ( exit $ac_status ) |
| 4085 | ac_enable_profiling="no" |
| 4086 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4088 | fi |
| 4089 | |
| 4090 | |
| 4091 | CC="$ac_save_cc" |
| 4092 | fi |
| 4093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4094 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4095 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4096 | |
| 4097 | case "$ac_enable_profiling" in |
| 4098 | "yes") |
| 4099 | BASECFLAGS="-pg $BASECFLAGS" |
| 4100 | LDFLAGS="-pg $LDFLAGS" |
| 4101 | ;; |
| 4102 | esac |
| 4103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4104 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4105 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4106 | |
| 4107 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4108 | # library that we build, but we do not want to link against it (we |
| 4109 | # will find it with a -framework option). For this reason there is an |
| 4110 | # extra variable BLDLIBRARY against which Python and the extension |
| 4111 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4112 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4113 | if test "$enable_framework" |
| 4114 | then |
| 4115 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4116 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4117 | BLDLIBRARY='' |
| 4118 | else |
| 4119 | BLDLIBRARY='$(LDLIBRARY)' |
| 4120 | fi |
| 4121 | |
| 4122 | # Other platforms follow |
| 4123 | if test $enable_shared = "yes"; then |
| 4124 | |
| 4125 | cat >>confdefs.h <<\_ACEOF |
| 4126 | #define Py_ENABLE_SHARED 1 |
| 4127 | _ACEOF |
| 4128 | |
| 4129 | case $ac_sys_system in |
| 4130 | BeOS*) |
| 4131 | LDLIBRARY='libpython$(VERSION).so' |
| 4132 | ;; |
| 4133 | CYGWIN*) |
| 4134 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4135 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4136 | ;; |
| 4137 | SunOS*) |
| 4138 | LDLIBRARY='libpython$(VERSION).so' |
| 4139 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4140 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4141 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4142 | ;; |
| 4143 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4144 | LDLIBRARY='libpython$(VERSION).so' |
| 4145 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4146 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4147 | case $ac_sys_system in |
| 4148 | FreeBSD*) |
| 4149 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4150 | ;; |
| 4151 | esac |
| 4152 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4153 | ;; |
| 4154 | hp*|HP*) |
| 4155 | case `uname -m` in |
| 4156 | ia64) |
| 4157 | LDLIBRARY='libpython$(VERSION).so' |
| 4158 | ;; |
| 4159 | *) |
| 4160 | LDLIBRARY='libpython$(VERSION).sl' |
| 4161 | ;; |
| 4162 | esac |
| 4163 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4164 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4165 | ;; |
| 4166 | OSF*) |
| 4167 | LDLIBRARY='libpython$(VERSION).so' |
| 4168 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4169 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4170 | ;; |
| 4171 | atheos*) |
| 4172 | LDLIBRARY='libpython$(VERSION).so' |
| 4173 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4174 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4175 | ;; |
| 4176 | Darwin*) |
| 4177 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4178 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4179 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4180 | ;; |
| 4181 | |
| 4182 | esac |
| 4183 | else # shared is disabled |
| 4184 | case $ac_sys_system in |
| 4185 | CYGWIN*) |
| 4186 | BLDLIBRARY='$(LIBRARY)' |
| 4187 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4188 | ;; |
| 4189 | esac |
| 4190 | fi |
| 4191 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4192 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4193 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4194 | |
| 4195 | if test -n "$ac_tool_prefix"; then |
| 4196 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4197 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4198 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4200 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4202 | else |
| 4203 | if test -n "$RANLIB"; then |
| 4204 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4205 | else |
| 4206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4207 | for as_dir in $PATH |
| 4208 | do |
| 4209 | IFS=$as_save_IFS |
| 4210 | test -z "$as_dir" && as_dir=. |
| 4211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4213 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4214 | 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] | 4215 | break 2 |
| 4216 | fi |
| 4217 | done |
| 4218 | done |
| 4219 | IFS=$as_save_IFS |
| 4220 | |
| 4221 | fi |
| 4222 | fi |
| 4223 | RANLIB=$ac_cv_prog_RANLIB |
| 4224 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4225 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4226 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4227 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4228 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4229 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4230 | fi |
| 4231 | |
| 4232 | |
| 4233 | fi |
| 4234 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4235 | ac_ct_RANLIB=$RANLIB |
| 4236 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4237 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4240 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4242 | else |
| 4243 | if test -n "$ac_ct_RANLIB"; then |
| 4244 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4245 | else |
| 4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4247 | for as_dir in $PATH |
| 4248 | do |
| 4249 | IFS=$as_save_IFS |
| 4250 | test -z "$as_dir" && as_dir=. |
| 4251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4253 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4255 | break 2 |
| 4256 | fi |
| 4257 | done |
| 4258 | done |
| 4259 | IFS=$as_save_IFS |
| 4260 | |
| 4261 | fi |
| 4262 | fi |
| 4263 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4264 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4265 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4266 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4269 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4270 | fi |
| 4271 | |
| 4272 | if test "x$ac_ct_RANLIB" = x; then |
| 4273 | RANLIB=":" |
| 4274 | else |
| 4275 | case $cross_compiling:$ac_tool_warned in |
| 4276 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4277 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4278 | whose name does not start with the host triplet. If you think this |
| 4279 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4280 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4281 | whose name does not start with the host triplet. If you think this |
| 4282 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4283 | ac_tool_warned=yes ;; |
| 4284 | esac |
| 4285 | RANLIB=$ac_ct_RANLIB |
| 4286 | fi |
| 4287 | else |
| 4288 | RANLIB="$ac_cv_prog_RANLIB" |
| 4289 | fi |
| 4290 | |
| 4291 | |
| 4292 | for ac_prog in ar aal |
| 4293 | do |
| 4294 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4295 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4298 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4300 | else |
| 4301 | if test -n "$AR"; then |
| 4302 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4303 | else |
| 4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4305 | for as_dir in $PATH |
| 4306 | do |
| 4307 | IFS=$as_save_IFS |
| 4308 | test -z "$as_dir" && as_dir=. |
| 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4311 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4312 | 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] | 4313 | break 2 |
| 4314 | fi |
| 4315 | done |
| 4316 | done |
| 4317 | IFS=$as_save_IFS |
| 4318 | |
| 4319 | fi |
| 4320 | fi |
| 4321 | AR=$ac_cv_prog_AR |
| 4322 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4323 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4324 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4325 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4326 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4327 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4328 | fi |
| 4329 | |
| 4330 | |
| 4331 | test -n "$AR" && break |
| 4332 | done |
| 4333 | test -n "$AR" || AR="ar" |
| 4334 | |
| 4335 | |
| 4336 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4337 | |
| 4338 | if test -z "$ARFLAGS" |
| 4339 | then |
| 4340 | ARFLAGS="rc" |
| 4341 | fi |
| 4342 | |
| 4343 | |
| 4344 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4345 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4348 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4350 | else |
| 4351 | if test -n "$SVNVERSION"; then |
| 4352 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4353 | else |
| 4354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4355 | for as_dir in $PATH |
| 4356 | do |
| 4357 | IFS=$as_save_IFS |
| 4358 | test -z "$as_dir" && as_dir=. |
| 4359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4361 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4362 | 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] | 4363 | break 2 |
| 4364 | fi |
| 4365 | done |
| 4366 | done |
| 4367 | IFS=$as_save_IFS |
| 4368 | |
| 4369 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4370 | fi |
| 4371 | fi |
| 4372 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4373 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4374 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4375 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4377 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4378 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4379 | fi |
| 4380 | |
| 4381 | |
| 4382 | if test $SVNVERSION = found |
| 4383 | then |
| 4384 | SVNVERSION="svnversion \$(srcdir)" |
| 4385 | else |
| 4386 | SVNVERSION="echo Unversioned directory" |
| 4387 | fi |
| 4388 | |
| 4389 | case $MACHDEP in |
| 4390 | bsdos*|hp*|HP*) |
| 4391 | # install -d does not work on BSDI or HP-UX |
| 4392 | if test -z "$INSTALL" |
| 4393 | then |
| 4394 | INSTALL="${srcdir}/install-sh -c" |
| 4395 | fi |
| 4396 | esac |
| 4397 | ac_aux_dir= |
| 4398 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4399 | if test -f "$ac_dir/install-sh"; then |
| 4400 | ac_aux_dir=$ac_dir |
| 4401 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4402 | break |
| 4403 | elif test -f "$ac_dir/install.sh"; then |
| 4404 | ac_aux_dir=$ac_dir |
| 4405 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4406 | break |
| 4407 | elif test -f "$ac_dir/shtool"; then |
| 4408 | ac_aux_dir=$ac_dir |
| 4409 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4410 | break |
| 4411 | fi |
| 4412 | done |
| 4413 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4414 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4415 | 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] | 4416 | { (exit 1); exit 1; }; } |
| 4417 | fi |
| 4418 | |
| 4419 | # These three variables are undocumented and unsupported, |
| 4420 | # and are intended to be withdrawn in a future Autoconf release. |
| 4421 | # They can cause serious problems if a builder's source tree is in a directory |
| 4422 | # whose full name contains unusual characters. |
| 4423 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4424 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4425 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4426 | |
| 4427 | |
| 4428 | # Find a good install program. We prefer a C program (faster), |
| 4429 | # so one script is as good as another. But avoid the broken or |
| 4430 | # incompatible versions: |
| 4431 | # SysV /etc/install, /usr/sbin/install |
| 4432 | # SunOS /usr/etc/install |
| 4433 | # IRIX /sbin/install |
| 4434 | # AIX /bin/install |
| 4435 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4436 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4437 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4438 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4439 | # OS/2's system install, which has a completely different semantic |
| 4440 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4441 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4442 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4443 | if test -z "$INSTALL"; then |
| 4444 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4446 | else |
| 4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4448 | for as_dir in $PATH |
| 4449 | do |
| 4450 | IFS=$as_save_IFS |
| 4451 | test -z "$as_dir" && as_dir=. |
| 4452 | # Account for people who put trailing slashes in PATH elements. |
| 4453 | case $as_dir/ in |
| 4454 | ./ | .// | /cC/* | \ |
| 4455 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4456 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4457 | /usr/ucb/* ) ;; |
| 4458 | *) |
| 4459 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4460 | # Don't use installbsd from OSF since it installs stuff as root |
| 4461 | # by default. |
| 4462 | for ac_prog in ginstall scoinst install; do |
| 4463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4464 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4465 | if test $ac_prog = install && |
| 4466 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4467 | # AIX install. It has an incompatible calling convention. |
| 4468 | : |
| 4469 | elif test $ac_prog = install && |
| 4470 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4471 | # program-specific install script used by HP pwplus--don't use. |
| 4472 | : |
| 4473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4474 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4475 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4476 | fi |
| 4477 | fi |
| 4478 | done |
| 4479 | done |
| 4480 | ;; |
| 4481 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4482 | done |
| 4483 | IFS=$as_save_IFS |
| 4484 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4485 | |
| 4486 | fi |
| 4487 | if test "${ac_cv_path_install+set}" = set; then |
| 4488 | INSTALL=$ac_cv_path_install |
| 4489 | else |
| 4490 | # As a last resort, use the slow shell script. Don't cache a |
| 4491 | # value for INSTALL within a source directory, because that will |
| 4492 | # break other packages using the cache if that directory is |
| 4493 | # removed, or if the value is a relative name. |
| 4494 | INSTALL=$ac_install_sh |
| 4495 | fi |
| 4496 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4497 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4498 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4499 | |
| 4500 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4501 | # It thinks the first close brace ends the variable substitution. |
| 4502 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4503 | |
| 4504 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4505 | |
| 4506 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4507 | |
| 4508 | |
| 4509 | # Not every filesystem supports hard links |
| 4510 | |
| 4511 | if test -z "$LN" ; then |
| 4512 | case $ac_sys_system in |
| 4513 | BeOS*) LN="ln -s";; |
| 4514 | CYGWIN*) LN="ln -s";; |
| 4515 | atheos*) LN="ln -s";; |
| 4516 | *) LN=ln;; |
| 4517 | esac |
| 4518 | fi |
| 4519 | |
| 4520 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4521 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4522 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4523 | |
| 4524 | # Check whether --with-pydebug was given. |
| 4525 | if test "${with_pydebug+set}" = set; then |
| 4526 | withval=$with_pydebug; |
| 4527 | if test "$withval" != no |
| 4528 | then |
| 4529 | |
| 4530 | cat >>confdefs.h <<\_ACEOF |
| 4531 | #define Py_DEBUG 1 |
| 4532 | _ACEOF |
| 4533 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4534 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4535 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4536 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4537 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4538 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4539 | fi |
| 4540 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4542 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4543 | fi |
| 4544 | |
| 4545 | |
| 4546 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4547 | # merged with this chunk of code? |
| 4548 | |
| 4549 | # Optimizer/debugger flags |
| 4550 | # ------------------------ |
| 4551 | # (The following bit of code is complicated enough - please keep things |
| 4552 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4553 | |
| 4554 | # There are two parallel sets of case statements below, one that checks to |
| 4555 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4556 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4557 | # user set OPT. |
| 4558 | |
| 4559 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4560 | # it on the command line |
| 4561 | |
| 4562 | if test -z "$OPT" |
| 4563 | then |
| 4564 | case $GCC in |
| 4565 | yes) |
| 4566 | if test "$CC" != 'g++' ; then |
| 4567 | STRICT_PROTO="-Wstrict-prototypes" |
| 4568 | fi |
| 4569 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4570 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4571 | WRAP="-fwrapv" |
| 4572 | fi |
| 4573 | case $ac_cv_prog_cc_g in |
| 4574 | yes) |
| 4575 | if test "$Py_DEBUG" = 'true' ; then |
| 4576 | # Optimization messes up debuggers, so turn it off for |
| 4577 | # debug builds. |
| 4578 | OPT="-g -Wall $STRICT_PROTO" |
| 4579 | else |
| 4580 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4581 | fi |
| 4582 | ;; |
| 4583 | *) |
| 4584 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4585 | ;; |
| 4586 | esac |
| 4587 | case $ac_sys_system in |
| 4588 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4589 | ;; |
| 4590 | esac |
| 4591 | ;; |
| 4592 | |
| 4593 | *) |
| 4594 | OPT="-O" |
| 4595 | ;; |
| 4596 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4597 | fi |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | # The -arch flags for universal builds on OSX |
| 4602 | UNIVERSAL_ARCH_FLAGS= |
| 4603 | |
| 4604 | |
| 4605 | # tweak BASECFLAGS based on compiler and platform |
| 4606 | case $GCC in |
| 4607 | yes) |
| 4608 | # Python violates C99 rules, by casting between incompatible |
| 4609 | # pointer types. GCC may generate bad code as a result of that, |
| 4610 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4611 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4612 | 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] | 4613 | ac_save_cc="$CC" |
| 4614 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4615 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4617 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4618 | cat >conftest.$ac_ext <<_ACEOF |
| 4619 | /* confdefs.h. */ |
| 4620 | _ACEOF |
| 4621 | cat confdefs.h >>conftest.$ac_ext |
| 4622 | cat >>conftest.$ac_ext <<_ACEOF |
| 4623 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4624 | |
| 4625 | int |
| 4626 | main () |
| 4627 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4628 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4629 | ; |
| 4630 | return 0; |
| 4631 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4632 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4633 | rm -f conftest.$ac_objext |
| 4634 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4635 | case "(($ac_try" in |
| 4636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4637 | *) ac_try_echo=$ac_try;; |
| 4638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4640 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4641 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4643 | rm -f conftest.er1 |
| 4644 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4646 | (exit $ac_status); } && { |
| 4647 | test -z "$ac_c_werror_flag" || |
| 4648 | test ! -s conftest.err |
| 4649 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4650 | ac_cv_no_strict_aliasing_ok=yes |
| 4651 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4652 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4654 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4655 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4656 | fi |
| 4657 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4659 | fi |
| 4660 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4661 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4662 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4663 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4664 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4665 | then |
| 4666 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4667 | fi |
| 4668 | |
| 4669 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4670 | # support. Without this, treatment of subnormals doesn't follow |
| 4671 | # the standard. |
| 4672 | case $ac_sys_machine in |
| 4673 | alpha*) |
| 4674 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4675 | ;; |
| 4676 | esac |
| 4677 | |
| 4678 | case $ac_sys_system in |
| 4679 | SCO_SV*) |
| 4680 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4681 | ;; |
| 4682 | # is there any other compiler on Darwin besides gcc? |
| 4683 | Darwin*) |
| 4684 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4685 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4686 | |
| 4687 | |
| 4688 | if test "${enable_universalsdk}"; then |
| 4689 | UNIVERSAL_ARCH_FLAGS="" |
| 4690 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4691 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4692 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 4693 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4694 | |
| 4695 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4696 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 4697 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4698 | ARCH_RUN_32BIT="true" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4699 | |
| 4700 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4701 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 4702 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4703 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4704 | |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4705 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4706 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 4707 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4708 | ARCH_RUN_32BIT="arch -i386" |
| 4709 | |
| 4710 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4711 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 4712 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4713 | ARCH_RUN_32BIT="arch -i386 -ppc7400" |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4714 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4715 | else |
Ronald Oussoren | a9cfbde | 2009-09-20 20:05:44 +0000 | [diff] [blame] | 4716 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4717 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4718 | { (exit 1); exit 1; }; } |
| 4719 | |
| 4720 | fi |
| 4721 | |
| 4722 | |
| 4723 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4724 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4725 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4726 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4727 | fi |
| 4728 | fi |
| 4729 | |
| 4730 | # Calculate the right deployment target for this build. |
| 4731 | # |
| 4732 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4733 | if test ${cur_target} '>' 10.2; then |
| 4734 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4735 | if test ${enable_universalsdk}; then |
| 4736 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4737 | # Ensure that the default platform for a |
| 4738 | # 4-way universal build is OSX 10.5, |
| 4739 | # that's the first OS release where |
| 4740 | # 4-way builds make sense. |
| 4741 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4742 | |
| 4743 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4744 | cur_target='10.5' |
| 4745 | |
| 4746 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4747 | cur_target='10.5' |
| 4748 | |
| 4749 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4750 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4751 | fi |
| 4752 | else |
| 4753 | if test `arch` = "i386"; then |
| 4754 | # On Intel macs default to a deployment |
| 4755 | # target of 10.4, that's the first OSX |
| 4756 | # release with Intel support. |
| 4757 | cur_target="10.4" |
| 4758 | fi |
| 4759 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4760 | fi |
| 4761 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4762 | |
| 4763 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4764 | # environment with a value that is the same as what we'll use |
| 4765 | # in the Makefile to ensure that we'll get the same compiler |
| 4766 | # environment during configure and build time. |
| 4767 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4768 | export MACOSX_DEPLOYMENT_TARGET |
| 4769 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4770 | |
| 4771 | ;; |
| 4772 | OSF*) |
| 4773 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4774 | ;; |
| 4775 | esac |
| 4776 | ;; |
| 4777 | |
| 4778 | *) |
| 4779 | case $ac_sys_system in |
| 4780 | OpenUNIX*|UnixWare*) |
| 4781 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4782 | ;; |
| 4783 | OSF*) |
| 4784 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4785 | ;; |
| 4786 | SCO_SV*) |
| 4787 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4788 | ;; |
| 4789 | esac |
| 4790 | ;; |
| 4791 | esac |
| 4792 | |
| 4793 | if test "$Py_DEBUG" = 'true'; then |
| 4794 | : |
| 4795 | else |
| 4796 | OPT="-DNDEBUG $OPT" |
| 4797 | fi |
| 4798 | |
| 4799 | if test "$ac_arch_flags" |
| 4800 | then |
| 4801 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4802 | fi |
| 4803 | |
| 4804 | # disable check for icc since it seems to pass, but generates a warning |
| 4805 | if test "$CC" = icc |
| 4806 | then |
| 4807 | ac_cv_opt_olimit_ok=no |
| 4808 | fi |
| 4809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4810 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4811 | 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] | 4812 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4814 | else |
| 4815 | ac_save_cc="$CC" |
| 4816 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4817 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4818 | /* confdefs.h. */ |
| 4819 | _ACEOF |
| 4820 | cat confdefs.h >>conftest.$ac_ext |
| 4821 | cat >>conftest.$ac_ext <<_ACEOF |
| 4822 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4823 | |
| 4824 | int |
| 4825 | main () |
| 4826 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4827 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4828 | ; |
| 4829 | return 0; |
| 4830 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4831 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4832 | rm -f conftest.$ac_objext |
| 4833 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4834 | case "(($ac_try" in |
| 4835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4836 | *) ac_try_echo=$ac_try;; |
| 4837 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4839 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4840 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4842 | rm -f conftest.er1 |
| 4843 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4845 | (exit $ac_status); } && { |
| 4846 | test -z "$ac_c_werror_flag" || |
| 4847 | test ! -s conftest.err |
| 4848 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4849 | ac_cv_opt_olimit_ok=yes |
| 4850 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4851 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4853 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4854 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4855 | fi |
| 4856 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4858 | CC="$ac_save_cc" |
| 4859 | fi |
| 4860 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4861 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4862 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4863 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4864 | case $ac_sys_system in |
| 4865 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4866 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4867 | # environment? |
| 4868 | Darwin*) |
| 4869 | ;; |
| 4870 | *) |
| 4871 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4872 | ;; |
| 4873 | esac |
| 4874 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4875 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4876 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4877 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4879 | else |
| 4880 | ac_save_cc="$CC" |
| 4881 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4882 | cat >conftest.$ac_ext <<_ACEOF |
| 4883 | /* confdefs.h. */ |
| 4884 | _ACEOF |
| 4885 | cat confdefs.h >>conftest.$ac_ext |
| 4886 | cat >>conftest.$ac_ext <<_ACEOF |
| 4887 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4888 | |
| 4889 | int |
| 4890 | main () |
| 4891 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4892 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4893 | ; |
| 4894 | return 0; |
| 4895 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4896 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4897 | rm -f conftest.$ac_objext |
| 4898 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4899 | case "(($ac_try" in |
| 4900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4901 | *) ac_try_echo=$ac_try;; |
| 4902 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4904 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4905 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4907 | rm -f conftest.er1 |
| 4908 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4910 | (exit $ac_status); } && { |
| 4911 | test -z "$ac_c_werror_flag" || |
| 4912 | test ! -s conftest.err |
| 4913 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4914 | ac_cv_olimit_ok=yes |
| 4915 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4916 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4918 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4919 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4920 | fi |
| 4921 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4923 | CC="$ac_save_cc" |
| 4924 | fi |
| 4925 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4926 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4927 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4928 | if test $ac_cv_olimit_ok = yes; then |
| 4929 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4930 | fi |
| 4931 | fi |
| 4932 | |
| 4933 | # Check whether GCC supports PyArg_ParseTuple format |
| 4934 | if test "$GCC" = "yes" |
| 4935 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4936 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4937 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4938 | save_CFLAGS=$CFLAGS |
| 4939 | CFLAGS="$CFLAGS -Werror" |
| 4940 | cat >conftest.$ac_ext <<_ACEOF |
| 4941 | /* confdefs.h. */ |
| 4942 | _ACEOF |
| 4943 | cat confdefs.h >>conftest.$ac_ext |
| 4944 | cat >>conftest.$ac_ext <<_ACEOF |
| 4945 | /* end confdefs.h. */ |
| 4946 | |
| 4947 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4948 | |
| 4949 | int |
| 4950 | main () |
| 4951 | { |
| 4952 | |
| 4953 | ; |
| 4954 | return 0; |
| 4955 | } |
| 4956 | _ACEOF |
| 4957 | rm -f conftest.$ac_objext |
| 4958 | if { (ac_try="$ac_compile" |
| 4959 | case "(($ac_try" in |
| 4960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4961 | *) ac_try_echo=$ac_try;; |
| 4962 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4964 | (eval "$ac_compile") 2>conftest.er1 |
| 4965 | ac_status=$? |
| 4966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4967 | rm -f conftest.er1 |
| 4968 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4970 | (exit $ac_status); } && { |
| 4971 | test -z "$ac_c_werror_flag" || |
| 4972 | test ! -s conftest.err |
| 4973 | } && test -s conftest.$ac_objext; then |
| 4974 | |
| 4975 | cat >>confdefs.h <<\_ACEOF |
| 4976 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4977 | _ACEOF |
| 4978 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4979 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4980 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4981 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4982 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4984 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4986 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4987 | |
| 4988 | fi |
| 4989 | |
| 4990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4991 | CFLAGS=$save_CFLAGS |
| 4992 | fi |
| 4993 | |
| 4994 | # On some compilers, pthreads are available without further options |
| 4995 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4996 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4997 | # So we have to see first whether pthreads are available without |
| 4998 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4999 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5000 | 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] | 5001 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | else |
| 5004 | if test "$cross_compiling" = yes; then |
| 5005 | ac_cv_pthread_is_default=no |
| 5006 | else |
| 5007 | cat >conftest.$ac_ext <<_ACEOF |
| 5008 | /* confdefs.h. */ |
| 5009 | _ACEOF |
| 5010 | cat confdefs.h >>conftest.$ac_ext |
| 5011 | cat >>conftest.$ac_ext <<_ACEOF |
| 5012 | /* end confdefs.h. */ |
| 5013 | |
| 5014 | #include <pthread.h> |
| 5015 | |
| 5016 | void* routine(void* p){return NULL;} |
| 5017 | |
| 5018 | int main(){ |
| 5019 | pthread_t p; |
| 5020 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5021 | return 1; |
| 5022 | (void)pthread_detach(p); |
| 5023 | return 0; |
| 5024 | } |
| 5025 | |
| 5026 | _ACEOF |
| 5027 | rm -f conftest$ac_exeext |
| 5028 | if { (ac_try="$ac_link" |
| 5029 | case "(($ac_try" in |
| 5030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5031 | *) ac_try_echo=$ac_try;; |
| 5032 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5034 | (eval "$ac_link") 2>&5 |
| 5035 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5038 | { (case "(($ac_try" in |
| 5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5040 | *) ac_try_echo=$ac_try;; |
| 5041 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5043 | (eval "$ac_try") 2>&5 |
| 5044 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5046 | (exit $ac_status); }; }; then |
| 5047 | |
| 5048 | ac_cv_pthread_is_default=yes |
| 5049 | ac_cv_kthread=no |
| 5050 | ac_cv_pthread=no |
| 5051 | |
| 5052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5053 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5054 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5056 | |
| 5057 | ( exit $ac_status ) |
| 5058 | ac_cv_pthread_is_default=no |
| 5059 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5061 | fi |
| 5062 | |
| 5063 | |
| 5064 | |
| 5065 | fi |
| 5066 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5067 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5068 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5069 | |
| 5070 | |
| 5071 | if test $ac_cv_pthread_is_default = yes |
| 5072 | then |
| 5073 | ac_cv_kpthread=no |
| 5074 | else |
| 5075 | # -Kpthread, if available, provides the right #defines |
| 5076 | # and linker options to make pthread_create available |
| 5077 | # Some compilers won't report that they do not support -Kpthread, |
| 5078 | # so we need to run a program to see whether it really made the |
| 5079 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5080 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5081 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5082 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5084 | else |
| 5085 | ac_save_cc="$CC" |
| 5086 | CC="$CC -Kpthread" |
| 5087 | if test "$cross_compiling" = yes; then |
| 5088 | ac_cv_kpthread=no |
| 5089 | else |
| 5090 | cat >conftest.$ac_ext <<_ACEOF |
| 5091 | /* confdefs.h. */ |
| 5092 | _ACEOF |
| 5093 | cat confdefs.h >>conftest.$ac_ext |
| 5094 | cat >>conftest.$ac_ext <<_ACEOF |
| 5095 | /* end confdefs.h. */ |
| 5096 | |
| 5097 | #include <pthread.h> |
| 5098 | |
| 5099 | void* routine(void* p){return NULL;} |
| 5100 | |
| 5101 | int main(){ |
| 5102 | pthread_t p; |
| 5103 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5104 | return 1; |
| 5105 | (void)pthread_detach(p); |
| 5106 | return 0; |
| 5107 | } |
| 5108 | |
| 5109 | _ACEOF |
| 5110 | rm -f conftest$ac_exeext |
| 5111 | if { (ac_try="$ac_link" |
| 5112 | case "(($ac_try" in |
| 5113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5114 | *) ac_try_echo=$ac_try;; |
| 5115 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5117 | (eval "$ac_link") 2>&5 |
| 5118 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5120 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5121 | { (case "(($ac_try" in |
| 5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5123 | *) ac_try_echo=$ac_try;; |
| 5124 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5126 | (eval "$ac_try") 2>&5 |
| 5127 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5129 | (exit $ac_status); }; }; then |
| 5130 | ac_cv_kpthread=yes |
| 5131 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5132 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5133 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5135 | |
| 5136 | ( exit $ac_status ) |
| 5137 | ac_cv_kpthread=no |
| 5138 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5140 | fi |
| 5141 | |
| 5142 | |
| 5143 | CC="$ac_save_cc" |
| 5144 | fi |
| 5145 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5146 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5147 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5148 | fi |
| 5149 | |
| 5150 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5151 | then |
| 5152 | # -Kthread, if available, provides the right #defines |
| 5153 | # and linker options to make pthread_create available |
| 5154 | # Some compilers won't report that they do not support -Kthread, |
| 5155 | # so we need to run a program to see whether it really made the |
| 5156 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5157 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5158 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5159 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5161 | else |
| 5162 | ac_save_cc="$CC" |
| 5163 | CC="$CC -Kthread" |
| 5164 | if test "$cross_compiling" = yes; then |
| 5165 | ac_cv_kthread=no |
| 5166 | else |
| 5167 | cat >conftest.$ac_ext <<_ACEOF |
| 5168 | /* confdefs.h. */ |
| 5169 | _ACEOF |
| 5170 | cat confdefs.h >>conftest.$ac_ext |
| 5171 | cat >>conftest.$ac_ext <<_ACEOF |
| 5172 | /* end confdefs.h. */ |
| 5173 | |
| 5174 | #include <pthread.h> |
| 5175 | |
| 5176 | void* routine(void* p){return NULL;} |
| 5177 | |
| 5178 | int main(){ |
| 5179 | pthread_t p; |
| 5180 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5181 | return 1; |
| 5182 | (void)pthread_detach(p); |
| 5183 | return 0; |
| 5184 | } |
| 5185 | |
| 5186 | _ACEOF |
| 5187 | rm -f conftest$ac_exeext |
| 5188 | if { (ac_try="$ac_link" |
| 5189 | case "(($ac_try" in |
| 5190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5191 | *) ac_try_echo=$ac_try;; |
| 5192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5194 | (eval "$ac_link") 2>&5 |
| 5195 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5198 | { (case "(($ac_try" in |
| 5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5200 | *) ac_try_echo=$ac_try;; |
| 5201 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5203 | (eval "$ac_try") 2>&5 |
| 5204 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5206 | (exit $ac_status); }; }; then |
| 5207 | ac_cv_kthread=yes |
| 5208 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5210 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5212 | |
| 5213 | ( exit $ac_status ) |
| 5214 | ac_cv_kthread=no |
| 5215 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5216 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5217 | fi |
| 5218 | |
| 5219 | |
| 5220 | CC="$ac_save_cc" |
| 5221 | fi |
| 5222 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5223 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5224 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5225 | fi |
| 5226 | |
| 5227 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5228 | then |
| 5229 | # -pthread, if available, provides the right #defines |
| 5230 | # and linker options to make pthread_create available |
| 5231 | # Some compilers won't report that they do not support -pthread, |
| 5232 | # so we need to run a program to see whether it really made the |
| 5233 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5234 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5235 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5236 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5238 | else |
| 5239 | ac_save_cc="$CC" |
| 5240 | CC="$CC -pthread" |
| 5241 | if test "$cross_compiling" = yes; then |
| 5242 | ac_cv_pthread=no |
| 5243 | else |
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
| 5245 | /* confdefs.h. */ |
| 5246 | _ACEOF |
| 5247 | cat confdefs.h >>conftest.$ac_ext |
| 5248 | cat >>conftest.$ac_ext <<_ACEOF |
| 5249 | /* end confdefs.h. */ |
| 5250 | |
| 5251 | #include <pthread.h> |
| 5252 | |
| 5253 | void* routine(void* p){return NULL;} |
| 5254 | |
| 5255 | int main(){ |
| 5256 | pthread_t p; |
| 5257 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5258 | return 1; |
| 5259 | (void)pthread_detach(p); |
| 5260 | return 0; |
| 5261 | } |
| 5262 | |
| 5263 | _ACEOF |
| 5264 | rm -f conftest$ac_exeext |
| 5265 | if { (ac_try="$ac_link" |
| 5266 | case "(($ac_try" in |
| 5267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5268 | *) ac_try_echo=$ac_try;; |
| 5269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5271 | (eval "$ac_link") 2>&5 |
| 5272 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5275 | { (case "(($ac_try" in |
| 5276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5277 | *) ac_try_echo=$ac_try;; |
| 5278 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5280 | (eval "$ac_try") 2>&5 |
| 5281 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5283 | (exit $ac_status); }; }; then |
| 5284 | ac_cv_pthread=yes |
| 5285 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5286 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5287 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5289 | |
| 5290 | ( exit $ac_status ) |
| 5291 | ac_cv_pthread=no |
| 5292 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5294 | fi |
| 5295 | |
| 5296 | |
| 5297 | CC="$ac_save_cc" |
| 5298 | fi |
| 5299 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5300 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5301 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5302 | fi |
| 5303 | |
| 5304 | # If we have set a CC compiler flag for thread support then |
| 5305 | # check if it works for CXX, too. |
| 5306 | ac_cv_cxx_thread=no |
| 5307 | if test ! -z "$CXX" |
| 5308 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5309 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5310 | 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] | 5311 | ac_save_cxx="$CXX" |
| 5312 | |
| 5313 | if test "$ac_cv_kpthread" = "yes" |
| 5314 | then |
| 5315 | CXX="$CXX -Kpthread" |
| 5316 | ac_cv_cxx_thread=yes |
| 5317 | elif test "$ac_cv_kthread" = "yes" |
| 5318 | then |
| 5319 | CXX="$CXX -Kthread" |
| 5320 | ac_cv_cxx_thread=yes |
| 5321 | elif test "$ac_cv_pthread" = "yes" |
| 5322 | then |
| 5323 | CXX="$CXX -pthread" |
| 5324 | ac_cv_cxx_thread=yes |
| 5325 | fi |
| 5326 | |
| 5327 | if test $ac_cv_cxx_thread = yes |
| 5328 | then |
| 5329 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5330 | $CXX -c conftest.$ac_ext 2>&5 |
| 5331 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5332 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5333 | then |
| 5334 | ac_cv_cxx_thread=yes |
| 5335 | else |
| 5336 | ac_cv_cxx_thread=no |
| 5337 | fi |
| 5338 | rm -fr conftest* |
| 5339 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5340 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5341 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5342 | fi |
| 5343 | CXX="$ac_save_cxx" |
| 5344 | |
| 5345 | |
| 5346 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5347 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5348 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5349 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5351 | else |
| 5352 | cat >conftest.$ac_ext <<_ACEOF |
| 5353 | /* confdefs.h. */ |
| 5354 | _ACEOF |
| 5355 | cat confdefs.h >>conftest.$ac_ext |
| 5356 | cat >>conftest.$ac_ext <<_ACEOF |
| 5357 | /* end confdefs.h. */ |
| 5358 | #include <stdlib.h> |
| 5359 | #include <stdarg.h> |
| 5360 | #include <string.h> |
| 5361 | #include <float.h> |
| 5362 | |
| 5363 | int |
| 5364 | main () |
| 5365 | { |
| 5366 | |
| 5367 | ; |
| 5368 | return 0; |
| 5369 | } |
| 5370 | _ACEOF |
| 5371 | rm -f conftest.$ac_objext |
| 5372 | if { (ac_try="$ac_compile" |
| 5373 | case "(($ac_try" in |
| 5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5375 | *) ac_try_echo=$ac_try;; |
| 5376 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5378 | (eval "$ac_compile") 2>conftest.er1 |
| 5379 | ac_status=$? |
| 5380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5381 | rm -f conftest.er1 |
| 5382 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5384 | (exit $ac_status); } && { |
| 5385 | test -z "$ac_c_werror_flag" || |
| 5386 | test ! -s conftest.err |
| 5387 | } && test -s conftest.$ac_objext; then |
| 5388 | ac_cv_header_stdc=yes |
| 5389 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5390 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5392 | |
| 5393 | ac_cv_header_stdc=no |
| 5394 | fi |
| 5395 | |
| 5396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5397 | |
| 5398 | if test $ac_cv_header_stdc = yes; then |
| 5399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5400 | cat >conftest.$ac_ext <<_ACEOF |
| 5401 | /* confdefs.h. */ |
| 5402 | _ACEOF |
| 5403 | cat confdefs.h >>conftest.$ac_ext |
| 5404 | cat >>conftest.$ac_ext <<_ACEOF |
| 5405 | /* end confdefs.h. */ |
| 5406 | #include <string.h> |
| 5407 | |
| 5408 | _ACEOF |
| 5409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5410 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5411 | : |
| 5412 | else |
| 5413 | ac_cv_header_stdc=no |
| 5414 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 5415 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5416 | |
| 5417 | fi |
| 5418 | |
| 5419 | if test $ac_cv_header_stdc = yes; then |
| 5420 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5421 | cat >conftest.$ac_ext <<_ACEOF |
| 5422 | /* confdefs.h. */ |
| 5423 | _ACEOF |
| 5424 | cat confdefs.h >>conftest.$ac_ext |
| 5425 | cat >>conftest.$ac_ext <<_ACEOF |
| 5426 | /* end confdefs.h. */ |
| 5427 | #include <stdlib.h> |
| 5428 | |
| 5429 | _ACEOF |
| 5430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5431 | $EGREP "free" >/dev/null 2>&1; then |
| 5432 | : |
| 5433 | else |
| 5434 | ac_cv_header_stdc=no |
| 5435 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 5436 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 | |
| 5438 | fi |
| 5439 | |
| 5440 | if test $ac_cv_header_stdc = yes; then |
| 5441 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5442 | if test "$cross_compiling" = yes; then |
| 5443 | : |
| 5444 | else |
| 5445 | cat >conftest.$ac_ext <<_ACEOF |
| 5446 | /* confdefs.h. */ |
| 5447 | _ACEOF |
| 5448 | cat confdefs.h >>conftest.$ac_ext |
| 5449 | cat >>conftest.$ac_ext <<_ACEOF |
| 5450 | /* end confdefs.h. */ |
| 5451 | #include <ctype.h> |
| 5452 | #include <stdlib.h> |
| 5453 | #if ((' ' & 0x0FF) == 0x020) |
| 5454 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5455 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5456 | #else |
| 5457 | # define ISLOWER(c) \ |
| 5458 | (('a' <= (c) && (c) <= 'i') \ |
| 5459 | || ('j' <= (c) && (c) <= 'r') \ |
| 5460 | || ('s' <= (c) && (c) <= 'z')) |
| 5461 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5462 | #endif |
| 5463 | |
| 5464 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5465 | int |
| 5466 | main () |
| 5467 | { |
| 5468 | int i; |
| 5469 | for (i = 0; i < 256; i++) |
| 5470 | if (XOR (islower (i), ISLOWER (i)) |
| 5471 | || toupper (i) != TOUPPER (i)) |
| 5472 | return 2; |
| 5473 | return 0; |
| 5474 | } |
| 5475 | _ACEOF |
| 5476 | rm -f conftest$ac_exeext |
| 5477 | if { (ac_try="$ac_link" |
| 5478 | case "(($ac_try" in |
| 5479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5480 | *) ac_try_echo=$ac_try;; |
| 5481 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5483 | (eval "$ac_link") 2>&5 |
| 5484 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5486 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5487 | { (case "(($ac_try" in |
| 5488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5489 | *) ac_try_echo=$ac_try;; |
| 5490 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5492 | (eval "$ac_try") 2>&5 |
| 5493 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5495 | (exit $ac_status); }; }; then |
| 5496 | : |
| 5497 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5498 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5499 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5501 | |
| 5502 | ( exit $ac_status ) |
| 5503 | ac_cv_header_stdc=no |
| 5504 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5506 | fi |
| 5507 | |
| 5508 | |
| 5509 | fi |
| 5510 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5511 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5512 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5513 | if test $ac_cv_header_stdc = yes; then |
| 5514 | |
| 5515 | cat >>confdefs.h <<\_ACEOF |
| 5516 | #define STDC_HEADERS 1 |
| 5517 | _ACEOF |
| 5518 | |
| 5519 | fi |
| 5520 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5521 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5522 | |
| 5523 | |
| 5524 | |
| 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5532 | inttypes.h stdint.h unistd.h |
| 5533 | do |
| 5534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5535 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5539 | else |
| 5540 | cat >conftest.$ac_ext <<_ACEOF |
| 5541 | /* confdefs.h. */ |
| 5542 | _ACEOF |
| 5543 | cat confdefs.h >>conftest.$ac_ext |
| 5544 | cat >>conftest.$ac_ext <<_ACEOF |
| 5545 | /* end confdefs.h. */ |
| 5546 | $ac_includes_default |
| 5547 | |
| 5548 | #include <$ac_header> |
| 5549 | _ACEOF |
| 5550 | rm -f conftest.$ac_objext |
| 5551 | if { (ac_try="$ac_compile" |
| 5552 | case "(($ac_try" in |
| 5553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5554 | *) ac_try_echo=$ac_try;; |
| 5555 | esac |
| 5556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5557 | (eval "$ac_compile") 2>conftest.er1 |
| 5558 | ac_status=$? |
| 5559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5560 | rm -f conftest.er1 |
| 5561 | cat conftest.err >&5 |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5563 | (exit $ac_status); } && { |
| 5564 | test -z "$ac_c_werror_flag" || |
| 5565 | test ! -s conftest.err |
| 5566 | } && test -s conftest.$ac_objext; then |
| 5567 | eval "$as_ac_Header=yes" |
| 5568 | else |
| 5569 | echo "$as_me: failed program was:" >&5 |
| 5570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5571 | |
| 5572 | eval "$as_ac_Header=no" |
| 5573 | fi |
| 5574 | |
| 5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5576 | fi |
| 5577 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5579 | echo "${ECHO_T}$ac_res" >&6; } |
| 5580 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5581 | cat >>confdefs.h <<_ACEOF |
| 5582 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5583 | _ACEOF |
| 5584 | |
| 5585 | fi |
| 5586 | |
| 5587 | done |
| 5588 | |
| 5589 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
| 5595 | |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5626 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5627 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5628 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5629 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5638 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5639 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5640 | |
| 5641 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5642 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5643 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5644 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5645 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5646 | 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] | 5647 | 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] | 5648 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5649 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5650 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5651 | 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] | 5652 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5653 | 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] | 5654 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5655 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5656 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5657 | 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] | 5658 | 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] | 5659 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5660 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5661 | 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] | 5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5663 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5664 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5665 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5666 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5668 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5669 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5670 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5672 | /* confdefs.h. */ |
| 5673 | _ACEOF |
| 5674 | cat confdefs.h >>conftest.$ac_ext |
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
| 5676 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5677 | $ac_includes_default |
| 5678 | #include <$ac_header> |
| 5679 | _ACEOF |
| 5680 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5681 | if { (ac_try="$ac_compile" |
| 5682 | case "(($ac_try" in |
| 5683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5684 | *) ac_try_echo=$ac_try;; |
| 5685 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5687 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5690 | rm -f conftest.er1 |
| 5691 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5693 | (exit $ac_status); } && { |
| 5694 | test -z "$ac_c_werror_flag" || |
| 5695 | test ! -s conftest.err |
| 5696 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5697 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5698 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5701 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5702 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5703 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5704 | |
| 5705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5706 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5707 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5708 | |
| 5709 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5710 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5713 | /* confdefs.h. */ |
| 5714 | _ACEOF |
| 5715 | cat confdefs.h >>conftest.$ac_ext |
| 5716 | cat >>conftest.$ac_ext <<_ACEOF |
| 5717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | #include <$ac_header> |
| 5719 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5720 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5721 | case "(($ac_try" in |
| 5722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5723 | *) ac_try_echo=$ac_try;; |
| 5724 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5727 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5728 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5729 | rm -f conftest.er1 |
| 5730 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5732 | (exit $ac_status); } >/dev/null && { |
| 5733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5734 | test ! -s conftest.err |
| 5735 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5736 | ac_header_preproc=yes |
| 5737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5738 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5741 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5742 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5744 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5745 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5746 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5747 | |
| 5748 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5750 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5754 | 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] | 5755 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5756 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5757 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5769 | 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] | 5770 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5771 | ## -------------------------------------- ## |
| 5772 | ## Report this to http://bugs.python.org/ ## |
| 5773 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5774 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5775 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5776 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5780 | 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] | 5781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5782 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5783 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5784 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5787 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | |
| 5789 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5791 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5793 | _ACEOF |
| 5794 | |
| 5795 | fi |
| 5796 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5797 | done |
| 5798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5804 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5805 | 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] | 5806 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5807 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5808 | 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] | 5809 | 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] | 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5813 | /* confdefs.h. */ |
| 5814 | _ACEOF |
| 5815 | cat confdefs.h >>conftest.$ac_ext |
| 5816 | cat >>conftest.$ac_ext <<_ACEOF |
| 5817 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5818 | #include <sys/types.h> |
| 5819 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5821 | int |
| 5822 | main () |
| 5823 | { |
| 5824 | if ((DIR *) 0) |
| 5825 | return 0; |
| 5826 | ; |
| 5827 | return 0; |
| 5828 | } |
| 5829 | _ACEOF |
| 5830 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5831 | if { (ac_try="$ac_compile" |
| 5832 | case "(($ac_try" in |
| 5833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5834 | *) ac_try_echo=$ac_try;; |
| 5835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5840 | rm -f conftest.er1 |
| 5841 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5843 | (exit $ac_status); } && { |
| 5844 | test -z "$ac_c_werror_flag" || |
| 5845 | test ! -s conftest.err |
| 5846 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5847 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5852 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5854 | |
| 5855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5856 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5859 | echo "${ECHO_T}$ac_res" >&6; } |
| 5860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5861 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5862 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5863 | _ACEOF |
| 5864 | |
| 5865 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5866 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5867 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5868 | done |
| 5869 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5870 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5871 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5872 | 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] | 5873 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5876 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5878 | /* confdefs.h. */ |
| 5879 | _ACEOF |
| 5880 | cat confdefs.h >>conftest.$ac_ext |
| 5881 | cat >>conftest.$ac_ext <<_ACEOF |
| 5882 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5883 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5884 | /* Override any GCC internal prototype to avoid an error. |
| 5885 | Use char because int might match the return type of a GCC |
| 5886 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | #ifdef __cplusplus |
| 5888 | extern "C" |
| 5889 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5890 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | int |
| 5892 | main () |
| 5893 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5894 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5895 | ; |
| 5896 | return 0; |
| 5897 | } |
| 5898 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5899 | for ac_lib in '' dir; do |
| 5900 | if test -z "$ac_lib"; then |
| 5901 | ac_res="none required" |
| 5902 | else |
| 5903 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5904 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5905 | fi |
| 5906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5907 | if { (ac_try="$ac_link" |
| 5908 | case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5913 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5914 | ac_status=$? |
| 5915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5916 | rm -f conftest.er1 |
| 5917 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5919 | (exit $ac_status); } && { |
| 5920 | test -z "$ac_c_werror_flag" || |
| 5921 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5922 | } && test -s conftest$ac_exeext && |
| 5923 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5924 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5925 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5929 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5931 | |
| 5932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5933 | conftest$ac_exeext |
| 5934 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5935 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5936 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5937 | done |
| 5938 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5939 | : |
| 5940 | else |
| 5941 | ac_cv_search_opendir=no |
| 5942 | fi |
| 5943 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | LIBS=$ac_func_search_save_LIBS |
| 5945 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5946 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5947 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5948 | ac_res=$ac_cv_search_opendir |
| 5949 | if test "$ac_res" != no; then |
| 5950 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5951 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5955 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5956 | 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] | 5957 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5959 | else |
| 5960 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5961 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5962 | /* confdefs.h. */ |
| 5963 | _ACEOF |
| 5964 | cat confdefs.h >>conftest.$ac_ext |
| 5965 | cat >>conftest.$ac_ext <<_ACEOF |
| 5966 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5968 | /* Override any GCC internal prototype to avoid an error. |
| 5969 | Use char because int might match the return type of a GCC |
| 5970 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5971 | #ifdef __cplusplus |
| 5972 | extern "C" |
| 5973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5974 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5975 | int |
| 5976 | main () |
| 5977 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5978 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5979 | ; |
| 5980 | return 0; |
| 5981 | } |
| 5982 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5983 | for ac_lib in '' x; do |
| 5984 | if test -z "$ac_lib"; then |
| 5985 | ac_res="none required" |
| 5986 | else |
| 5987 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5988 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5989 | fi |
| 5990 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5991 | if { (ac_try="$ac_link" |
| 5992 | case "(($ac_try" in |
| 5993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5994 | *) ac_try_echo=$ac_try;; |
| 5995 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5997 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5998 | ac_status=$? |
| 5999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6000 | rm -f conftest.er1 |
| 6001 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6003 | (exit $ac_status); } && { |
| 6004 | test -z "$ac_c_werror_flag" || |
| 6005 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6006 | } && test -s conftest$ac_exeext && |
| 6007 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6008 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6009 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6012 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6013 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6014 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6015 | |
| 6016 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6017 | conftest$ac_exeext |
| 6018 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6019 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6020 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6021 | done |
| 6022 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6023 | : |
| 6024 | else |
| 6025 | ac_cv_search_opendir=no |
| 6026 | fi |
| 6027 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6028 | LIBS=$ac_func_search_save_LIBS |
| 6029 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6030 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6031 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6032 | ac_res=$ac_cv_search_opendir |
| 6033 | if test "$ac_res" != no; then |
| 6034 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6035 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6036 | fi |
| 6037 | |
| 6038 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6039 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6040 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6041 | 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] | 6042 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6044 | else |
| 6045 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6046 | /* confdefs.h. */ |
| 6047 | _ACEOF |
| 6048 | cat confdefs.h >>conftest.$ac_ext |
| 6049 | cat >>conftest.$ac_ext <<_ACEOF |
| 6050 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6051 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6052 | int |
| 6053 | main () |
| 6054 | { |
| 6055 | return makedev(0, 0); |
| 6056 | ; |
| 6057 | return 0; |
| 6058 | } |
| 6059 | _ACEOF |
| 6060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6061 | if { (ac_try="$ac_link" |
| 6062 | case "(($ac_try" in |
| 6063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6064 | *) ac_try_echo=$ac_try;; |
| 6065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6067 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6070 | rm -f conftest.er1 |
| 6071 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6073 | (exit $ac_status); } && { |
| 6074 | test -z "$ac_c_werror_flag" || |
| 6075 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6076 | } && test -s conftest$ac_exeext && |
| 6077 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6078 | ac_cv_header_sys_types_h_makedev=yes |
| 6079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6083 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6084 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6085 | |
| 6086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6087 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6088 | |
| 6089 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6090 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6091 | 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] | 6092 | |
| 6093 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6094 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6095 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6096 | 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] | 6097 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6099 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6100 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6101 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6102 | else |
| 6103 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6104 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6105 | 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] | 6106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6107 | /* confdefs.h. */ |
| 6108 | _ACEOF |
| 6109 | cat confdefs.h >>conftest.$ac_ext |
| 6110 | cat >>conftest.$ac_ext <<_ACEOF |
| 6111 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6112 | $ac_includes_default |
| 6113 | #include <sys/mkdev.h> |
| 6114 | _ACEOF |
| 6115 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6116 | if { (ac_try="$ac_compile" |
| 6117 | case "(($ac_try" in |
| 6118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6119 | *) ac_try_echo=$ac_try;; |
| 6120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6122 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6125 | rm -f conftest.er1 |
| 6126 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6128 | (exit $ac_status); } && { |
| 6129 | test -z "$ac_c_werror_flag" || |
| 6130 | test ! -s conftest.err |
| 6131 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6132 | ac_header_compiler=yes |
| 6133 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6137 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6138 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6139 | |
| 6140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6141 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6142 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6143 | |
| 6144 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6145 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6146 | 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] | 6147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6148 | /* confdefs.h. */ |
| 6149 | _ACEOF |
| 6150 | cat confdefs.h >>conftest.$ac_ext |
| 6151 | cat >>conftest.$ac_ext <<_ACEOF |
| 6152 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6153 | #include <sys/mkdev.h> |
| 6154 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6155 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6156 | case "(($ac_try" in |
| 6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6158 | *) ac_try_echo=$ac_try;; |
| 6159 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6161 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6162 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6163 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6164 | rm -f conftest.er1 |
| 6165 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6167 | (exit $ac_status); } >/dev/null && { |
| 6168 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6169 | test ! -s conftest.err |
| 6170 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6171 | ac_header_preproc=yes |
| 6172 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6175 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6176 | ac_header_preproc=no |
| 6177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6178 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6179 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6180 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6181 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6182 | |
| 6183 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6185 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6186 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6187 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6188 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6189 | 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] | 6190 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6191 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6192 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6193 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6194 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6195 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6196 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6197 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6198 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6199 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6200 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6201 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6202 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6203 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6204 | 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] | 6205 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6206 | ## -------------------------------------- ## |
| 6207 | ## Report this to http://bugs.python.org/ ## |
| 6208 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6209 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6210 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6211 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6212 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6213 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6214 | 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] | 6215 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6217 | else |
| 6218 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6219 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6220 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6221 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6222 | |
| 6223 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6224 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6225 | |
| 6226 | cat >>confdefs.h <<\_ACEOF |
| 6227 | #define MAJOR_IN_MKDEV 1 |
| 6228 | _ACEOF |
| 6229 | |
| 6230 | fi |
| 6231 | |
| 6232 | |
| 6233 | |
| 6234 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6235 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6236 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6237 | 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] | 6238 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6240 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6241 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6242 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | else |
| 6244 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6246 | 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] | 6247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6248 | /* confdefs.h. */ |
| 6249 | _ACEOF |
| 6250 | cat confdefs.h >>conftest.$ac_ext |
| 6251 | cat >>conftest.$ac_ext <<_ACEOF |
| 6252 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | $ac_includes_default |
| 6254 | #include <sys/sysmacros.h> |
| 6255 | _ACEOF |
| 6256 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6257 | if { (ac_try="$ac_compile" |
| 6258 | case "(($ac_try" in |
| 6259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6260 | *) ac_try_echo=$ac_try;; |
| 6261 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6263 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6266 | rm -f conftest.er1 |
| 6267 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6269 | (exit $ac_status); } && { |
| 6270 | test -z "$ac_c_werror_flag" || |
| 6271 | test ! -s conftest.err |
| 6272 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6273 | ac_header_compiler=yes |
| 6274 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6278 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6279 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6280 | |
| 6281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6282 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6283 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6284 | |
| 6285 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6286 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6287 | 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] | 6288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6289 | /* confdefs.h. */ |
| 6290 | _ACEOF |
| 6291 | cat confdefs.h >>conftest.$ac_ext |
| 6292 | cat >>conftest.$ac_ext <<_ACEOF |
| 6293 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6294 | #include <sys/sysmacros.h> |
| 6295 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6296 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6297 | case "(($ac_try" in |
| 6298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6299 | *) ac_try_echo=$ac_try;; |
| 6300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6302 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6303 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6304 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6305 | rm -f conftest.er1 |
| 6306 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6308 | (exit $ac_status); } >/dev/null && { |
| 6309 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6310 | test ! -s conftest.err |
| 6311 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6312 | ac_header_preproc=yes |
| 6313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6316 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6317 | ac_header_preproc=no |
| 6318 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6319 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6320 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6321 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6322 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6323 | |
| 6324 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6326 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6327 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6328 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6329 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6330 | 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] | 6331 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6332 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6333 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6334 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6335 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6336 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6337 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6338 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6339 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6340 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6341 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6342 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6343 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6344 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6345 | 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] | 6346 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6347 | ## -------------------------------------- ## |
| 6348 | ## Report this to http://bugs.python.org/ ## |
| 6349 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6350 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6351 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6352 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6353 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6354 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6355 | 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] | 6356 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6358 | else |
| 6359 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6360 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6361 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6362 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6363 | |
| 6364 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6365 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6366 | |
| 6367 | cat >>confdefs.h <<\_ACEOF |
| 6368 | #define MAJOR_IN_SYSMACROS 1 |
| 6369 | _ACEOF |
| 6370 | |
| 6371 | fi |
| 6372 | |
| 6373 | |
| 6374 | fi |
| 6375 | fi |
| 6376 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6377 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6378 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6379 | |
| 6380 | for ac_header in term.h |
| 6381 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6382 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6383 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6385 | 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] | 6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6387 | else |
| 6388 | cat >conftest.$ac_ext <<_ACEOF |
| 6389 | /* confdefs.h. */ |
| 6390 | _ACEOF |
| 6391 | cat confdefs.h >>conftest.$ac_ext |
| 6392 | cat >>conftest.$ac_ext <<_ACEOF |
| 6393 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6394 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6395 | #ifdef HAVE_CURSES_H |
| 6396 | #include <curses.h> |
| 6397 | #endif |
| 6398 | |
| 6399 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6400 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6401 | _ACEOF |
| 6402 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6403 | if { (ac_try="$ac_compile" |
| 6404 | case "(($ac_try" in |
| 6405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6406 | *) ac_try_echo=$ac_try;; |
| 6407 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6409 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6410 | ac_status=$? |
| 6411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6412 | rm -f conftest.er1 |
| 6413 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6415 | (exit $ac_status); } && { |
| 6416 | test -z "$ac_c_werror_flag" || |
| 6417 | test ! -s conftest.err |
| 6418 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6419 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6420 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6421 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6423 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6424 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6425 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6426 | |
| 6427 | 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] | 6428 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6429 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6431 | echo "${ECHO_T}$ac_res" >&6; } |
| 6432 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6433 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6434 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6435 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6436 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6437 | fi |
| 6438 | |
| 6439 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6440 | |
| 6441 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6442 | # On Linux, netlink.h requires asm/types.h |
| 6443 | |
| 6444 | for ac_header in linux/netlink.h |
| 6445 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6449 | 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] | 6450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6451 | else |
| 6452 | cat >conftest.$ac_ext <<_ACEOF |
| 6453 | /* confdefs.h. */ |
| 6454 | _ACEOF |
| 6455 | cat confdefs.h >>conftest.$ac_ext |
| 6456 | cat >>conftest.$ac_ext <<_ACEOF |
| 6457 | /* end confdefs.h. */ |
| 6458 | |
| 6459 | #ifdef HAVE_ASM_TYPES_H |
| 6460 | #include <asm/types.h> |
| 6461 | #endif |
| 6462 | #ifdef HAVE_SYS_SOCKET_H |
| 6463 | #include <sys/socket.h> |
| 6464 | #endif |
| 6465 | |
| 6466 | |
| 6467 | #include <$ac_header> |
| 6468 | _ACEOF |
| 6469 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6470 | if { (ac_try="$ac_compile" |
| 6471 | case "(($ac_try" in |
| 6472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6473 | *) ac_try_echo=$ac_try;; |
| 6474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6477 | ac_status=$? |
| 6478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6479 | rm -f conftest.er1 |
| 6480 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6482 | (exit $ac_status); } && { |
| 6483 | test -z "$ac_c_werror_flag" || |
| 6484 | test ! -s conftest.err |
| 6485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6486 | eval "$as_ac_Header=yes" |
| 6487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6488 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6491 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6493 | |
| 6494 | 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] | 6495 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6496 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6497 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6498 | echo "${ECHO_T}$ac_res" >&6; } |
| 6499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6500 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6502 | _ACEOF |
| 6503 | |
| 6504 | fi |
| 6505 | |
| 6506 | done |
| 6507 | |
| 6508 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6509 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6510 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6511 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6512 | 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] | 6513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6514 | /* confdefs.h. */ |
| 6515 | _ACEOF |
| 6516 | cat confdefs.h >>conftest.$ac_ext |
| 6517 | cat >>conftest.$ac_ext <<_ACEOF |
| 6518 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6519 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | |
| 6521 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6523 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6524 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6526 | |
| 6527 | |
| 6528 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6529 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6531 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6532 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6533 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 6534 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6535 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6536 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6537 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6538 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6539 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6540 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6541 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6543 | /* confdefs.h. */ |
| 6544 | _ACEOF |
| 6545 | cat confdefs.h >>conftest.$ac_ext |
| 6546 | cat >>conftest.$ac_ext <<_ACEOF |
| 6547 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6548 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6549 | int |
| 6550 | main () |
| 6551 | { |
| 6552 | makedev(0, 0) |
| 6553 | ; |
| 6554 | return 0; |
| 6555 | } |
| 6556 | _ACEOF |
| 6557 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6558 | if { (ac_try="$ac_link" |
| 6559 | case "(($ac_try" in |
| 6560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6561 | *) ac_try_echo=$ac_try;; |
| 6562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6564 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6567 | rm -f conftest.er1 |
| 6568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6570 | (exit $ac_status); } && { |
| 6571 | test -z "$ac_c_werror_flag" || |
| 6572 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6573 | } && test -s conftest$ac_exeext && |
| 6574 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6575 | ac_cv_has_makedev=yes |
| 6576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6580 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6582 | |
| 6583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6584 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6585 | if test "$ac_cv_has_makedev" = "no"; then |
| 6586 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6588 | /* confdefs.h. */ |
| 6589 | _ACEOF |
| 6590 | cat confdefs.h >>conftest.$ac_ext |
| 6591 | cat >>conftest.$ac_ext <<_ACEOF |
| 6592 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6593 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6594 | #define _OSF_SOURCE 1 |
| 6595 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6596 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6597 | int |
| 6598 | main () |
| 6599 | { |
| 6600 | makedev(0, 0) |
| 6601 | ; |
| 6602 | return 0; |
| 6603 | } |
| 6604 | _ACEOF |
| 6605 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6606 | if { (ac_try="$ac_link" |
| 6607 | case "(($ac_try" in |
| 6608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6609 | *) ac_try_echo=$ac_try;; |
| 6610 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6612 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6613 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6615 | rm -f conftest.er1 |
| 6616 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6618 | (exit $ac_status); } && { |
| 6619 | test -z "$ac_c_werror_flag" || |
| 6620 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6621 | } && test -s conftest$ac_exeext && |
| 6622 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6623 | ac_cv_has_makedev=yes |
| 6624 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6627 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6628 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6629 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6630 | |
| 6631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6632 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6633 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6634 | |
| 6635 | cat >>confdefs.h <<\_ACEOF |
| 6636 | #define _OSF_SOURCE 1 |
| 6637 | _ACEOF |
| 6638 | |
| 6639 | fi |
| 6640 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6641 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6642 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6643 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6644 | |
| 6645 | cat >>confdefs.h <<\_ACEOF |
| 6646 | #define HAVE_MAKEDEV 1 |
| 6647 | _ACEOF |
| 6648 | |
| 6649 | fi |
| 6650 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6651 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6652 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6653 | # defined, but the compiler does not support pragma redefine_extname, |
| 6654 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6655 | # structures (such as rlimit64) without declaring them. As a |
| 6656 | # work-around, disable LFS on such configurations |
| 6657 | |
| 6658 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6659 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6660 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6662 | /* confdefs.h. */ |
| 6663 | _ACEOF |
| 6664 | cat confdefs.h >>conftest.$ac_ext |
| 6665 | cat >>conftest.$ac_ext <<_ACEOF |
| 6666 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6667 | |
| 6668 | #define _LARGEFILE_SOURCE 1 |
| 6669 | #define _FILE_OFFSET_BITS 64 |
| 6670 | #include <sys/resource.h> |
| 6671 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6672 | int |
| 6673 | main () |
| 6674 | { |
| 6675 | struct rlimit foo; |
| 6676 | ; |
| 6677 | return 0; |
| 6678 | } |
| 6679 | _ACEOF |
| 6680 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6681 | if { (ac_try="$ac_compile" |
| 6682 | case "(($ac_try" in |
| 6683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6684 | *) ac_try_echo=$ac_try;; |
| 6685 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6687 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6690 | rm -f conftest.er1 |
| 6691 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6693 | (exit $ac_status); } && { |
| 6694 | test -z "$ac_c_werror_flag" || |
| 6695 | test ! -s conftest.err |
| 6696 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6697 | sol_lfs_bug=no |
| 6698 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6701 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6702 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6703 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6704 | |
| 6705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6706 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6707 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6708 | if test "$sol_lfs_bug" = "yes"; then |
| 6709 | use_lfs=no |
| 6710 | fi |
| 6711 | |
| 6712 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6713 | # Two defines needed to enable largefile support on various platforms |
| 6714 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6716 | cat >>confdefs.h <<\_ACEOF |
| 6717 | #define _LARGEFILE_SOURCE 1 |
| 6718 | _ACEOF |
| 6719 | |
| 6720 | |
| 6721 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6722 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6724 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6725 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6726 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6727 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6728 | cat >> confdefs.h <<\EOF |
| 6729 | #if defined(SCO_DS) |
| 6730 | #undef _OFF_T |
| 6731 | #endif |
| 6732 | EOF |
| 6733 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6734 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6735 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6736 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6739 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6740 | cat >conftest.$ac_ext <<_ACEOF |
| 6741 | /* confdefs.h. */ |
| 6742 | _ACEOF |
| 6743 | cat confdefs.h >>conftest.$ac_ext |
| 6744 | cat >>conftest.$ac_ext <<_ACEOF |
| 6745 | /* end confdefs.h. */ |
| 6746 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6747 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6748 | int |
| 6749 | main () |
| 6750 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6751 | if ((ac__type_new_ *) 0) |
| 6752 | return 0; |
| 6753 | if (sizeof (ac__type_new_)) |
| 6754 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6755 | ; |
| 6756 | return 0; |
| 6757 | } |
| 6758 | _ACEOF |
| 6759 | rm -f conftest.$ac_objext |
| 6760 | if { (ac_try="$ac_compile" |
| 6761 | case "(($ac_try" in |
| 6762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6763 | *) ac_try_echo=$ac_try;; |
| 6764 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6766 | (eval "$ac_compile") 2>conftest.er1 |
| 6767 | ac_status=$? |
| 6768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6769 | rm -f conftest.er1 |
| 6770 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6772 | (exit $ac_status); } && { |
| 6773 | test -z "$ac_c_werror_flag" || |
| 6774 | test ! -s conftest.err |
| 6775 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6776 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6777 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6780 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6781 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6782 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6783 | |
| 6784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6785 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6787 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6788 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | |
| 6792 | cat >>confdefs.h <<_ACEOF |
| 6793 | #define mode_t int |
| 6794 | _ACEOF |
| 6795 | |
| 6796 | fi |
| 6797 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6798 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6799 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6803 | cat >conftest.$ac_ext <<_ACEOF |
| 6804 | /* confdefs.h. */ |
| 6805 | _ACEOF |
| 6806 | cat confdefs.h >>conftest.$ac_ext |
| 6807 | cat >>conftest.$ac_ext <<_ACEOF |
| 6808 | /* end confdefs.h. */ |
| 6809 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6810 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6811 | int |
| 6812 | main () |
| 6813 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6814 | if ((ac__type_new_ *) 0) |
| 6815 | return 0; |
| 6816 | if (sizeof (ac__type_new_)) |
| 6817 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6818 | ; |
| 6819 | return 0; |
| 6820 | } |
| 6821 | _ACEOF |
| 6822 | rm -f conftest.$ac_objext |
| 6823 | if { (ac_try="$ac_compile" |
| 6824 | case "(($ac_try" in |
| 6825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6826 | *) ac_try_echo=$ac_try;; |
| 6827 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6829 | (eval "$ac_compile") 2>conftest.er1 |
| 6830 | ac_status=$? |
| 6831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6832 | rm -f conftest.er1 |
| 6833 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6835 | (exit $ac_status); } && { |
| 6836 | test -z "$ac_c_werror_flag" || |
| 6837 | test ! -s conftest.err |
| 6838 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6839 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6843 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6844 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6845 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6846 | |
| 6847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6848 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6849 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6850 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6851 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6852 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6854 | |
| 6855 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6856 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | _ACEOF |
| 6858 | |
| 6859 | fi |
| 6860 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6861 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6862 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6865 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6866 | cat >conftest.$ac_ext <<_ACEOF |
| 6867 | /* confdefs.h. */ |
| 6868 | _ACEOF |
| 6869 | cat confdefs.h >>conftest.$ac_ext |
| 6870 | cat >>conftest.$ac_ext <<_ACEOF |
| 6871 | /* end confdefs.h. */ |
| 6872 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6873 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6874 | int |
| 6875 | main () |
| 6876 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6877 | if ((ac__type_new_ *) 0) |
| 6878 | return 0; |
| 6879 | if (sizeof (ac__type_new_)) |
| 6880 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6881 | ; |
| 6882 | return 0; |
| 6883 | } |
| 6884 | _ACEOF |
| 6885 | rm -f conftest.$ac_objext |
| 6886 | if { (ac_try="$ac_compile" |
| 6887 | case "(($ac_try" in |
| 6888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6889 | *) ac_try_echo=$ac_try;; |
| 6890 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6892 | (eval "$ac_compile") 2>conftest.er1 |
| 6893 | ac_status=$? |
| 6894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6895 | rm -f conftest.er1 |
| 6896 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6898 | (exit $ac_status); } && { |
| 6899 | test -z "$ac_c_werror_flag" || |
| 6900 | test ! -s conftest.err |
| 6901 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6902 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6903 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6906 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6907 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6908 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6909 | |
| 6910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6911 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6912 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6913 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6914 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6915 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6917 | |
| 6918 | cat >>confdefs.h <<_ACEOF |
| 6919 | #define pid_t int |
| 6920 | _ACEOF |
| 6921 | |
| 6922 | fi |
| 6923 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6924 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6925 | 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] | 6926 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | else |
| 6929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6930 | /* confdefs.h. */ |
| 6931 | _ACEOF |
| 6932 | cat confdefs.h >>conftest.$ac_ext |
| 6933 | cat >>conftest.$ac_ext <<_ACEOF |
| 6934 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6935 | #include <sys/types.h> |
| 6936 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | int |
| 6939 | main () |
| 6940 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6941 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | ; |
| 6943 | return 0; |
| 6944 | } |
| 6945 | _ACEOF |
| 6946 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6947 | if { (ac_try="$ac_compile" |
| 6948 | case "(($ac_try" in |
| 6949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6950 | *) ac_try_echo=$ac_try;; |
| 6951 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6953 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6954 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6956 | rm -f conftest.er1 |
| 6957 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6959 | (exit $ac_status); } && { |
| 6960 | test -z "$ac_c_werror_flag" || |
| 6961 | test ! -s conftest.err |
| 6962 | } && test -s conftest.$ac_objext; then |
| 6963 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6968 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6969 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6970 | |
| 6971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6973 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6974 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6977 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6979 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6980 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6981 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6982 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6985 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6986 | cat >conftest.$ac_ext <<_ACEOF |
| 6987 | /* confdefs.h. */ |
| 6988 | _ACEOF |
| 6989 | cat confdefs.h >>conftest.$ac_ext |
| 6990 | cat >>conftest.$ac_ext <<_ACEOF |
| 6991 | /* end confdefs.h. */ |
| 6992 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6993 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6994 | int |
| 6995 | main () |
| 6996 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6997 | if ((ac__type_new_ *) 0) |
| 6998 | return 0; |
| 6999 | if (sizeof (ac__type_new_)) |
| 7000 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7001 | ; |
| 7002 | return 0; |
| 7003 | } |
| 7004 | _ACEOF |
| 7005 | rm -f conftest.$ac_objext |
| 7006 | if { (ac_try="$ac_compile" |
| 7007 | case "(($ac_try" in |
| 7008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7009 | *) ac_try_echo=$ac_try;; |
| 7010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7012 | (eval "$ac_compile") 2>conftest.er1 |
| 7013 | ac_status=$? |
| 7014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7015 | rm -f conftest.er1 |
| 7016 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7018 | (exit $ac_status); } && { |
| 7019 | test -z "$ac_c_werror_flag" || |
| 7020 | test ! -s conftest.err |
| 7021 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7022 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7023 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7026 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7027 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7028 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7029 | |
| 7030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7031 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7032 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7033 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7034 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 | |
| 7038 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7039 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | _ACEOF |
| 7041 | |
| 7042 | fi |
| 7043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7044 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7045 | 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] | 7046 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7048 | else |
| 7049 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7050 | /* confdefs.h. */ |
| 7051 | _ACEOF |
| 7052 | cat confdefs.h >>conftest.$ac_ext |
| 7053 | cat >>conftest.$ac_ext <<_ACEOF |
| 7054 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7055 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | |
| 7057 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7059 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7060 | ac_cv_type_uid_t=yes |
| 7061 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7062 | ac_cv_type_uid_t=no |
| 7063 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 7064 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7065 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7066 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7067 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7068 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7069 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7071 | cat >>confdefs.h <<\_ACEOF |
| 7072 | #define uid_t int |
| 7073 | _ACEOF |
| 7074 | |
| 7075 | |
| 7076 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7077 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7078 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7079 | |
| 7080 | fi |
| 7081 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7082 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7083 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7084 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7085 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7087 | else |
| 7088 | ac_cv_c_uint32_t=no |
| 7089 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7090 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7091 | cat >conftest.$ac_ext <<_ACEOF |
| 7092 | /* confdefs.h. */ |
| 7093 | _ACEOF |
| 7094 | cat confdefs.h >>conftest.$ac_ext |
| 7095 | cat >>conftest.$ac_ext <<_ACEOF |
| 7096 | /* end confdefs.h. */ |
| 7097 | $ac_includes_default |
| 7098 | int |
| 7099 | main () |
| 7100 | { |
| 7101 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7102 | test_array [0] = 0 |
| 7103 | |
| 7104 | ; |
| 7105 | return 0; |
| 7106 | } |
| 7107 | _ACEOF |
| 7108 | rm -f conftest.$ac_objext |
| 7109 | if { (ac_try="$ac_compile" |
| 7110 | case "(($ac_try" in |
| 7111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7112 | *) ac_try_echo=$ac_try;; |
| 7113 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7115 | (eval "$ac_compile") 2>conftest.er1 |
| 7116 | ac_status=$? |
| 7117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7118 | rm -f conftest.er1 |
| 7119 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7121 | (exit $ac_status); } && { |
| 7122 | test -z "$ac_c_werror_flag" || |
| 7123 | test ! -s conftest.err |
| 7124 | } && test -s conftest.$ac_objext; then |
| 7125 | case $ac_type in |
| 7126 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7127 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7128 | esac |
| 7129 | |
| 7130 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7131 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7133 | |
| 7134 | |
| 7135 | fi |
| 7136 | |
| 7137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7138 | test "$ac_cv_c_uint32_t" != no && break |
| 7139 | done |
| 7140 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7141 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7142 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7143 | case $ac_cv_c_uint32_t in #( |
| 7144 | no|yes) ;; #( |
| 7145 | *) |
| 7146 | |
| 7147 | cat >>confdefs.h <<\_ACEOF |
| 7148 | #define _UINT32_T 1 |
| 7149 | _ACEOF |
| 7150 | |
| 7151 | |
| 7152 | cat >>confdefs.h <<_ACEOF |
| 7153 | #define uint32_t $ac_cv_c_uint32_t |
| 7154 | _ACEOF |
| 7155 | ;; |
| 7156 | esac |
| 7157 | |
| 7158 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7159 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7160 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7161 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7163 | else |
| 7164 | ac_cv_c_uint64_t=no |
| 7165 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7166 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7167 | cat >conftest.$ac_ext <<_ACEOF |
| 7168 | /* confdefs.h. */ |
| 7169 | _ACEOF |
| 7170 | cat confdefs.h >>conftest.$ac_ext |
| 7171 | cat >>conftest.$ac_ext <<_ACEOF |
| 7172 | /* end confdefs.h. */ |
| 7173 | $ac_includes_default |
| 7174 | int |
| 7175 | main () |
| 7176 | { |
| 7177 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7178 | test_array [0] = 0 |
| 7179 | |
| 7180 | ; |
| 7181 | return 0; |
| 7182 | } |
| 7183 | _ACEOF |
| 7184 | rm -f conftest.$ac_objext |
| 7185 | if { (ac_try="$ac_compile" |
| 7186 | case "(($ac_try" in |
| 7187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7188 | *) ac_try_echo=$ac_try;; |
| 7189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7191 | (eval "$ac_compile") 2>conftest.er1 |
| 7192 | ac_status=$? |
| 7193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7194 | rm -f conftest.er1 |
| 7195 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7197 | (exit $ac_status); } && { |
| 7198 | test -z "$ac_c_werror_flag" || |
| 7199 | test ! -s conftest.err |
| 7200 | } && test -s conftest.$ac_objext; then |
| 7201 | case $ac_type in |
| 7202 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7203 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7204 | esac |
| 7205 | |
| 7206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7207 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7209 | |
| 7210 | |
| 7211 | fi |
| 7212 | |
| 7213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7214 | test "$ac_cv_c_uint64_t" != no && break |
| 7215 | done |
| 7216 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7217 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7218 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7219 | case $ac_cv_c_uint64_t in #( |
| 7220 | no|yes) ;; #( |
| 7221 | *) |
| 7222 | |
| 7223 | cat >>confdefs.h <<\_ACEOF |
| 7224 | #define _UINT64_T 1 |
| 7225 | _ACEOF |
| 7226 | |
| 7227 | |
| 7228 | cat >>confdefs.h <<_ACEOF |
| 7229 | #define uint64_t $ac_cv_c_uint64_t |
| 7230 | _ACEOF |
| 7231 | ;; |
| 7232 | esac |
| 7233 | |
| 7234 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7235 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7236 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7237 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7239 | else |
| 7240 | ac_cv_c_int32_t=no |
| 7241 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7242 | 'long long int' 'short int' 'signed char'; do |
| 7243 | cat >conftest.$ac_ext <<_ACEOF |
| 7244 | /* confdefs.h. */ |
| 7245 | _ACEOF |
| 7246 | cat confdefs.h >>conftest.$ac_ext |
| 7247 | cat >>conftest.$ac_ext <<_ACEOF |
| 7248 | /* end confdefs.h. */ |
| 7249 | $ac_includes_default |
| 7250 | int |
| 7251 | main () |
| 7252 | { |
| 7253 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7254 | test_array [0] = 0 |
| 7255 | |
| 7256 | ; |
| 7257 | return 0; |
| 7258 | } |
| 7259 | _ACEOF |
| 7260 | rm -f conftest.$ac_objext |
| 7261 | if { (ac_try="$ac_compile" |
| 7262 | case "(($ac_try" in |
| 7263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7264 | *) ac_try_echo=$ac_try;; |
| 7265 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7267 | (eval "$ac_compile") 2>conftest.er1 |
| 7268 | ac_status=$? |
| 7269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7270 | rm -f conftest.er1 |
| 7271 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7273 | (exit $ac_status); } && { |
| 7274 | test -z "$ac_c_werror_flag" || |
| 7275 | test ! -s conftest.err |
| 7276 | } && test -s conftest.$ac_objext; then |
| 7277 | cat >conftest.$ac_ext <<_ACEOF |
| 7278 | /* confdefs.h. */ |
| 7279 | _ACEOF |
| 7280 | cat confdefs.h >>conftest.$ac_ext |
| 7281 | cat >>conftest.$ac_ext <<_ACEOF |
| 7282 | /* end confdefs.h. */ |
| 7283 | $ac_includes_default |
| 7284 | int |
| 7285 | main () |
| 7286 | { |
| 7287 | 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] | 7288 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7289 | test_array [0] = 0 |
| 7290 | |
| 7291 | ; |
| 7292 | return 0; |
| 7293 | } |
| 7294 | _ACEOF |
| 7295 | rm -f conftest.$ac_objext |
| 7296 | if { (ac_try="$ac_compile" |
| 7297 | case "(($ac_try" in |
| 7298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7299 | *) ac_try_echo=$ac_try;; |
| 7300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7302 | (eval "$ac_compile") 2>conftest.er1 |
| 7303 | ac_status=$? |
| 7304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7305 | rm -f conftest.er1 |
| 7306 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7308 | (exit $ac_status); } && { |
| 7309 | test -z "$ac_c_werror_flag" || |
| 7310 | test ! -s conftest.err |
| 7311 | } && test -s conftest.$ac_objext; then |
| 7312 | : |
| 7313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7314 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7316 | |
| 7317 | case $ac_type in |
| 7318 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7319 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7320 | esac |
| 7321 | |
| 7322 | fi |
| 7323 | |
| 7324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7325 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7326 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7328 | |
| 7329 | |
| 7330 | fi |
| 7331 | |
| 7332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7333 | test "$ac_cv_c_int32_t" != no && break |
| 7334 | done |
| 7335 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7336 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7337 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7338 | case $ac_cv_c_int32_t in #( |
| 7339 | no|yes) ;; #( |
| 7340 | *) |
| 7341 | |
| 7342 | cat >>confdefs.h <<_ACEOF |
| 7343 | #define int32_t $ac_cv_c_int32_t |
| 7344 | _ACEOF |
| 7345 | ;; |
| 7346 | esac |
| 7347 | |
| 7348 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7349 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7350 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7351 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7353 | else |
| 7354 | ac_cv_c_int64_t=no |
| 7355 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7356 | 'long long int' 'short int' 'signed char'; do |
| 7357 | cat >conftest.$ac_ext <<_ACEOF |
| 7358 | /* confdefs.h. */ |
| 7359 | _ACEOF |
| 7360 | cat confdefs.h >>conftest.$ac_ext |
| 7361 | cat >>conftest.$ac_ext <<_ACEOF |
| 7362 | /* end confdefs.h. */ |
| 7363 | $ac_includes_default |
| 7364 | int |
| 7365 | main () |
| 7366 | { |
| 7367 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7368 | test_array [0] = 0 |
| 7369 | |
| 7370 | ; |
| 7371 | return 0; |
| 7372 | } |
| 7373 | _ACEOF |
| 7374 | rm -f conftest.$ac_objext |
| 7375 | if { (ac_try="$ac_compile" |
| 7376 | case "(($ac_try" in |
| 7377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7378 | *) ac_try_echo=$ac_try;; |
| 7379 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7381 | (eval "$ac_compile") 2>conftest.er1 |
| 7382 | ac_status=$? |
| 7383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7384 | rm -f conftest.er1 |
| 7385 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7387 | (exit $ac_status); } && { |
| 7388 | test -z "$ac_c_werror_flag" || |
| 7389 | test ! -s conftest.err |
| 7390 | } && test -s conftest.$ac_objext; then |
| 7391 | cat >conftest.$ac_ext <<_ACEOF |
| 7392 | /* confdefs.h. */ |
| 7393 | _ACEOF |
| 7394 | cat confdefs.h >>conftest.$ac_ext |
| 7395 | cat >>conftest.$ac_ext <<_ACEOF |
| 7396 | /* end confdefs.h. */ |
| 7397 | $ac_includes_default |
| 7398 | int |
| 7399 | main () |
| 7400 | { |
| 7401 | 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] | 7402 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7403 | test_array [0] = 0 |
| 7404 | |
| 7405 | ; |
| 7406 | return 0; |
| 7407 | } |
| 7408 | _ACEOF |
| 7409 | rm -f conftest.$ac_objext |
| 7410 | if { (ac_try="$ac_compile" |
| 7411 | case "(($ac_try" in |
| 7412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7413 | *) ac_try_echo=$ac_try;; |
| 7414 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7416 | (eval "$ac_compile") 2>conftest.er1 |
| 7417 | ac_status=$? |
| 7418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7419 | rm -f conftest.er1 |
| 7420 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7422 | (exit $ac_status); } && { |
| 7423 | test -z "$ac_c_werror_flag" || |
| 7424 | test ! -s conftest.err |
| 7425 | } && test -s conftest.$ac_objext; then |
| 7426 | : |
| 7427 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7428 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7430 | |
| 7431 | case $ac_type in |
| 7432 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7433 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7434 | esac |
| 7435 | |
| 7436 | fi |
| 7437 | |
| 7438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7439 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7440 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7442 | |
| 7443 | |
| 7444 | fi |
| 7445 | |
| 7446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7447 | test "$ac_cv_c_int64_t" != no && break |
| 7448 | done |
| 7449 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7450 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7451 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7452 | case $ac_cv_c_int64_t in #( |
| 7453 | no|yes) ;; #( |
| 7454 | *) |
| 7455 | |
| 7456 | cat >>confdefs.h <<_ACEOF |
| 7457 | #define int64_t $ac_cv_c_int64_t |
| 7458 | _ACEOF |
| 7459 | ;; |
| 7460 | esac |
| 7461 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7462 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7463 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7464 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7466 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7467 | cat >conftest.$ac_ext <<_ACEOF |
| 7468 | /* confdefs.h. */ |
| 7469 | _ACEOF |
| 7470 | cat confdefs.h >>conftest.$ac_ext |
| 7471 | cat >>conftest.$ac_ext <<_ACEOF |
| 7472 | /* end confdefs.h. */ |
| 7473 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7474 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7475 | int |
| 7476 | main () |
| 7477 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7478 | if ((ac__type_new_ *) 0) |
| 7479 | return 0; |
| 7480 | if (sizeof (ac__type_new_)) |
| 7481 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7482 | ; |
| 7483 | return 0; |
| 7484 | } |
| 7485 | _ACEOF |
| 7486 | rm -f conftest.$ac_objext |
| 7487 | if { (ac_try="$ac_compile" |
| 7488 | case "(($ac_try" in |
| 7489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7490 | *) ac_try_echo=$ac_try;; |
| 7491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7493 | (eval "$ac_compile") 2>conftest.er1 |
| 7494 | ac_status=$? |
| 7495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7496 | rm -f conftest.er1 |
| 7497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7499 | (exit $ac_status); } && { |
| 7500 | test -z "$ac_c_werror_flag" || |
| 7501 | test ! -s conftest.err |
| 7502 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7503 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7505 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7507 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7508 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7509 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7510 | |
| 7511 | 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] | 7512 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7513 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7514 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7515 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7516 | |
| 7517 | cat >>confdefs.h <<\_ACEOF |
| 7518 | #define HAVE_SSIZE_T 1 |
| 7519 | _ACEOF |
| 7520 | |
| 7521 | fi |
| 7522 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7523 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7524 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7525 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7526 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7527 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7528 | if test "${ac_cv_type_int+set}" = set; then |
| 7529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7530 | else |
| 7531 | cat >conftest.$ac_ext <<_ACEOF |
| 7532 | /* confdefs.h. */ |
| 7533 | _ACEOF |
| 7534 | cat confdefs.h >>conftest.$ac_ext |
| 7535 | cat >>conftest.$ac_ext <<_ACEOF |
| 7536 | /* end confdefs.h. */ |
| 7537 | $ac_includes_default |
| 7538 | typedef int ac__type_new_; |
| 7539 | int |
| 7540 | main () |
| 7541 | { |
| 7542 | if ((ac__type_new_ *) 0) |
| 7543 | return 0; |
| 7544 | if (sizeof (ac__type_new_)) |
| 7545 | return 0; |
| 7546 | ; |
| 7547 | return 0; |
| 7548 | } |
| 7549 | _ACEOF |
| 7550 | rm -f conftest.$ac_objext |
| 7551 | if { (ac_try="$ac_compile" |
| 7552 | case "(($ac_try" in |
| 7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7554 | *) ac_try_echo=$ac_try;; |
| 7555 | esac |
| 7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7557 | (eval "$ac_compile") 2>conftest.er1 |
| 7558 | ac_status=$? |
| 7559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7560 | rm -f conftest.er1 |
| 7561 | cat conftest.err >&5 |
| 7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7563 | (exit $ac_status); } && { |
| 7564 | test -z "$ac_c_werror_flag" || |
| 7565 | test ! -s conftest.err |
| 7566 | } && test -s conftest.$ac_objext; then |
| 7567 | ac_cv_type_int=yes |
| 7568 | else |
| 7569 | echo "$as_me: failed program was:" >&5 |
| 7570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7571 | |
| 7572 | ac_cv_type_int=no |
| 7573 | fi |
| 7574 | |
| 7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7576 | fi |
| 7577 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7578 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7580 | # The cast to long int works around a bug in the HP C Compiler |
| 7581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7583 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7584 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7585 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | if test "$cross_compiling" = yes; then |
| 7590 | # Depending upon the size, compute the lo and hi bounds. |
| 7591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7592 | /* confdefs.h. */ |
| 7593 | _ACEOF |
| 7594 | cat confdefs.h >>conftest.$ac_ext |
| 7595 | cat >>conftest.$ac_ext <<_ACEOF |
| 7596 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7598 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7599 | int |
| 7600 | main () |
| 7601 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7602 | 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] | 7603 | test_array [0] = 0 |
| 7604 | |
| 7605 | ; |
| 7606 | return 0; |
| 7607 | } |
| 7608 | _ACEOF |
| 7609 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7610 | if { (ac_try="$ac_compile" |
| 7611 | case "(($ac_try" in |
| 7612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7613 | *) ac_try_echo=$ac_try;; |
| 7614 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7616 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7617 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7619 | rm -f conftest.er1 |
| 7620 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7622 | (exit $ac_status); } && { |
| 7623 | test -z "$ac_c_werror_flag" || |
| 7624 | test ! -s conftest.err |
| 7625 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7626 | ac_lo=0 ac_mid=0 |
| 7627 | while :; do |
| 7628 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7629 | /* confdefs.h. */ |
| 7630 | _ACEOF |
| 7631 | cat confdefs.h >>conftest.$ac_ext |
| 7632 | cat >>conftest.$ac_ext <<_ACEOF |
| 7633 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7635 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | int |
| 7637 | main () |
| 7638 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7639 | 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] | 7640 | test_array [0] = 0 |
| 7641 | |
| 7642 | ; |
| 7643 | return 0; |
| 7644 | } |
| 7645 | _ACEOF |
| 7646 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7647 | if { (ac_try="$ac_compile" |
| 7648 | case "(($ac_try" in |
| 7649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7650 | *) ac_try_echo=$ac_try;; |
| 7651 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7653 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7656 | rm -f conftest.er1 |
| 7657 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7659 | (exit $ac_status); } && { |
| 7660 | test -z "$ac_c_werror_flag" || |
| 7661 | test ! -s conftest.err |
| 7662 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | ac_hi=$ac_mid; break |
| 7664 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7667 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7668 | ac_lo=`expr $ac_mid + 1` |
| 7669 | if test $ac_lo -le $ac_mid; then |
| 7670 | ac_lo= ac_hi= |
| 7671 | break |
| 7672 | fi |
| 7673 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7674 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7675 | |
| 7676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | done |
| 7678 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7679 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7683 | /* confdefs.h. */ |
| 7684 | _ACEOF |
| 7685 | cat confdefs.h >>conftest.$ac_ext |
| 7686 | cat >>conftest.$ac_ext <<_ACEOF |
| 7687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7688 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7689 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7690 | int |
| 7691 | main () |
| 7692 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7693 | 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] | 7694 | test_array [0] = 0 |
| 7695 | |
| 7696 | ; |
| 7697 | return 0; |
| 7698 | } |
| 7699 | _ACEOF |
| 7700 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7701 | if { (ac_try="$ac_compile" |
| 7702 | case "(($ac_try" in |
| 7703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7704 | *) ac_try_echo=$ac_try;; |
| 7705 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7707 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7710 | rm -f conftest.er1 |
| 7711 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7713 | (exit $ac_status); } && { |
| 7714 | test -z "$ac_c_werror_flag" || |
| 7715 | test ! -s conftest.err |
| 7716 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | ac_hi=-1 ac_mid=-1 |
| 7718 | while :; do |
| 7719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7720 | /* confdefs.h. */ |
| 7721 | _ACEOF |
| 7722 | cat confdefs.h >>conftest.$ac_ext |
| 7723 | cat >>conftest.$ac_ext <<_ACEOF |
| 7724 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7726 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | int |
| 7728 | main () |
| 7729 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7730 | 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] | 7731 | test_array [0] = 0 |
| 7732 | |
| 7733 | ; |
| 7734 | return 0; |
| 7735 | } |
| 7736 | _ACEOF |
| 7737 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7738 | if { (ac_try="$ac_compile" |
| 7739 | case "(($ac_try" in |
| 7740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7741 | *) ac_try_echo=$ac_try;; |
| 7742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7747 | rm -f conftest.er1 |
| 7748 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7750 | (exit $ac_status); } && { |
| 7751 | test -z "$ac_c_werror_flag" || |
| 7752 | test ! -s conftest.err |
| 7753 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | ac_lo=$ac_mid; break |
| 7755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7759 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7760 | if test $ac_mid -le $ac_hi; then |
| 7761 | ac_lo= ac_hi= |
| 7762 | break |
| 7763 | fi |
| 7764 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7766 | |
| 7767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | done |
| 7769 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7773 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7775 | |
| 7776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7778 | |
| 7779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | # Binary search between lo and hi bounds. |
| 7781 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7782 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7784 | /* confdefs.h. */ |
| 7785 | _ACEOF |
| 7786 | cat confdefs.h >>conftest.$ac_ext |
| 7787 | cat >>conftest.$ac_ext <<_ACEOF |
| 7788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7789 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7790 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | int |
| 7792 | main () |
| 7793 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7794 | 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] | 7795 | test_array [0] = 0 |
| 7796 | |
| 7797 | ; |
| 7798 | return 0; |
| 7799 | } |
| 7800 | _ACEOF |
| 7801 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7802 | if { (ac_try="$ac_compile" |
| 7803 | case "(($ac_try" in |
| 7804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7805 | *) ac_try_echo=$ac_try;; |
| 7806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7808 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7811 | rm -f conftest.er1 |
| 7812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7814 | (exit $ac_status); } && { |
| 7815 | test -z "$ac_c_werror_flag" || |
| 7816 | test ! -s conftest.err |
| 7817 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | ac_hi=$ac_mid |
| 7819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7823 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7825 | |
| 7826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | done |
| 7828 | case $ac_lo in |
| 7829 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7830 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7831 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7832 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7833 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7834 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7835 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7836 | else |
| 7837 | ac_cv_sizeof_int=0 |
| 7838 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7840 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7842 | /* confdefs.h. */ |
| 7843 | _ACEOF |
| 7844 | cat confdefs.h >>conftest.$ac_ext |
| 7845 | cat >>conftest.$ac_ext <<_ACEOF |
| 7846 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7848 | typedef int ac__type_sizeof_; |
| 7849 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7850 | 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] | 7851 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7853 | int |
| 7854 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7855 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | |
| 7857 | FILE *f = fopen ("conftest.val", "w"); |
| 7858 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7859 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7860 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7862 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7863 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7864 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7865 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | } |
| 7867 | else |
| 7868 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7870 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7871 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7872 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7874 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | |
| 7876 | ; |
| 7877 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7878 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | _ACEOF |
| 7880 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7881 | if { (ac_try="$ac_link" |
| 7882 | case "(($ac_try" in |
| 7883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7884 | *) ac_try_echo=$ac_try;; |
| 7885 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7887 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7888 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7891 | { (case "(($ac_try" in |
| 7892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7893 | *) ac_try_echo=$ac_try;; |
| 7894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7896 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | (exit $ac_status); }; }; then |
| 7900 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7902 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7906 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7907 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7908 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7910 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7911 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7912 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7913 | else |
| 7914 | ac_cv_sizeof_int=0 |
| 7915 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7916 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7917 | 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] | 7918 | fi |
| 7919 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7920 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7921 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7922 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7923 | |
| 7924 | |
| 7925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7927 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7929 | |
| 7930 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7931 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7932 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7933 | if test "${ac_cv_type_long+set}" = set; then |
| 7934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7935 | else |
| 7936 | cat >conftest.$ac_ext <<_ACEOF |
| 7937 | /* confdefs.h. */ |
| 7938 | _ACEOF |
| 7939 | cat confdefs.h >>conftest.$ac_ext |
| 7940 | cat >>conftest.$ac_ext <<_ACEOF |
| 7941 | /* end confdefs.h. */ |
| 7942 | $ac_includes_default |
| 7943 | typedef long ac__type_new_; |
| 7944 | int |
| 7945 | main () |
| 7946 | { |
| 7947 | if ((ac__type_new_ *) 0) |
| 7948 | return 0; |
| 7949 | if (sizeof (ac__type_new_)) |
| 7950 | return 0; |
| 7951 | ; |
| 7952 | return 0; |
| 7953 | } |
| 7954 | _ACEOF |
| 7955 | rm -f conftest.$ac_objext |
| 7956 | if { (ac_try="$ac_compile" |
| 7957 | case "(($ac_try" in |
| 7958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7959 | *) ac_try_echo=$ac_try;; |
| 7960 | esac |
| 7961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7962 | (eval "$ac_compile") 2>conftest.er1 |
| 7963 | ac_status=$? |
| 7964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7965 | rm -f conftest.er1 |
| 7966 | cat conftest.err >&5 |
| 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7968 | (exit $ac_status); } && { |
| 7969 | test -z "$ac_c_werror_flag" || |
| 7970 | test ! -s conftest.err |
| 7971 | } && test -s conftest.$ac_objext; then |
| 7972 | ac_cv_type_long=yes |
| 7973 | else |
| 7974 | echo "$as_me: failed program was:" >&5 |
| 7975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7976 | |
| 7977 | ac_cv_type_long=no |
| 7978 | fi |
| 7979 | |
| 7980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7981 | fi |
| 7982 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7983 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7984 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7985 | # The cast to long int works around a bug in the HP C Compiler |
| 7986 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7987 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7988 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7989 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7990 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | if test "$cross_compiling" = yes; then |
| 7995 | # Depending upon the size, compute the lo and hi bounds. |
| 7996 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7997 | /* confdefs.h. */ |
| 7998 | _ACEOF |
| 7999 | cat confdefs.h >>conftest.$ac_ext |
| 8000 | cat >>conftest.$ac_ext <<_ACEOF |
| 8001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8003 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | int |
| 8005 | main () |
| 8006 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8007 | 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] | 8008 | test_array [0] = 0 |
| 8009 | |
| 8010 | ; |
| 8011 | return 0; |
| 8012 | } |
| 8013 | _ACEOF |
| 8014 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8015 | if { (ac_try="$ac_compile" |
| 8016 | case "(($ac_try" in |
| 8017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8018 | *) ac_try_echo=$ac_try;; |
| 8019 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8021 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8022 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8024 | rm -f conftest.er1 |
| 8025 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8027 | (exit $ac_status); } && { |
| 8028 | test -z "$ac_c_werror_flag" || |
| 8029 | test ! -s conftest.err |
| 8030 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | ac_lo=0 ac_mid=0 |
| 8032 | while :; do |
| 8033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8034 | /* confdefs.h. */ |
| 8035 | _ACEOF |
| 8036 | cat confdefs.h >>conftest.$ac_ext |
| 8037 | cat >>conftest.$ac_ext <<_ACEOF |
| 8038 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8039 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8040 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | int |
| 8042 | main () |
| 8043 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8044 | 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] | 8045 | test_array [0] = 0 |
| 8046 | |
| 8047 | ; |
| 8048 | return 0; |
| 8049 | } |
| 8050 | _ACEOF |
| 8051 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8052 | if { (ac_try="$ac_compile" |
| 8053 | case "(($ac_try" in |
| 8054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8055 | *) ac_try_echo=$ac_try;; |
| 8056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8058 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8061 | rm -f conftest.er1 |
| 8062 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8064 | (exit $ac_status); } && { |
| 8065 | test -z "$ac_c_werror_flag" || |
| 8066 | test ! -s conftest.err |
| 8067 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | ac_hi=$ac_mid; break |
| 8069 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8073 | ac_lo=`expr $ac_mid + 1` |
| 8074 | if test $ac_lo -le $ac_mid; then |
| 8075 | ac_lo= ac_hi= |
| 8076 | break |
| 8077 | fi |
| 8078 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8080 | |
| 8081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | done |
| 8083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8088 | /* confdefs.h. */ |
| 8089 | _ACEOF |
| 8090 | cat confdefs.h >>conftest.$ac_ext |
| 8091 | cat >>conftest.$ac_ext <<_ACEOF |
| 8092 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8094 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | int |
| 8096 | main () |
| 8097 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8098 | 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] | 8099 | test_array [0] = 0 |
| 8100 | |
| 8101 | ; |
| 8102 | return 0; |
| 8103 | } |
| 8104 | _ACEOF |
| 8105 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8106 | if { (ac_try="$ac_compile" |
| 8107 | case "(($ac_try" in |
| 8108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8109 | *) ac_try_echo=$ac_try;; |
| 8110 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8112 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8115 | rm -f conftest.er1 |
| 8116 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8118 | (exit $ac_status); } && { |
| 8119 | test -z "$ac_c_werror_flag" || |
| 8120 | test ! -s conftest.err |
| 8121 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | ac_hi=-1 ac_mid=-1 |
| 8123 | while :; do |
| 8124 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8125 | /* confdefs.h. */ |
| 8126 | _ACEOF |
| 8127 | cat confdefs.h >>conftest.$ac_ext |
| 8128 | cat >>conftest.$ac_ext <<_ACEOF |
| 8129 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8131 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | int |
| 8133 | main () |
| 8134 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8135 | 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] | 8136 | test_array [0] = 0 |
| 8137 | |
| 8138 | ; |
| 8139 | return 0; |
| 8140 | } |
| 8141 | _ACEOF |
| 8142 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8143 | if { (ac_try="$ac_compile" |
| 8144 | case "(($ac_try" in |
| 8145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8146 | *) ac_try_echo=$ac_try;; |
| 8147 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8149 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8152 | rm -f conftest.er1 |
| 8153 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8155 | (exit $ac_status); } && { |
| 8156 | test -z "$ac_c_werror_flag" || |
| 8157 | test ! -s conftest.err |
| 8158 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | ac_lo=$ac_mid; break |
| 8160 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8161 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8163 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8164 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8165 | if test $ac_mid -le $ac_hi; then |
| 8166 | ac_lo= ac_hi= |
| 8167 | break |
| 8168 | fi |
| 8169 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8171 | |
| 8172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | done |
| 8174 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8178 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8180 | |
| 8181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8183 | |
| 8184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | # Binary search between lo and hi bounds. |
| 8186 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8187 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8188 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8189 | /* confdefs.h. */ |
| 8190 | _ACEOF |
| 8191 | cat confdefs.h >>conftest.$ac_ext |
| 8192 | cat >>conftest.$ac_ext <<_ACEOF |
| 8193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8195 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | int |
| 8197 | main () |
| 8198 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8199 | 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] | 8200 | test_array [0] = 0 |
| 8201 | |
| 8202 | ; |
| 8203 | return 0; |
| 8204 | } |
| 8205 | _ACEOF |
| 8206 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8207 | if { (ac_try="$ac_compile" |
| 8208 | case "(($ac_try" in |
| 8209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8210 | *) ac_try_echo=$ac_try;; |
| 8211 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8213 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8216 | rm -f conftest.er1 |
| 8217 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8219 | (exit $ac_status); } && { |
| 8220 | test -z "$ac_c_werror_flag" || |
| 8221 | test ! -s conftest.err |
| 8222 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | ac_hi=$ac_mid |
| 8224 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8227 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8228 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8229 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8230 | |
| 8231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | done |
| 8233 | case $ac_lo in |
| 8234 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8235 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8236 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8237 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8238 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8239 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8240 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8241 | else |
| 8242 | ac_cv_sizeof_long=0 |
| 8243 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8244 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8246 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8247 | /* confdefs.h. */ |
| 8248 | _ACEOF |
| 8249 | cat confdefs.h >>conftest.$ac_ext |
| 8250 | cat >>conftest.$ac_ext <<_ACEOF |
| 8251 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8253 | typedef long ac__type_sizeof_; |
| 8254 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8255 | 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] | 8256 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8257 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | int |
| 8259 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8260 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | |
| 8262 | FILE *f = fopen ("conftest.val", "w"); |
| 8263 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8264 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8265 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8267 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8268 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8269 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8270 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | } |
| 8272 | else |
| 8273 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8275 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8276 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8277 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8279 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | |
| 8281 | ; |
| 8282 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8283 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | _ACEOF |
| 8285 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8286 | if { (ac_try="$ac_link" |
| 8287 | case "(($ac_try" in |
| 8288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8289 | *) ac_try_echo=$ac_try;; |
| 8290 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8292 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8296 | { (case "(($ac_try" in |
| 8297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8298 | *) ac_try_echo=$ac_try;; |
| 8299 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8301 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | (exit $ac_status); }; }; then |
| 8305 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8306 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8307 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8312 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8314 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8315 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8316 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8317 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8318 | else |
| 8319 | ac_cv_sizeof_long=0 |
| 8320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8322 | 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] | 8323 | fi |
| 8324 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8325 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8326 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8327 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8328 | |
| 8329 | |
| 8330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8332 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8334 | |
| 8335 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8336 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8337 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8338 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8340 | else |
| 8341 | cat >conftest.$ac_ext <<_ACEOF |
| 8342 | /* confdefs.h. */ |
| 8343 | _ACEOF |
| 8344 | cat confdefs.h >>conftest.$ac_ext |
| 8345 | cat >>conftest.$ac_ext <<_ACEOF |
| 8346 | /* end confdefs.h. */ |
| 8347 | $ac_includes_default |
| 8348 | typedef void * ac__type_new_; |
| 8349 | int |
| 8350 | main () |
| 8351 | { |
| 8352 | if ((ac__type_new_ *) 0) |
| 8353 | return 0; |
| 8354 | if (sizeof (ac__type_new_)) |
| 8355 | return 0; |
| 8356 | ; |
| 8357 | return 0; |
| 8358 | } |
| 8359 | _ACEOF |
| 8360 | rm -f conftest.$ac_objext |
| 8361 | if { (ac_try="$ac_compile" |
| 8362 | case "(($ac_try" in |
| 8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8364 | *) ac_try_echo=$ac_try;; |
| 8365 | esac |
| 8366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8367 | (eval "$ac_compile") 2>conftest.er1 |
| 8368 | ac_status=$? |
| 8369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8370 | rm -f conftest.er1 |
| 8371 | cat conftest.err >&5 |
| 8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8373 | (exit $ac_status); } && { |
| 8374 | test -z "$ac_c_werror_flag" || |
| 8375 | test ! -s conftest.err |
| 8376 | } && test -s conftest.$ac_objext; then |
| 8377 | ac_cv_type_void_p=yes |
| 8378 | else |
| 8379 | echo "$as_me: failed program was:" >&5 |
| 8380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8381 | |
| 8382 | ac_cv_type_void_p=no |
| 8383 | fi |
| 8384 | |
| 8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8386 | fi |
| 8387 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8388 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8390 | # The cast to long int works around a bug in the HP C Compiler |
| 8391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8393 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8394 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8395 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | if test "$cross_compiling" = yes; then |
| 8400 | # Depending upon the size, compute the lo and hi bounds. |
| 8401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8402 | /* confdefs.h. */ |
| 8403 | _ACEOF |
| 8404 | cat confdefs.h >>conftest.$ac_ext |
| 8405 | cat >>conftest.$ac_ext <<_ACEOF |
| 8406 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8408 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | int |
| 8410 | main () |
| 8411 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8412 | 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] | 8413 | test_array [0] = 0 |
| 8414 | |
| 8415 | ; |
| 8416 | return 0; |
| 8417 | } |
| 8418 | _ACEOF |
| 8419 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8420 | if { (ac_try="$ac_compile" |
| 8421 | case "(($ac_try" in |
| 8422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8423 | *) ac_try_echo=$ac_try;; |
| 8424 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8426 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8429 | rm -f conftest.er1 |
| 8430 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8432 | (exit $ac_status); } && { |
| 8433 | test -z "$ac_c_werror_flag" || |
| 8434 | test ! -s conftest.err |
| 8435 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | ac_lo=0 ac_mid=0 |
| 8437 | while :; do |
| 8438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8439 | /* confdefs.h. */ |
| 8440 | _ACEOF |
| 8441 | cat confdefs.h >>conftest.$ac_ext |
| 8442 | cat >>conftest.$ac_ext <<_ACEOF |
| 8443 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8445 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | int |
| 8447 | main () |
| 8448 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8449 | 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] | 8450 | test_array [0] = 0 |
| 8451 | |
| 8452 | ; |
| 8453 | return 0; |
| 8454 | } |
| 8455 | _ACEOF |
| 8456 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8457 | if { (ac_try="$ac_compile" |
| 8458 | case "(($ac_try" in |
| 8459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8460 | *) ac_try_echo=$ac_try;; |
| 8461 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8463 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8466 | rm -f conftest.er1 |
| 8467 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8469 | (exit $ac_status); } && { |
| 8470 | test -z "$ac_c_werror_flag" || |
| 8471 | test ! -s conftest.err |
| 8472 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | ac_hi=$ac_mid; break |
| 8474 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8478 | ac_lo=`expr $ac_mid + 1` |
| 8479 | if test $ac_lo -le $ac_mid; then |
| 8480 | ac_lo= ac_hi= |
| 8481 | break |
| 8482 | fi |
| 8483 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8485 | |
| 8486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | done |
| 8488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8493 | /* confdefs.h. */ |
| 8494 | _ACEOF |
| 8495 | cat confdefs.h >>conftest.$ac_ext |
| 8496 | cat >>conftest.$ac_ext <<_ACEOF |
| 8497 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8499 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | int |
| 8501 | main () |
| 8502 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8503 | 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] | 8504 | test_array [0] = 0 |
| 8505 | |
| 8506 | ; |
| 8507 | return 0; |
| 8508 | } |
| 8509 | _ACEOF |
| 8510 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8511 | if { (ac_try="$ac_compile" |
| 8512 | case "(($ac_try" in |
| 8513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8514 | *) ac_try_echo=$ac_try;; |
| 8515 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8517 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8520 | rm -f conftest.er1 |
| 8521 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8523 | (exit $ac_status); } && { |
| 8524 | test -z "$ac_c_werror_flag" || |
| 8525 | test ! -s conftest.err |
| 8526 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | ac_hi=-1 ac_mid=-1 |
| 8528 | while :; do |
| 8529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8530 | /* confdefs.h. */ |
| 8531 | _ACEOF |
| 8532 | cat confdefs.h >>conftest.$ac_ext |
| 8533 | cat >>conftest.$ac_ext <<_ACEOF |
| 8534 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8536 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | int |
| 8538 | main () |
| 8539 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8540 | 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] | 8541 | test_array [0] = 0 |
| 8542 | |
| 8543 | ; |
| 8544 | return 0; |
| 8545 | } |
| 8546 | _ACEOF |
| 8547 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8548 | if { (ac_try="$ac_compile" |
| 8549 | case "(($ac_try" in |
| 8550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8551 | *) ac_try_echo=$ac_try;; |
| 8552 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8554 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8557 | rm -f conftest.er1 |
| 8558 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8560 | (exit $ac_status); } && { |
| 8561 | test -z "$ac_c_werror_flag" || |
| 8562 | test ! -s conftest.err |
| 8563 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | ac_lo=$ac_mid; break |
| 8565 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8568 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8569 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8570 | if test $ac_mid -le $ac_hi; then |
| 8571 | ac_lo= ac_hi= |
| 8572 | break |
| 8573 | fi |
| 8574 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8576 | |
| 8577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8578 | done |
| 8579 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8583 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8585 | |
| 8586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8587 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8588 | |
| 8589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | # Binary search between lo and hi bounds. |
| 8591 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8592 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8594 | /* confdefs.h. */ |
| 8595 | _ACEOF |
| 8596 | cat confdefs.h >>conftest.$ac_ext |
| 8597 | cat >>conftest.$ac_ext <<_ACEOF |
| 8598 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8600 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | int |
| 8602 | main () |
| 8603 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8604 | 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] | 8605 | test_array [0] = 0 |
| 8606 | |
| 8607 | ; |
| 8608 | return 0; |
| 8609 | } |
| 8610 | _ACEOF |
| 8611 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8612 | if { (ac_try="$ac_compile" |
| 8613 | case "(($ac_try" in |
| 8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8615 | *) ac_try_echo=$ac_try;; |
| 8616 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8618 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8621 | rm -f conftest.er1 |
| 8622 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8624 | (exit $ac_status); } && { |
| 8625 | test -z "$ac_c_werror_flag" || |
| 8626 | test ! -s conftest.err |
| 8627 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | ac_hi=$ac_mid |
| 8629 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8632 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8633 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8635 | |
| 8636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8637 | done |
| 8638 | case $ac_lo in |
| 8639 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8640 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8641 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8642 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8643 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8644 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8645 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8646 | else |
| 8647 | ac_cv_sizeof_void_p=0 |
| 8648 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8652 | /* confdefs.h. */ |
| 8653 | _ACEOF |
| 8654 | cat confdefs.h >>conftest.$ac_ext |
| 8655 | cat >>conftest.$ac_ext <<_ACEOF |
| 8656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8658 | typedef void * ac__type_sizeof_; |
| 8659 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8660 | 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] | 8661 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | int |
| 8664 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8665 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | |
| 8667 | FILE *f = fopen ("conftest.val", "w"); |
| 8668 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8669 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8670 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8672 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8673 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8674 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8675 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | } |
| 8677 | else |
| 8678 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8680 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8681 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8682 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8684 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | |
| 8686 | ; |
| 8687 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8688 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | _ACEOF |
| 8690 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8691 | if { (ac_try="$ac_link" |
| 8692 | case "(($ac_try" in |
| 8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8694 | *) ac_try_echo=$ac_try;; |
| 8695 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8697 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8698 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8701 | { (case "(($ac_try" in |
| 8702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8703 | *) ac_try_echo=$ac_try;; |
| 8704 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8706 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | (exit $ac_status); }; }; then |
| 8710 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8712 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8717 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8718 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8719 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8720 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8721 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8722 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8723 | else |
| 8724 | ac_cv_sizeof_void_p=0 |
| 8725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8727 | 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] | 8728 | fi |
| 8729 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8730 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8731 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8732 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8733 | |
| 8734 | |
| 8735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8737 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8739 | |
| 8740 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8741 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8742 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8743 | if test "${ac_cv_type_short+set}" = set; then |
| 8744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8745 | else |
| 8746 | cat >conftest.$ac_ext <<_ACEOF |
| 8747 | /* confdefs.h. */ |
| 8748 | _ACEOF |
| 8749 | cat confdefs.h >>conftest.$ac_ext |
| 8750 | cat >>conftest.$ac_ext <<_ACEOF |
| 8751 | /* end confdefs.h. */ |
| 8752 | $ac_includes_default |
| 8753 | typedef short ac__type_new_; |
| 8754 | int |
| 8755 | main () |
| 8756 | { |
| 8757 | if ((ac__type_new_ *) 0) |
| 8758 | return 0; |
| 8759 | if (sizeof (ac__type_new_)) |
| 8760 | return 0; |
| 8761 | ; |
| 8762 | return 0; |
| 8763 | } |
| 8764 | _ACEOF |
| 8765 | rm -f conftest.$ac_objext |
| 8766 | if { (ac_try="$ac_compile" |
| 8767 | case "(($ac_try" in |
| 8768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8769 | *) ac_try_echo=$ac_try;; |
| 8770 | esac |
| 8771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8772 | (eval "$ac_compile") 2>conftest.er1 |
| 8773 | ac_status=$? |
| 8774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8775 | rm -f conftest.er1 |
| 8776 | cat conftest.err >&5 |
| 8777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8778 | (exit $ac_status); } && { |
| 8779 | test -z "$ac_c_werror_flag" || |
| 8780 | test ! -s conftest.err |
| 8781 | } && test -s conftest.$ac_objext; then |
| 8782 | ac_cv_type_short=yes |
| 8783 | else |
| 8784 | echo "$as_me: failed program was:" >&5 |
| 8785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8786 | |
| 8787 | ac_cv_type_short=no |
| 8788 | fi |
| 8789 | |
| 8790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8791 | fi |
| 8792 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8793 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8794 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8795 | # The cast to long int works around a bug in the HP C Compiler |
| 8796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8798 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8799 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8800 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | if test "$cross_compiling" = yes; then |
| 8805 | # Depending upon the size, compute the lo and hi bounds. |
| 8806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8807 | /* confdefs.h. */ |
| 8808 | _ACEOF |
| 8809 | cat confdefs.h >>conftest.$ac_ext |
| 8810 | cat >>conftest.$ac_ext <<_ACEOF |
| 8811 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8813 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | int |
| 8815 | main () |
| 8816 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8817 | 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] | 8818 | test_array [0] = 0 |
| 8819 | |
| 8820 | ; |
| 8821 | return 0; |
| 8822 | } |
| 8823 | _ACEOF |
| 8824 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8825 | if { (ac_try="$ac_compile" |
| 8826 | case "(($ac_try" in |
| 8827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8828 | *) ac_try_echo=$ac_try;; |
| 8829 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8831 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8834 | rm -f conftest.er1 |
| 8835 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8837 | (exit $ac_status); } && { |
| 8838 | test -z "$ac_c_werror_flag" || |
| 8839 | test ! -s conftest.err |
| 8840 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | ac_lo=0 ac_mid=0 |
| 8842 | while :; do |
| 8843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8844 | /* confdefs.h. */ |
| 8845 | _ACEOF |
| 8846 | cat confdefs.h >>conftest.$ac_ext |
| 8847 | cat >>conftest.$ac_ext <<_ACEOF |
| 8848 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8850 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | int |
| 8852 | main () |
| 8853 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8854 | 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] | 8855 | test_array [0] = 0 |
| 8856 | |
| 8857 | ; |
| 8858 | return 0; |
| 8859 | } |
| 8860 | _ACEOF |
| 8861 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8862 | if { (ac_try="$ac_compile" |
| 8863 | case "(($ac_try" in |
| 8864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8865 | *) ac_try_echo=$ac_try;; |
| 8866 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8868 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8871 | rm -f conftest.er1 |
| 8872 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8874 | (exit $ac_status); } && { |
| 8875 | test -z "$ac_c_werror_flag" || |
| 8876 | test ! -s conftest.err |
| 8877 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | ac_hi=$ac_mid; break |
| 8879 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8883 | ac_lo=`expr $ac_mid + 1` |
| 8884 | if test $ac_lo -le $ac_mid; then |
| 8885 | ac_lo= ac_hi= |
| 8886 | break |
| 8887 | fi |
| 8888 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8890 | |
| 8891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | done |
| 8893 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8896 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8898 | /* confdefs.h. */ |
| 8899 | _ACEOF |
| 8900 | cat confdefs.h >>conftest.$ac_ext |
| 8901 | cat >>conftest.$ac_ext <<_ACEOF |
| 8902 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8904 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | int |
| 8906 | main () |
| 8907 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8908 | 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] | 8909 | test_array [0] = 0 |
| 8910 | |
| 8911 | ; |
| 8912 | return 0; |
| 8913 | } |
| 8914 | _ACEOF |
| 8915 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8916 | if { (ac_try="$ac_compile" |
| 8917 | case "(($ac_try" in |
| 8918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8919 | *) ac_try_echo=$ac_try;; |
| 8920 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8922 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8925 | rm -f conftest.er1 |
| 8926 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8928 | (exit $ac_status); } && { |
| 8929 | test -z "$ac_c_werror_flag" || |
| 8930 | test ! -s conftest.err |
| 8931 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | ac_hi=-1 ac_mid=-1 |
| 8933 | while :; do |
| 8934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8935 | /* confdefs.h. */ |
| 8936 | _ACEOF |
| 8937 | cat confdefs.h >>conftest.$ac_ext |
| 8938 | cat >>conftest.$ac_ext <<_ACEOF |
| 8939 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8941 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | int |
| 8943 | main () |
| 8944 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8945 | 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] | 8946 | test_array [0] = 0 |
| 8947 | |
| 8948 | ; |
| 8949 | return 0; |
| 8950 | } |
| 8951 | _ACEOF |
| 8952 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8953 | if { (ac_try="$ac_compile" |
| 8954 | case "(($ac_try" in |
| 8955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8956 | *) ac_try_echo=$ac_try;; |
| 8957 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8959 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8962 | rm -f conftest.er1 |
| 8963 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8965 | (exit $ac_status); } && { |
| 8966 | test -z "$ac_c_werror_flag" || |
| 8967 | test ! -s conftest.err |
| 8968 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | ac_lo=$ac_mid; break |
| 8970 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8971 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8974 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8975 | if test $ac_mid -le $ac_hi; then |
| 8976 | ac_lo= ac_hi= |
| 8977 | break |
| 8978 | fi |
| 8979 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8981 | |
| 8982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | done |
| 8984 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8985 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8987 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8988 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8990 | |
| 8991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8993 | |
| 8994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | # Binary search between lo and hi bounds. |
| 8996 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8997 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8998 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8999 | /* confdefs.h. */ |
| 9000 | _ACEOF |
| 9001 | cat confdefs.h >>conftest.$ac_ext |
| 9002 | cat >>conftest.$ac_ext <<_ACEOF |
| 9003 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9005 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | int |
| 9007 | main () |
| 9008 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9009 | 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] | 9010 | test_array [0] = 0 |
| 9011 | |
| 9012 | ; |
| 9013 | return 0; |
| 9014 | } |
| 9015 | _ACEOF |
| 9016 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9017 | if { (ac_try="$ac_compile" |
| 9018 | case "(($ac_try" in |
| 9019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9020 | *) ac_try_echo=$ac_try;; |
| 9021 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9023 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9026 | rm -f conftest.er1 |
| 9027 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9029 | (exit $ac_status); } && { |
| 9030 | test -z "$ac_c_werror_flag" || |
| 9031 | test ! -s conftest.err |
| 9032 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | ac_hi=$ac_mid |
| 9034 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9037 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9038 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9040 | |
| 9041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | done |
| 9043 | case $ac_lo in |
| 9044 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9045 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9046 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9047 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9048 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9049 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9050 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9051 | else |
| 9052 | ac_cv_sizeof_short=0 |
| 9053 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9057 | /* confdefs.h. */ |
| 9058 | _ACEOF |
| 9059 | cat confdefs.h >>conftest.$ac_ext |
| 9060 | cat >>conftest.$ac_ext <<_ACEOF |
| 9061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9063 | typedef short ac__type_sizeof_; |
| 9064 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9065 | 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] | 9066 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | int |
| 9069 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9070 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | |
| 9072 | FILE *f = fopen ("conftest.val", "w"); |
| 9073 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9074 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9075 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9077 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9078 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9079 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9080 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | } |
| 9082 | else |
| 9083 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9085 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9086 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9087 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9089 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | |
| 9091 | ; |
| 9092 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9093 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | _ACEOF |
| 9095 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9096 | if { (ac_try="$ac_link" |
| 9097 | case "(($ac_try" in |
| 9098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9099 | *) ac_try_echo=$ac_try;; |
| 9100 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9102 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9106 | { (case "(($ac_try" in |
| 9107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9108 | *) ac_try_echo=$ac_try;; |
| 9109 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9111 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | (exit $ac_status); }; }; then |
| 9115 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9116 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9117 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9122 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9123 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9124 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9125 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9126 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9127 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9128 | else |
| 9129 | ac_cv_sizeof_short=0 |
| 9130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9132 | 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] | 9133 | fi |
| 9134 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9135 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9136 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9137 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9138 | |
| 9139 | |
| 9140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9142 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9144 | |
| 9145 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9146 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9147 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9148 | if test "${ac_cv_type_float+set}" = set; then |
| 9149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9150 | else |
| 9151 | cat >conftest.$ac_ext <<_ACEOF |
| 9152 | /* confdefs.h. */ |
| 9153 | _ACEOF |
| 9154 | cat confdefs.h >>conftest.$ac_ext |
| 9155 | cat >>conftest.$ac_ext <<_ACEOF |
| 9156 | /* end confdefs.h. */ |
| 9157 | $ac_includes_default |
| 9158 | typedef float ac__type_new_; |
| 9159 | int |
| 9160 | main () |
| 9161 | { |
| 9162 | if ((ac__type_new_ *) 0) |
| 9163 | return 0; |
| 9164 | if (sizeof (ac__type_new_)) |
| 9165 | return 0; |
| 9166 | ; |
| 9167 | return 0; |
| 9168 | } |
| 9169 | _ACEOF |
| 9170 | rm -f conftest.$ac_objext |
| 9171 | if { (ac_try="$ac_compile" |
| 9172 | case "(($ac_try" in |
| 9173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9174 | *) ac_try_echo=$ac_try;; |
| 9175 | esac |
| 9176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9177 | (eval "$ac_compile") 2>conftest.er1 |
| 9178 | ac_status=$? |
| 9179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9180 | rm -f conftest.er1 |
| 9181 | cat conftest.err >&5 |
| 9182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9183 | (exit $ac_status); } && { |
| 9184 | test -z "$ac_c_werror_flag" || |
| 9185 | test ! -s conftest.err |
| 9186 | } && test -s conftest.$ac_objext; then |
| 9187 | ac_cv_type_float=yes |
| 9188 | else |
| 9189 | echo "$as_me: failed program was:" >&5 |
| 9190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9191 | |
| 9192 | ac_cv_type_float=no |
| 9193 | fi |
| 9194 | |
| 9195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9196 | fi |
| 9197 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9198 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9200 | # The cast to long int works around a bug in the HP C Compiler |
| 9201 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9202 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9203 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9204 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9205 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | if test "$cross_compiling" = yes; then |
| 9210 | # Depending upon the size, compute the lo and hi bounds. |
| 9211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9212 | /* confdefs.h. */ |
| 9213 | _ACEOF |
| 9214 | cat confdefs.h >>conftest.$ac_ext |
| 9215 | cat >>conftest.$ac_ext <<_ACEOF |
| 9216 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9218 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | int |
| 9220 | main () |
| 9221 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9222 | 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] | 9223 | test_array [0] = 0 |
| 9224 | |
| 9225 | ; |
| 9226 | return 0; |
| 9227 | } |
| 9228 | _ACEOF |
| 9229 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9230 | if { (ac_try="$ac_compile" |
| 9231 | case "(($ac_try" in |
| 9232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9233 | *) ac_try_echo=$ac_try;; |
| 9234 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9236 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9239 | rm -f conftest.er1 |
| 9240 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9242 | (exit $ac_status); } && { |
| 9243 | test -z "$ac_c_werror_flag" || |
| 9244 | test ! -s conftest.err |
| 9245 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | ac_lo=0 ac_mid=0 |
| 9247 | while :; do |
| 9248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9249 | /* confdefs.h. */ |
| 9250 | _ACEOF |
| 9251 | cat confdefs.h >>conftest.$ac_ext |
| 9252 | cat >>conftest.$ac_ext <<_ACEOF |
| 9253 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9255 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | int |
| 9257 | main () |
| 9258 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9259 | 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] | 9260 | test_array [0] = 0 |
| 9261 | |
| 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
| 9266 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9267 | if { (ac_try="$ac_compile" |
| 9268 | case "(($ac_try" in |
| 9269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9270 | *) ac_try_echo=$ac_try;; |
| 9271 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9273 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9276 | rm -f conftest.er1 |
| 9277 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9279 | (exit $ac_status); } && { |
| 9280 | test -z "$ac_c_werror_flag" || |
| 9281 | test ! -s conftest.err |
| 9282 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | ac_hi=$ac_mid; break |
| 9284 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9288 | ac_lo=`expr $ac_mid + 1` |
| 9289 | if test $ac_lo -le $ac_mid; then |
| 9290 | ac_lo= ac_hi= |
| 9291 | break |
| 9292 | fi |
| 9293 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9295 | |
| 9296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | done |
| 9298 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9301 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9303 | /* confdefs.h. */ |
| 9304 | _ACEOF |
| 9305 | cat confdefs.h >>conftest.$ac_ext |
| 9306 | cat >>conftest.$ac_ext <<_ACEOF |
| 9307 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9309 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | int |
| 9311 | main () |
| 9312 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9313 | 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] | 9314 | test_array [0] = 0 |
| 9315 | |
| 9316 | ; |
| 9317 | return 0; |
| 9318 | } |
| 9319 | _ACEOF |
| 9320 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9321 | if { (ac_try="$ac_compile" |
| 9322 | case "(($ac_try" in |
| 9323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9324 | *) ac_try_echo=$ac_try;; |
| 9325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9327 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9330 | rm -f conftest.er1 |
| 9331 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9333 | (exit $ac_status); } && { |
| 9334 | test -z "$ac_c_werror_flag" || |
| 9335 | test ! -s conftest.err |
| 9336 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | ac_hi=-1 ac_mid=-1 |
| 9338 | while :; do |
| 9339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9340 | /* confdefs.h. */ |
| 9341 | _ACEOF |
| 9342 | cat confdefs.h >>conftest.$ac_ext |
| 9343 | cat >>conftest.$ac_ext <<_ACEOF |
| 9344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9346 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | int |
| 9348 | main () |
| 9349 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9350 | 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] | 9351 | test_array [0] = 0 |
| 9352 | |
| 9353 | ; |
| 9354 | return 0; |
| 9355 | } |
| 9356 | _ACEOF |
| 9357 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9358 | if { (ac_try="$ac_compile" |
| 9359 | case "(($ac_try" in |
| 9360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9361 | *) ac_try_echo=$ac_try;; |
| 9362 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9364 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9367 | rm -f conftest.er1 |
| 9368 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9370 | (exit $ac_status); } && { |
| 9371 | test -z "$ac_c_werror_flag" || |
| 9372 | test ! -s conftest.err |
| 9373 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | ac_lo=$ac_mid; break |
| 9375 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9379 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9380 | if test $ac_mid -le $ac_hi; then |
| 9381 | ac_lo= ac_hi= |
| 9382 | break |
| 9383 | fi |
| 9384 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9386 | |
| 9387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | done |
| 9389 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9393 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9395 | |
| 9396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9398 | |
| 9399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | # Binary search between lo and hi bounds. |
| 9401 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9402 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9403 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9404 | /* confdefs.h. */ |
| 9405 | _ACEOF |
| 9406 | cat confdefs.h >>conftest.$ac_ext |
| 9407 | cat >>conftest.$ac_ext <<_ACEOF |
| 9408 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9410 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | int |
| 9412 | main () |
| 9413 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9414 | 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] | 9415 | test_array [0] = 0 |
| 9416 | |
| 9417 | ; |
| 9418 | return 0; |
| 9419 | } |
| 9420 | _ACEOF |
| 9421 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9422 | if { (ac_try="$ac_compile" |
| 9423 | case "(($ac_try" in |
| 9424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9425 | *) ac_try_echo=$ac_try;; |
| 9426 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9428 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9431 | rm -f conftest.er1 |
| 9432 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9434 | (exit $ac_status); } && { |
| 9435 | test -z "$ac_c_werror_flag" || |
| 9436 | test ! -s conftest.err |
| 9437 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | ac_hi=$ac_mid |
| 9439 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9442 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9443 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9445 | |
| 9446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | done |
| 9448 | case $ac_lo in |
| 9449 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9450 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9451 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9453 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9454 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9455 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9456 | else |
| 9457 | ac_cv_sizeof_float=0 |
| 9458 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9459 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9462 | /* confdefs.h. */ |
| 9463 | _ACEOF |
| 9464 | cat confdefs.h >>conftest.$ac_ext |
| 9465 | cat >>conftest.$ac_ext <<_ACEOF |
| 9466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9468 | typedef float ac__type_sizeof_; |
| 9469 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9470 | 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] | 9471 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9472 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | int |
| 9474 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9475 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | |
| 9477 | FILE *f = fopen ("conftest.val", "w"); |
| 9478 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9479 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9480 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9482 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9483 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9484 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9485 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | } |
| 9487 | else |
| 9488 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9490 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9491 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9492 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9494 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | |
| 9496 | ; |
| 9497 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9498 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | _ACEOF |
| 9500 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9501 | if { (ac_try="$ac_link" |
| 9502 | case "(($ac_try" in |
| 9503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9504 | *) ac_try_echo=$ac_try;; |
| 9505 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9507 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9511 | { (case "(($ac_try" in |
| 9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9513 | *) ac_try_echo=$ac_try;; |
| 9514 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9516 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | (exit $ac_status); }; }; then |
| 9520 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9521 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9522 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9527 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9528 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9529 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9530 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9531 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9532 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9533 | else |
| 9534 | ac_cv_sizeof_float=0 |
| 9535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9537 | 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] | 9538 | fi |
| 9539 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9540 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9541 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9542 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9543 | |
| 9544 | |
| 9545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9547 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9549 | |
| 9550 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9551 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9552 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9553 | if test "${ac_cv_type_double+set}" = set; then |
| 9554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9555 | else |
| 9556 | cat >conftest.$ac_ext <<_ACEOF |
| 9557 | /* confdefs.h. */ |
| 9558 | _ACEOF |
| 9559 | cat confdefs.h >>conftest.$ac_ext |
| 9560 | cat >>conftest.$ac_ext <<_ACEOF |
| 9561 | /* end confdefs.h. */ |
| 9562 | $ac_includes_default |
| 9563 | typedef double ac__type_new_; |
| 9564 | int |
| 9565 | main () |
| 9566 | { |
| 9567 | if ((ac__type_new_ *) 0) |
| 9568 | return 0; |
| 9569 | if (sizeof (ac__type_new_)) |
| 9570 | return 0; |
| 9571 | ; |
| 9572 | return 0; |
| 9573 | } |
| 9574 | _ACEOF |
| 9575 | rm -f conftest.$ac_objext |
| 9576 | if { (ac_try="$ac_compile" |
| 9577 | case "(($ac_try" in |
| 9578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9579 | *) ac_try_echo=$ac_try;; |
| 9580 | esac |
| 9581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9582 | (eval "$ac_compile") 2>conftest.er1 |
| 9583 | ac_status=$? |
| 9584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9585 | rm -f conftest.er1 |
| 9586 | cat conftest.err >&5 |
| 9587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9588 | (exit $ac_status); } && { |
| 9589 | test -z "$ac_c_werror_flag" || |
| 9590 | test ! -s conftest.err |
| 9591 | } && test -s conftest.$ac_objext; then |
| 9592 | ac_cv_type_double=yes |
| 9593 | else |
| 9594 | echo "$as_me: failed program was:" >&5 |
| 9595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9596 | |
| 9597 | ac_cv_type_double=no |
| 9598 | fi |
| 9599 | |
| 9600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9601 | fi |
| 9602 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9603 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9605 | # The cast to long int works around a bug in the HP C Compiler |
| 9606 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9607 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9608 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9609 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9610 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | if test "$cross_compiling" = yes; then |
| 9615 | # Depending upon the size, compute the lo and hi bounds. |
| 9616 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9617 | /* confdefs.h. */ |
| 9618 | _ACEOF |
| 9619 | cat confdefs.h >>conftest.$ac_ext |
| 9620 | cat >>conftest.$ac_ext <<_ACEOF |
| 9621 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9623 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | int |
| 9625 | main () |
| 9626 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9627 | 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] | 9628 | test_array [0] = 0 |
| 9629 | |
| 9630 | ; |
| 9631 | return 0; |
| 9632 | } |
| 9633 | _ACEOF |
| 9634 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9635 | if { (ac_try="$ac_compile" |
| 9636 | case "(($ac_try" in |
| 9637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9638 | *) ac_try_echo=$ac_try;; |
| 9639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9641 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9644 | rm -f conftest.er1 |
| 9645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9647 | (exit $ac_status); } && { |
| 9648 | test -z "$ac_c_werror_flag" || |
| 9649 | test ! -s conftest.err |
| 9650 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9651 | ac_lo=0 ac_mid=0 |
| 9652 | while :; do |
| 9653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9654 | /* confdefs.h. */ |
| 9655 | _ACEOF |
| 9656 | cat confdefs.h >>conftest.$ac_ext |
| 9657 | cat >>conftest.$ac_ext <<_ACEOF |
| 9658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9660 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | int |
| 9662 | main () |
| 9663 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9664 | 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] | 9665 | test_array [0] = 0 |
| 9666 | |
| 9667 | ; |
| 9668 | return 0; |
| 9669 | } |
| 9670 | _ACEOF |
| 9671 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9672 | if { (ac_try="$ac_compile" |
| 9673 | case "(($ac_try" in |
| 9674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9675 | *) ac_try_echo=$ac_try;; |
| 9676 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9678 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9681 | rm -f conftest.er1 |
| 9682 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9684 | (exit $ac_status); } && { |
| 9685 | test -z "$ac_c_werror_flag" || |
| 9686 | test ! -s conftest.err |
| 9687 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | ac_hi=$ac_mid; break |
| 9689 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9693 | ac_lo=`expr $ac_mid + 1` |
| 9694 | if test $ac_lo -le $ac_mid; then |
| 9695 | ac_lo= ac_hi= |
| 9696 | break |
| 9697 | fi |
| 9698 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9700 | |
| 9701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | done |
| 9703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9707 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9708 | /* confdefs.h. */ |
| 9709 | _ACEOF |
| 9710 | cat confdefs.h >>conftest.$ac_ext |
| 9711 | cat >>conftest.$ac_ext <<_ACEOF |
| 9712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9713 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9714 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | int |
| 9716 | main () |
| 9717 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9718 | 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] | 9719 | test_array [0] = 0 |
| 9720 | |
| 9721 | ; |
| 9722 | return 0; |
| 9723 | } |
| 9724 | _ACEOF |
| 9725 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9726 | if { (ac_try="$ac_compile" |
| 9727 | case "(($ac_try" in |
| 9728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9729 | *) ac_try_echo=$ac_try;; |
| 9730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9732 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9735 | rm -f conftest.er1 |
| 9736 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9738 | (exit $ac_status); } && { |
| 9739 | test -z "$ac_c_werror_flag" || |
| 9740 | test ! -s conftest.err |
| 9741 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | ac_hi=-1 ac_mid=-1 |
| 9743 | while :; do |
| 9744 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | /* confdefs.h. */ |
| 9746 | _ACEOF |
| 9747 | cat confdefs.h >>conftest.$ac_ext |
| 9748 | cat >>conftest.$ac_ext <<_ACEOF |
| 9749 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9751 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | int |
| 9753 | main () |
| 9754 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9755 | 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] | 9756 | test_array [0] = 0 |
| 9757 | |
| 9758 | ; |
| 9759 | return 0; |
| 9760 | } |
| 9761 | _ACEOF |
| 9762 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9763 | if { (ac_try="$ac_compile" |
| 9764 | case "(($ac_try" in |
| 9765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9766 | *) ac_try_echo=$ac_try;; |
| 9767 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9769 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9772 | rm -f conftest.er1 |
| 9773 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9775 | (exit $ac_status); } && { |
| 9776 | test -z "$ac_c_werror_flag" || |
| 9777 | test ! -s conftest.err |
| 9778 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9779 | ac_lo=$ac_mid; break |
| 9780 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9784 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9785 | if test $ac_mid -le $ac_hi; then |
| 9786 | ac_lo= ac_hi= |
| 9787 | break |
| 9788 | fi |
| 9789 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9791 | |
| 9792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | done |
| 9794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9798 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9800 | |
| 9801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9802 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9803 | |
| 9804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | # Binary search between lo and hi bounds. |
| 9806 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9807 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9808 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9809 | /* confdefs.h. */ |
| 9810 | _ACEOF |
| 9811 | cat confdefs.h >>conftest.$ac_ext |
| 9812 | cat >>conftest.$ac_ext <<_ACEOF |
| 9813 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9815 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | int |
| 9817 | main () |
| 9818 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9819 | 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] | 9820 | test_array [0] = 0 |
| 9821 | |
| 9822 | ; |
| 9823 | return 0; |
| 9824 | } |
| 9825 | _ACEOF |
| 9826 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9827 | if { (ac_try="$ac_compile" |
| 9828 | case "(($ac_try" in |
| 9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9830 | *) ac_try_echo=$ac_try;; |
| 9831 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9833 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9836 | rm -f conftest.er1 |
| 9837 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9839 | (exit $ac_status); } && { |
| 9840 | test -z "$ac_c_werror_flag" || |
| 9841 | test ! -s conftest.err |
| 9842 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9843 | ac_hi=$ac_mid |
| 9844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9848 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9850 | |
| 9851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | done |
| 9853 | case $ac_lo in |
| 9854 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9855 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9856 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9857 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9858 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9859 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9860 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9861 | else |
| 9862 | ac_cv_sizeof_double=0 |
| 9863 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9867 | /* confdefs.h. */ |
| 9868 | _ACEOF |
| 9869 | cat confdefs.h >>conftest.$ac_ext |
| 9870 | cat >>conftest.$ac_ext <<_ACEOF |
| 9871 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9873 | typedef double ac__type_sizeof_; |
| 9874 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9875 | 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] | 9876 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | int |
| 9879 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9880 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | |
| 9882 | FILE *f = fopen ("conftest.val", "w"); |
| 9883 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9884 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9885 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9887 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9888 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9889 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9890 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | } |
| 9892 | else |
| 9893 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9895 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9896 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9897 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9899 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | |
| 9901 | ; |
| 9902 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9903 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | _ACEOF |
| 9905 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9906 | if { (ac_try="$ac_link" |
| 9907 | case "(($ac_try" in |
| 9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9909 | *) ac_try_echo=$ac_try;; |
| 9910 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9912 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9916 | { (case "(($ac_try" in |
| 9917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9918 | *) ac_try_echo=$ac_try;; |
| 9919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9921 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | (exit $ac_status); }; }; then |
| 9925 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9932 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9933 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9934 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9935 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9936 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9937 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9938 | else |
| 9939 | ac_cv_sizeof_double=0 |
| 9940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9942 | 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] | 9943 | fi |
| 9944 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9945 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9946 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9947 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9948 | |
| 9949 | |
| 9950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9952 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9954 | |
| 9955 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9956 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9957 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9958 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9960 | else |
| 9961 | cat >conftest.$ac_ext <<_ACEOF |
| 9962 | /* confdefs.h. */ |
| 9963 | _ACEOF |
| 9964 | cat confdefs.h >>conftest.$ac_ext |
| 9965 | cat >>conftest.$ac_ext <<_ACEOF |
| 9966 | /* end confdefs.h. */ |
| 9967 | $ac_includes_default |
| 9968 | typedef fpos_t ac__type_new_; |
| 9969 | int |
| 9970 | main () |
| 9971 | { |
| 9972 | if ((ac__type_new_ *) 0) |
| 9973 | return 0; |
| 9974 | if (sizeof (ac__type_new_)) |
| 9975 | return 0; |
| 9976 | ; |
| 9977 | return 0; |
| 9978 | } |
| 9979 | _ACEOF |
| 9980 | rm -f conftest.$ac_objext |
| 9981 | if { (ac_try="$ac_compile" |
| 9982 | case "(($ac_try" in |
| 9983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9984 | *) ac_try_echo=$ac_try;; |
| 9985 | esac |
| 9986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9987 | (eval "$ac_compile") 2>conftest.er1 |
| 9988 | ac_status=$? |
| 9989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9990 | rm -f conftest.er1 |
| 9991 | cat conftest.err >&5 |
| 9992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9993 | (exit $ac_status); } && { |
| 9994 | test -z "$ac_c_werror_flag" || |
| 9995 | test ! -s conftest.err |
| 9996 | } && test -s conftest.$ac_objext; then |
| 9997 | ac_cv_type_fpos_t=yes |
| 9998 | else |
| 9999 | echo "$as_me: failed program was:" >&5 |
| 10000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10001 | |
| 10002 | ac_cv_type_fpos_t=no |
| 10003 | fi |
| 10004 | |
| 10005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10006 | fi |
| 10007 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10008 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10010 | # The cast to long int works around a bug in the HP C Compiler |
| 10011 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10012 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10013 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10014 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10015 | 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] | 10016 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | if test "$cross_compiling" = yes; then |
| 10020 | # Depending upon the size, compute the lo and hi bounds. |
| 10021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10022 | /* confdefs.h. */ |
| 10023 | _ACEOF |
| 10024 | cat confdefs.h >>conftest.$ac_ext |
| 10025 | cat >>conftest.$ac_ext <<_ACEOF |
| 10026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10028 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | int |
| 10030 | main () |
| 10031 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10032 | 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] | 10033 | test_array [0] = 0 |
| 10034 | |
| 10035 | ; |
| 10036 | return 0; |
| 10037 | } |
| 10038 | _ACEOF |
| 10039 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10040 | if { (ac_try="$ac_compile" |
| 10041 | case "(($ac_try" in |
| 10042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10043 | *) ac_try_echo=$ac_try;; |
| 10044 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10046 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10049 | rm -f conftest.er1 |
| 10050 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10052 | (exit $ac_status); } && { |
| 10053 | test -z "$ac_c_werror_flag" || |
| 10054 | test ! -s conftest.err |
| 10055 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | ac_lo=0 ac_mid=0 |
| 10057 | while :; do |
| 10058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10059 | /* confdefs.h. */ |
| 10060 | _ACEOF |
| 10061 | cat confdefs.h >>conftest.$ac_ext |
| 10062 | cat >>conftest.$ac_ext <<_ACEOF |
| 10063 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10065 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | int |
| 10067 | main () |
| 10068 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10069 | 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] | 10070 | test_array [0] = 0 |
| 10071 | |
| 10072 | ; |
| 10073 | return 0; |
| 10074 | } |
| 10075 | _ACEOF |
| 10076 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10077 | if { (ac_try="$ac_compile" |
| 10078 | case "(($ac_try" in |
| 10079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10080 | *) ac_try_echo=$ac_try;; |
| 10081 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10083 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10086 | rm -f conftest.er1 |
| 10087 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10089 | (exit $ac_status); } && { |
| 10090 | test -z "$ac_c_werror_flag" || |
| 10091 | test ! -s conftest.err |
| 10092 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10093 | ac_hi=$ac_mid; break |
| 10094 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10098 | ac_lo=`expr $ac_mid + 1` |
| 10099 | if test $ac_lo -le $ac_mid; then |
| 10100 | ac_lo= ac_hi= |
| 10101 | break |
| 10102 | fi |
| 10103 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10105 | |
| 10106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | done |
| 10108 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10109 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10111 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10113 | /* confdefs.h. */ |
| 10114 | _ACEOF |
| 10115 | cat confdefs.h >>conftest.$ac_ext |
| 10116 | cat >>conftest.$ac_ext <<_ACEOF |
| 10117 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10119 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | int |
| 10121 | main () |
| 10122 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10123 | 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] | 10124 | test_array [0] = 0 |
| 10125 | |
| 10126 | ; |
| 10127 | return 0; |
| 10128 | } |
| 10129 | _ACEOF |
| 10130 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10131 | if { (ac_try="$ac_compile" |
| 10132 | case "(($ac_try" in |
| 10133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10134 | *) ac_try_echo=$ac_try;; |
| 10135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10137 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10140 | rm -f conftest.er1 |
| 10141 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10143 | (exit $ac_status); } && { |
| 10144 | test -z "$ac_c_werror_flag" || |
| 10145 | test ! -s conftest.err |
| 10146 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10147 | ac_hi=-1 ac_mid=-1 |
| 10148 | while :; do |
| 10149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10150 | /* confdefs.h. */ |
| 10151 | _ACEOF |
| 10152 | cat confdefs.h >>conftest.$ac_ext |
| 10153 | cat >>conftest.$ac_ext <<_ACEOF |
| 10154 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10156 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | int |
| 10158 | main () |
| 10159 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10160 | 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] | 10161 | test_array [0] = 0 |
| 10162 | |
| 10163 | ; |
| 10164 | return 0; |
| 10165 | } |
| 10166 | _ACEOF |
| 10167 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10168 | if { (ac_try="$ac_compile" |
| 10169 | case "(($ac_try" in |
| 10170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10171 | *) ac_try_echo=$ac_try;; |
| 10172 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10174 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10177 | rm -f conftest.er1 |
| 10178 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10180 | (exit $ac_status); } && { |
| 10181 | test -z "$ac_c_werror_flag" || |
| 10182 | test ! -s conftest.err |
| 10183 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | ac_lo=$ac_mid; break |
| 10185 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10186 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10188 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10189 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10190 | if test $ac_mid -le $ac_hi; then |
| 10191 | ac_lo= ac_hi= |
| 10192 | break |
| 10193 | fi |
| 10194 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10195 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10196 | |
| 10197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | done |
| 10199 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10200 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10202 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10203 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10205 | |
| 10206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10207 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10208 | |
| 10209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | # Binary search between lo and hi bounds. |
| 10211 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10212 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10214 | /* confdefs.h. */ |
| 10215 | _ACEOF |
| 10216 | cat confdefs.h >>conftest.$ac_ext |
| 10217 | cat >>conftest.$ac_ext <<_ACEOF |
| 10218 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10220 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | int |
| 10222 | main () |
| 10223 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10224 | 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] | 10225 | test_array [0] = 0 |
| 10226 | |
| 10227 | ; |
| 10228 | return 0; |
| 10229 | } |
| 10230 | _ACEOF |
| 10231 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10232 | if { (ac_try="$ac_compile" |
| 10233 | case "(($ac_try" in |
| 10234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10235 | *) ac_try_echo=$ac_try;; |
| 10236 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10238 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10241 | rm -f conftest.er1 |
| 10242 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10244 | (exit $ac_status); } && { |
| 10245 | test -z "$ac_c_werror_flag" || |
| 10246 | test ! -s conftest.err |
| 10247 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | ac_hi=$ac_mid |
| 10249 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10252 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10253 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10255 | |
| 10256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | done |
| 10258 | case $ac_lo in |
| 10259 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10260 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10261 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10262 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10263 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10264 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10265 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10266 | else |
| 10267 | ac_cv_sizeof_fpos_t=0 |
| 10268 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10269 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10272 | /* confdefs.h. */ |
| 10273 | _ACEOF |
| 10274 | cat confdefs.h >>conftest.$ac_ext |
| 10275 | cat >>conftest.$ac_ext <<_ACEOF |
| 10276 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10278 | typedef fpos_t ac__type_sizeof_; |
| 10279 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10280 | 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] | 10281 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | int |
| 10284 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10285 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | |
| 10287 | FILE *f = fopen ("conftest.val", "w"); |
| 10288 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10289 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10290 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10292 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10293 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10294 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10295 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | } |
| 10297 | else |
| 10298 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10299 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10300 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10301 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10302 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10304 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | |
| 10306 | ; |
| 10307 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10308 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | _ACEOF |
| 10310 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10311 | if { (ac_try="$ac_link" |
| 10312 | case "(($ac_try" in |
| 10313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10314 | *) ac_try_echo=$ac_try;; |
| 10315 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10317 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10320 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10321 | { (case "(($ac_try" in |
| 10322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10323 | *) ac_try_echo=$ac_try;; |
| 10324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10326 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | (exit $ac_status); }; }; then |
| 10330 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10332 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10333 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10337 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10338 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10339 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10340 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10341 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10342 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10343 | else |
| 10344 | ac_cv_sizeof_fpos_t=0 |
| 10345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10347 | 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] | 10348 | fi |
| 10349 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10350 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10351 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10352 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10353 | |
| 10354 | |
| 10355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10357 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10359 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10360 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10361 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10362 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10363 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10365 | else |
| 10366 | cat >conftest.$ac_ext <<_ACEOF |
| 10367 | /* confdefs.h. */ |
| 10368 | _ACEOF |
| 10369 | cat confdefs.h >>conftest.$ac_ext |
| 10370 | cat >>conftest.$ac_ext <<_ACEOF |
| 10371 | /* end confdefs.h. */ |
| 10372 | $ac_includes_default |
| 10373 | typedef size_t ac__type_new_; |
| 10374 | int |
| 10375 | main () |
| 10376 | { |
| 10377 | if ((ac__type_new_ *) 0) |
| 10378 | return 0; |
| 10379 | if (sizeof (ac__type_new_)) |
| 10380 | return 0; |
| 10381 | ; |
| 10382 | return 0; |
| 10383 | } |
| 10384 | _ACEOF |
| 10385 | rm -f conftest.$ac_objext |
| 10386 | if { (ac_try="$ac_compile" |
| 10387 | case "(($ac_try" in |
| 10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10389 | *) ac_try_echo=$ac_try;; |
| 10390 | esac |
| 10391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10392 | (eval "$ac_compile") 2>conftest.er1 |
| 10393 | ac_status=$? |
| 10394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10395 | rm -f conftest.er1 |
| 10396 | cat conftest.err >&5 |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); } && { |
| 10399 | test -z "$ac_c_werror_flag" || |
| 10400 | test ! -s conftest.err |
| 10401 | } && test -s conftest.$ac_objext; then |
| 10402 | ac_cv_type_size_t=yes |
| 10403 | else |
| 10404 | echo "$as_me: failed program was:" >&5 |
| 10405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10406 | |
| 10407 | ac_cv_type_size_t=no |
| 10408 | fi |
| 10409 | |
| 10410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10411 | fi |
| 10412 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10413 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10414 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10415 | # The cast to long int works around a bug in the HP C Compiler |
| 10416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10418 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10419 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10420 | 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] | 10421 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10423 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10424 | if test "$cross_compiling" = yes; then |
| 10425 | # Depending upon the size, compute the lo and hi bounds. |
| 10426 | cat >conftest.$ac_ext <<_ACEOF |
| 10427 | /* confdefs.h. */ |
| 10428 | _ACEOF |
| 10429 | cat confdefs.h >>conftest.$ac_ext |
| 10430 | cat >>conftest.$ac_ext <<_ACEOF |
| 10431 | /* end confdefs.h. */ |
| 10432 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10433 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10434 | int |
| 10435 | main () |
| 10436 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10437 | 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] | 10438 | test_array [0] = 0 |
| 10439 | |
| 10440 | ; |
| 10441 | return 0; |
| 10442 | } |
| 10443 | _ACEOF |
| 10444 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10445 | if { (ac_try="$ac_compile" |
| 10446 | case "(($ac_try" in |
| 10447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10448 | *) ac_try_echo=$ac_try;; |
| 10449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10451 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10452 | ac_status=$? |
| 10453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10454 | rm -f conftest.er1 |
| 10455 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10457 | (exit $ac_status); } && { |
| 10458 | test -z "$ac_c_werror_flag" || |
| 10459 | test ! -s conftest.err |
| 10460 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10461 | ac_lo=0 ac_mid=0 |
| 10462 | while :; do |
| 10463 | cat >conftest.$ac_ext <<_ACEOF |
| 10464 | /* confdefs.h. */ |
| 10465 | _ACEOF |
| 10466 | cat confdefs.h >>conftest.$ac_ext |
| 10467 | cat >>conftest.$ac_ext <<_ACEOF |
| 10468 | /* end confdefs.h. */ |
| 10469 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10470 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10471 | int |
| 10472 | main () |
| 10473 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10474 | 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] | 10475 | test_array [0] = 0 |
| 10476 | |
| 10477 | ; |
| 10478 | return 0; |
| 10479 | } |
| 10480 | _ACEOF |
| 10481 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10482 | if { (ac_try="$ac_compile" |
| 10483 | case "(($ac_try" in |
| 10484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10485 | *) ac_try_echo=$ac_try;; |
| 10486 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10488 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10489 | ac_status=$? |
| 10490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10491 | rm -f conftest.er1 |
| 10492 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10494 | (exit $ac_status); } && { |
| 10495 | test -z "$ac_c_werror_flag" || |
| 10496 | test ! -s conftest.err |
| 10497 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10498 | ac_hi=$ac_mid; break |
| 10499 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10500 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10503 | ac_lo=`expr $ac_mid + 1` |
| 10504 | if test $ac_lo -le $ac_mid; then |
| 10505 | ac_lo= ac_hi= |
| 10506 | break |
| 10507 | fi |
| 10508 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10509 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10510 | |
| 10511 | 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] | 10512 | done |
| 10513 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10514 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10516 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10517 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10518 | /* confdefs.h. */ |
| 10519 | _ACEOF |
| 10520 | cat confdefs.h >>conftest.$ac_ext |
| 10521 | cat >>conftest.$ac_ext <<_ACEOF |
| 10522 | /* end confdefs.h. */ |
| 10523 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10524 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10525 | int |
| 10526 | main () |
| 10527 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10528 | 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] | 10529 | test_array [0] = 0 |
| 10530 | |
| 10531 | ; |
| 10532 | return 0; |
| 10533 | } |
| 10534 | _ACEOF |
| 10535 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10536 | if { (ac_try="$ac_compile" |
| 10537 | case "(($ac_try" in |
| 10538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10539 | *) ac_try_echo=$ac_try;; |
| 10540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10542 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10543 | ac_status=$? |
| 10544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10545 | rm -f conftest.er1 |
| 10546 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10548 | (exit $ac_status); } && { |
| 10549 | test -z "$ac_c_werror_flag" || |
| 10550 | test ! -s conftest.err |
| 10551 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10552 | ac_hi=-1 ac_mid=-1 |
| 10553 | while :; do |
| 10554 | cat >conftest.$ac_ext <<_ACEOF |
| 10555 | /* confdefs.h. */ |
| 10556 | _ACEOF |
| 10557 | cat confdefs.h >>conftest.$ac_ext |
| 10558 | cat >>conftest.$ac_ext <<_ACEOF |
| 10559 | /* end confdefs.h. */ |
| 10560 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10561 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10562 | int |
| 10563 | main () |
| 10564 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10565 | 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] | 10566 | test_array [0] = 0 |
| 10567 | |
| 10568 | ; |
| 10569 | return 0; |
| 10570 | } |
| 10571 | _ACEOF |
| 10572 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10573 | if { (ac_try="$ac_compile" |
| 10574 | case "(($ac_try" in |
| 10575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10576 | *) ac_try_echo=$ac_try;; |
| 10577 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10579 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10580 | ac_status=$? |
| 10581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10582 | rm -f conftest.er1 |
| 10583 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10585 | (exit $ac_status); } && { |
| 10586 | test -z "$ac_c_werror_flag" || |
| 10587 | test ! -s conftest.err |
| 10588 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10589 | ac_lo=$ac_mid; break |
| 10590 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10591 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10593 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10594 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10595 | if test $ac_mid -le $ac_hi; then |
| 10596 | ac_lo= ac_hi= |
| 10597 | break |
| 10598 | fi |
| 10599 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10600 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10601 | |
| 10602 | 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] | 10603 | done |
| 10604 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10605 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10608 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10609 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10610 | |
| 10611 | 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] | 10612 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10613 | |
| 10614 | 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] | 10615 | # Binary search between lo and hi bounds. |
| 10616 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10617 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10618 | cat >conftest.$ac_ext <<_ACEOF |
| 10619 | /* confdefs.h. */ |
| 10620 | _ACEOF |
| 10621 | cat confdefs.h >>conftest.$ac_ext |
| 10622 | cat >>conftest.$ac_ext <<_ACEOF |
| 10623 | /* end confdefs.h. */ |
| 10624 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10625 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10626 | int |
| 10627 | main () |
| 10628 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10629 | 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] | 10630 | test_array [0] = 0 |
| 10631 | |
| 10632 | ; |
| 10633 | return 0; |
| 10634 | } |
| 10635 | _ACEOF |
| 10636 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10637 | if { (ac_try="$ac_compile" |
| 10638 | case "(($ac_try" in |
| 10639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10640 | *) ac_try_echo=$ac_try;; |
| 10641 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10643 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10644 | ac_status=$? |
| 10645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10646 | rm -f conftest.er1 |
| 10647 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10649 | (exit $ac_status); } && { |
| 10650 | test -z "$ac_c_werror_flag" || |
| 10651 | test ! -s conftest.err |
| 10652 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10653 | ac_hi=$ac_mid |
| 10654 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10655 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10657 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10658 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10659 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10660 | |
| 10661 | 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] | 10662 | done |
| 10663 | case $ac_lo in |
| 10664 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10665 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10667 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10668 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10669 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10670 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10671 | else |
| 10672 | ac_cv_sizeof_size_t=0 |
| 10673 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10674 | esac |
| 10675 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10676 | cat >conftest.$ac_ext <<_ACEOF |
| 10677 | /* confdefs.h. */ |
| 10678 | _ACEOF |
| 10679 | cat confdefs.h >>conftest.$ac_ext |
| 10680 | cat >>conftest.$ac_ext <<_ACEOF |
| 10681 | /* end confdefs.h. */ |
| 10682 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10683 | typedef size_t ac__type_sizeof_; |
| 10684 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10685 | 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] | 10686 | #include <stdio.h> |
| 10687 | #include <stdlib.h> |
| 10688 | int |
| 10689 | main () |
| 10690 | { |
| 10691 | |
| 10692 | FILE *f = fopen ("conftest.val", "w"); |
| 10693 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10694 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10695 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10696 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10697 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10698 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10699 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10700 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10701 | } |
| 10702 | else |
| 10703 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10705 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10706 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10707 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10708 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10709 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10710 | |
| 10711 | ; |
| 10712 | return 0; |
| 10713 | } |
| 10714 | _ACEOF |
| 10715 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10716 | if { (ac_try="$ac_link" |
| 10717 | case "(($ac_try" in |
| 10718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10719 | *) ac_try_echo=$ac_try;; |
| 10720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10722 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10723 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10726 | { (case "(($ac_try" in |
| 10727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10728 | *) ac_try_echo=$ac_try;; |
| 10729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10731 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10732 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10734 | (exit $ac_status); }; }; then |
| 10735 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10736 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10737 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10738 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10740 | |
| 10741 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10742 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10743 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10744 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10745 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10746 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10747 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10748 | else |
| 10749 | ac_cv_sizeof_size_t=0 |
| 10750 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10751 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10752 | 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] | 10753 | fi |
| 10754 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10755 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10756 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10757 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10758 | |
| 10759 | |
| 10760 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10761 | cat >>confdefs.h <<_ACEOF |
| 10762 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10763 | _ACEOF |
| 10764 | |
| 10765 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10766 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10767 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10768 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10770 | else |
| 10771 | cat >conftest.$ac_ext <<_ACEOF |
| 10772 | /* confdefs.h. */ |
| 10773 | _ACEOF |
| 10774 | cat confdefs.h >>conftest.$ac_ext |
| 10775 | cat >>conftest.$ac_ext <<_ACEOF |
| 10776 | /* end confdefs.h. */ |
| 10777 | $ac_includes_default |
| 10778 | typedef pid_t ac__type_new_; |
| 10779 | int |
| 10780 | main () |
| 10781 | { |
| 10782 | if ((ac__type_new_ *) 0) |
| 10783 | return 0; |
| 10784 | if (sizeof (ac__type_new_)) |
| 10785 | return 0; |
| 10786 | ; |
| 10787 | return 0; |
| 10788 | } |
| 10789 | _ACEOF |
| 10790 | rm -f conftest.$ac_objext |
| 10791 | if { (ac_try="$ac_compile" |
| 10792 | case "(($ac_try" in |
| 10793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10794 | *) ac_try_echo=$ac_try;; |
| 10795 | esac |
| 10796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10797 | (eval "$ac_compile") 2>conftest.er1 |
| 10798 | ac_status=$? |
| 10799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10800 | rm -f conftest.er1 |
| 10801 | cat conftest.err >&5 |
| 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); } && { |
| 10804 | test -z "$ac_c_werror_flag" || |
| 10805 | test ! -s conftest.err |
| 10806 | } && test -s conftest.$ac_objext; then |
| 10807 | ac_cv_type_pid_t=yes |
| 10808 | else |
| 10809 | echo "$as_me: failed program was:" >&5 |
| 10810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10811 | |
| 10812 | ac_cv_type_pid_t=no |
| 10813 | fi |
| 10814 | |
| 10815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10816 | fi |
| 10817 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10818 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10819 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10820 | # The cast to long int works around a bug in the HP C Compiler |
| 10821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10823 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10824 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10825 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10826 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10828 | else |
| 10829 | if test "$cross_compiling" = yes; then |
| 10830 | # Depending upon the size, compute the lo and hi bounds. |
| 10831 | cat >conftest.$ac_ext <<_ACEOF |
| 10832 | /* confdefs.h. */ |
| 10833 | _ACEOF |
| 10834 | cat confdefs.h >>conftest.$ac_ext |
| 10835 | cat >>conftest.$ac_ext <<_ACEOF |
| 10836 | /* end confdefs.h. */ |
| 10837 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10838 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10839 | int |
| 10840 | main () |
| 10841 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10842 | 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] | 10843 | test_array [0] = 0 |
| 10844 | |
| 10845 | ; |
| 10846 | return 0; |
| 10847 | } |
| 10848 | _ACEOF |
| 10849 | rm -f conftest.$ac_objext |
| 10850 | if { (ac_try="$ac_compile" |
| 10851 | case "(($ac_try" in |
| 10852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10853 | *) ac_try_echo=$ac_try;; |
| 10854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10856 | (eval "$ac_compile") 2>conftest.er1 |
| 10857 | ac_status=$? |
| 10858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10859 | rm -f conftest.er1 |
| 10860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10862 | (exit $ac_status); } && { |
| 10863 | test -z "$ac_c_werror_flag" || |
| 10864 | test ! -s conftest.err |
| 10865 | } && test -s conftest.$ac_objext; then |
| 10866 | ac_lo=0 ac_mid=0 |
| 10867 | while :; do |
| 10868 | cat >conftest.$ac_ext <<_ACEOF |
| 10869 | /* confdefs.h. */ |
| 10870 | _ACEOF |
| 10871 | cat confdefs.h >>conftest.$ac_ext |
| 10872 | cat >>conftest.$ac_ext <<_ACEOF |
| 10873 | /* end confdefs.h. */ |
| 10874 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10875 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10876 | int |
| 10877 | main () |
| 10878 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10879 | 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] | 10880 | test_array [0] = 0 |
| 10881 | |
| 10882 | ; |
| 10883 | return 0; |
| 10884 | } |
| 10885 | _ACEOF |
| 10886 | rm -f conftest.$ac_objext |
| 10887 | if { (ac_try="$ac_compile" |
| 10888 | case "(($ac_try" in |
| 10889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10890 | *) ac_try_echo=$ac_try;; |
| 10891 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10893 | (eval "$ac_compile") 2>conftest.er1 |
| 10894 | ac_status=$? |
| 10895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10896 | rm -f conftest.er1 |
| 10897 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10899 | (exit $ac_status); } && { |
| 10900 | test -z "$ac_c_werror_flag" || |
| 10901 | test ! -s conftest.err |
| 10902 | } && test -s conftest.$ac_objext; then |
| 10903 | ac_hi=$ac_mid; break |
| 10904 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10905 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10907 | |
| 10908 | ac_lo=`expr $ac_mid + 1` |
| 10909 | if test $ac_lo -le $ac_mid; then |
| 10910 | ac_lo= ac_hi= |
| 10911 | break |
| 10912 | fi |
| 10913 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10914 | fi |
| 10915 | |
| 10916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10917 | done |
| 10918 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10919 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10921 | |
| 10922 | cat >conftest.$ac_ext <<_ACEOF |
| 10923 | /* confdefs.h. */ |
| 10924 | _ACEOF |
| 10925 | cat confdefs.h >>conftest.$ac_ext |
| 10926 | cat >>conftest.$ac_ext <<_ACEOF |
| 10927 | /* end confdefs.h. */ |
| 10928 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10929 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10930 | int |
| 10931 | main () |
| 10932 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10933 | 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] | 10934 | test_array [0] = 0 |
| 10935 | |
| 10936 | ; |
| 10937 | return 0; |
| 10938 | } |
| 10939 | _ACEOF |
| 10940 | rm -f conftest.$ac_objext |
| 10941 | if { (ac_try="$ac_compile" |
| 10942 | case "(($ac_try" in |
| 10943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10944 | *) ac_try_echo=$ac_try;; |
| 10945 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10947 | (eval "$ac_compile") 2>conftest.er1 |
| 10948 | ac_status=$? |
| 10949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10950 | rm -f conftest.er1 |
| 10951 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10953 | (exit $ac_status); } && { |
| 10954 | test -z "$ac_c_werror_flag" || |
| 10955 | test ! -s conftest.err |
| 10956 | } && test -s conftest.$ac_objext; then |
| 10957 | ac_hi=-1 ac_mid=-1 |
| 10958 | while :; do |
| 10959 | cat >conftest.$ac_ext <<_ACEOF |
| 10960 | /* confdefs.h. */ |
| 10961 | _ACEOF |
| 10962 | cat confdefs.h >>conftest.$ac_ext |
| 10963 | cat >>conftest.$ac_ext <<_ACEOF |
| 10964 | /* end confdefs.h. */ |
| 10965 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10966 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10967 | int |
| 10968 | main () |
| 10969 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10970 | 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] | 10971 | test_array [0] = 0 |
| 10972 | |
| 10973 | ; |
| 10974 | return 0; |
| 10975 | } |
| 10976 | _ACEOF |
| 10977 | rm -f conftest.$ac_objext |
| 10978 | if { (ac_try="$ac_compile" |
| 10979 | case "(($ac_try" in |
| 10980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10981 | *) ac_try_echo=$ac_try;; |
| 10982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10984 | (eval "$ac_compile") 2>conftest.er1 |
| 10985 | ac_status=$? |
| 10986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10987 | rm -f conftest.er1 |
| 10988 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10990 | (exit $ac_status); } && { |
| 10991 | test -z "$ac_c_werror_flag" || |
| 10992 | test ! -s conftest.err |
| 10993 | } && test -s conftest.$ac_objext; then |
| 10994 | ac_lo=$ac_mid; break |
| 10995 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10996 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10998 | |
| 10999 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11000 | if test $ac_mid -le $ac_hi; then |
| 11001 | ac_lo= ac_hi= |
| 11002 | break |
| 11003 | fi |
| 11004 | ac_mid=`expr 2 '*' $ac_mid` |
| 11005 | fi |
| 11006 | |
| 11007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11008 | done |
| 11009 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11010 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 | |
| 11013 | ac_lo= ac_hi= |
| 11014 | fi |
| 11015 | |
| 11016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11017 | fi |
| 11018 | |
| 11019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11020 | # Binary search between lo and hi bounds. |
| 11021 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11022 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11023 | cat >conftest.$ac_ext <<_ACEOF |
| 11024 | /* confdefs.h. */ |
| 11025 | _ACEOF |
| 11026 | cat confdefs.h >>conftest.$ac_ext |
| 11027 | cat >>conftest.$ac_ext <<_ACEOF |
| 11028 | /* end confdefs.h. */ |
| 11029 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11030 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11031 | int |
| 11032 | main () |
| 11033 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11034 | 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] | 11035 | test_array [0] = 0 |
| 11036 | |
| 11037 | ; |
| 11038 | return 0; |
| 11039 | } |
| 11040 | _ACEOF |
| 11041 | rm -f conftest.$ac_objext |
| 11042 | if { (ac_try="$ac_compile" |
| 11043 | case "(($ac_try" in |
| 11044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11045 | *) ac_try_echo=$ac_try;; |
| 11046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11048 | (eval "$ac_compile") 2>conftest.er1 |
| 11049 | ac_status=$? |
| 11050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11051 | rm -f conftest.er1 |
| 11052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11054 | (exit $ac_status); } && { |
| 11055 | test -z "$ac_c_werror_flag" || |
| 11056 | test ! -s conftest.err |
| 11057 | } && test -s conftest.$ac_objext; then |
| 11058 | ac_hi=$ac_mid |
| 11059 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11060 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11062 | |
| 11063 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11064 | fi |
| 11065 | |
| 11066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11067 | done |
| 11068 | case $ac_lo in |
| 11069 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11070 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11071 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11072 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11073 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11074 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11075 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11076 | else |
| 11077 | ac_cv_sizeof_pid_t=0 |
| 11078 | fi ;; |
| 11079 | esac |
| 11080 | else |
| 11081 | cat >conftest.$ac_ext <<_ACEOF |
| 11082 | /* confdefs.h. */ |
| 11083 | _ACEOF |
| 11084 | cat confdefs.h >>conftest.$ac_ext |
| 11085 | cat >>conftest.$ac_ext <<_ACEOF |
| 11086 | /* end confdefs.h. */ |
| 11087 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11088 | typedef pid_t ac__type_sizeof_; |
| 11089 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11090 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11091 | #include <stdio.h> |
| 11092 | #include <stdlib.h> |
| 11093 | int |
| 11094 | main () |
| 11095 | { |
| 11096 | |
| 11097 | FILE *f = fopen ("conftest.val", "w"); |
| 11098 | if (! f) |
| 11099 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11100 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11101 | { |
| 11102 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11103 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11104 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11105 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11106 | } |
| 11107 | else |
| 11108 | { |
| 11109 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11110 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11111 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11112 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11113 | } |
| 11114 | return ferror (f) || fclose (f) != 0; |
| 11115 | |
| 11116 | ; |
| 11117 | return 0; |
| 11118 | } |
| 11119 | _ACEOF |
| 11120 | rm -f conftest$ac_exeext |
| 11121 | if { (ac_try="$ac_link" |
| 11122 | case "(($ac_try" in |
| 11123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11124 | *) ac_try_echo=$ac_try;; |
| 11125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11127 | (eval "$ac_link") 2>&5 |
| 11128 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11131 | { (case "(($ac_try" in |
| 11132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11133 | *) ac_try_echo=$ac_try;; |
| 11134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11136 | (eval "$ac_try") 2>&5 |
| 11137 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11139 | (exit $ac_status); }; }; then |
| 11140 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11143 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11145 | |
| 11146 | ( exit $ac_status ) |
| 11147 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11148 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11149 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11150 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11151 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11152 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11153 | else |
| 11154 | ac_cv_sizeof_pid_t=0 |
| 11155 | fi |
| 11156 | fi |
| 11157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11158 | fi |
| 11159 | rm -f conftest.val |
| 11160 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11161 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11162 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11163 | |
| 11164 | |
| 11165 | |
| 11166 | cat >>confdefs.h <<_ACEOF |
| 11167 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11168 | _ACEOF |
| 11169 | |
| 11170 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11171 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11172 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11173 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11174 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11176 | /* confdefs.h. */ |
| 11177 | _ACEOF |
| 11178 | cat confdefs.h >>conftest.$ac_ext |
| 11179 | cat >>conftest.$ac_ext <<_ACEOF |
| 11180 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11182 | int |
| 11183 | main () |
| 11184 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11185 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | ; |
| 11187 | return 0; |
| 11188 | } |
| 11189 | _ACEOF |
| 11190 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11191 | if { (ac_try="$ac_compile" |
| 11192 | case "(($ac_try" in |
| 11193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11194 | *) ac_try_echo=$ac_try;; |
| 11195 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11197 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11200 | rm -f conftest.er1 |
| 11201 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11203 | (exit $ac_status); } && { |
| 11204 | test -z "$ac_c_werror_flag" || |
| 11205 | test ! -s conftest.err |
| 11206 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | |
| 11208 | |
| 11209 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11210 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | _ACEOF |
| 11212 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11213 | have_long_long=yes |
| 11214 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11215 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11218 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11219 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11221 | |
| 11222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11223 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11224 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11225 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11226 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11227 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11228 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11230 | else |
| 11231 | cat >conftest.$ac_ext <<_ACEOF |
| 11232 | /* confdefs.h. */ |
| 11233 | _ACEOF |
| 11234 | cat confdefs.h >>conftest.$ac_ext |
| 11235 | cat >>conftest.$ac_ext <<_ACEOF |
| 11236 | /* end confdefs.h. */ |
| 11237 | $ac_includes_default |
| 11238 | typedef long long ac__type_new_; |
| 11239 | int |
| 11240 | main () |
| 11241 | { |
| 11242 | if ((ac__type_new_ *) 0) |
| 11243 | return 0; |
| 11244 | if (sizeof (ac__type_new_)) |
| 11245 | return 0; |
| 11246 | ; |
| 11247 | return 0; |
| 11248 | } |
| 11249 | _ACEOF |
| 11250 | rm -f conftest.$ac_objext |
| 11251 | if { (ac_try="$ac_compile" |
| 11252 | case "(($ac_try" in |
| 11253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11254 | *) ac_try_echo=$ac_try;; |
| 11255 | esac |
| 11256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11257 | (eval "$ac_compile") 2>conftest.er1 |
| 11258 | ac_status=$? |
| 11259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11260 | rm -f conftest.er1 |
| 11261 | cat conftest.err >&5 |
| 11262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11263 | (exit $ac_status); } && { |
| 11264 | test -z "$ac_c_werror_flag" || |
| 11265 | test ! -s conftest.err |
| 11266 | } && test -s conftest.$ac_objext; then |
| 11267 | ac_cv_type_long_long=yes |
| 11268 | else |
| 11269 | echo "$as_me: failed program was:" >&5 |
| 11270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11271 | |
| 11272 | ac_cv_type_long_long=no |
| 11273 | fi |
| 11274 | |
| 11275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11276 | fi |
| 11277 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11278 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11279 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11280 | # The cast to long int works around a bug in the HP C Compiler |
| 11281 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11282 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11283 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11284 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11285 | 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] | 11286 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | if test "$cross_compiling" = yes; then |
| 11290 | # Depending upon the size, compute the lo and hi bounds. |
| 11291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11292 | /* confdefs.h. */ |
| 11293 | _ACEOF |
| 11294 | cat confdefs.h >>conftest.$ac_ext |
| 11295 | cat >>conftest.$ac_ext <<_ACEOF |
| 11296 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11298 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | int |
| 11300 | main () |
| 11301 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11302 | 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] | 11303 | test_array [0] = 0 |
| 11304 | |
| 11305 | ; |
| 11306 | return 0; |
| 11307 | } |
| 11308 | _ACEOF |
| 11309 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11310 | if { (ac_try="$ac_compile" |
| 11311 | case "(($ac_try" in |
| 11312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11313 | *) ac_try_echo=$ac_try;; |
| 11314 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11316 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11319 | rm -f conftest.er1 |
| 11320 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11322 | (exit $ac_status); } && { |
| 11323 | test -z "$ac_c_werror_flag" || |
| 11324 | test ! -s conftest.err |
| 11325 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | ac_lo=0 ac_mid=0 |
| 11327 | while :; do |
| 11328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11329 | /* confdefs.h. */ |
| 11330 | _ACEOF |
| 11331 | cat confdefs.h >>conftest.$ac_ext |
| 11332 | cat >>conftest.$ac_ext <<_ACEOF |
| 11333 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11335 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | int |
| 11337 | main () |
| 11338 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11339 | 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] | 11340 | test_array [0] = 0 |
| 11341 | |
| 11342 | ; |
| 11343 | return 0; |
| 11344 | } |
| 11345 | _ACEOF |
| 11346 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11347 | if { (ac_try="$ac_compile" |
| 11348 | case "(($ac_try" in |
| 11349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11350 | *) ac_try_echo=$ac_try;; |
| 11351 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11353 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11356 | rm -f conftest.er1 |
| 11357 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11359 | (exit $ac_status); } && { |
| 11360 | test -z "$ac_c_werror_flag" || |
| 11361 | test ! -s conftest.err |
| 11362 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | ac_hi=$ac_mid; break |
| 11364 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11368 | ac_lo=`expr $ac_mid + 1` |
| 11369 | if test $ac_lo -le $ac_mid; then |
| 11370 | ac_lo= ac_hi= |
| 11371 | break |
| 11372 | fi |
| 11373 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11375 | |
| 11376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | done |
| 11378 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11379 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11381 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11382 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11383 | /* confdefs.h. */ |
| 11384 | _ACEOF |
| 11385 | cat confdefs.h >>conftest.$ac_ext |
| 11386 | cat >>conftest.$ac_ext <<_ACEOF |
| 11387 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11389 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | int |
| 11391 | main () |
| 11392 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11393 | 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] | 11394 | test_array [0] = 0 |
| 11395 | |
| 11396 | ; |
| 11397 | return 0; |
| 11398 | } |
| 11399 | _ACEOF |
| 11400 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11401 | if { (ac_try="$ac_compile" |
| 11402 | case "(($ac_try" in |
| 11403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11404 | *) ac_try_echo=$ac_try;; |
| 11405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11407 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11410 | rm -f conftest.er1 |
| 11411 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11413 | (exit $ac_status); } && { |
| 11414 | test -z "$ac_c_werror_flag" || |
| 11415 | test ! -s conftest.err |
| 11416 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | ac_hi=-1 ac_mid=-1 |
| 11418 | while :; do |
| 11419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11420 | /* confdefs.h. */ |
| 11421 | _ACEOF |
| 11422 | cat confdefs.h >>conftest.$ac_ext |
| 11423 | cat >>conftest.$ac_ext <<_ACEOF |
| 11424 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11426 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | int |
| 11428 | main () |
| 11429 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11430 | 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] | 11431 | test_array [0] = 0 |
| 11432 | |
| 11433 | ; |
| 11434 | return 0; |
| 11435 | } |
| 11436 | _ACEOF |
| 11437 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11438 | if { (ac_try="$ac_compile" |
| 11439 | case "(($ac_try" in |
| 11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11441 | *) ac_try_echo=$ac_try;; |
| 11442 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11444 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11447 | rm -f conftest.er1 |
| 11448 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11450 | (exit $ac_status); } && { |
| 11451 | test -z "$ac_c_werror_flag" || |
| 11452 | test ! -s conftest.err |
| 11453 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | ac_lo=$ac_mid; break |
| 11455 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11459 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11460 | if test $ac_mid -le $ac_hi; then |
| 11461 | ac_lo= ac_hi= |
| 11462 | break |
| 11463 | fi |
| 11464 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11466 | |
| 11467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | done |
| 11469 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11473 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11475 | |
| 11476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11478 | |
| 11479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 | # Binary search between lo and hi bounds. |
| 11481 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11482 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11484 | /* confdefs.h. */ |
| 11485 | _ACEOF |
| 11486 | cat confdefs.h >>conftest.$ac_ext |
| 11487 | cat >>conftest.$ac_ext <<_ACEOF |
| 11488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11490 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | int |
| 11492 | main () |
| 11493 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11494 | 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] | 11495 | test_array [0] = 0 |
| 11496 | |
| 11497 | ; |
| 11498 | return 0; |
| 11499 | } |
| 11500 | _ACEOF |
| 11501 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11502 | if { (ac_try="$ac_compile" |
| 11503 | case "(($ac_try" in |
| 11504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11505 | *) ac_try_echo=$ac_try;; |
| 11506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11508 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11511 | rm -f conftest.er1 |
| 11512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11514 | (exit $ac_status); } && { |
| 11515 | test -z "$ac_c_werror_flag" || |
| 11516 | test ! -s conftest.err |
| 11517 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | ac_hi=$ac_mid |
| 11519 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11523 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11525 | |
| 11526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | done |
| 11528 | case $ac_lo in |
| 11529 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11530 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11533 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11534 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11535 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11536 | else |
| 11537 | ac_cv_sizeof_long_long=0 |
| 11538 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11539 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 | /* confdefs.h. */ |
| 11543 | _ACEOF |
| 11544 | cat confdefs.h >>conftest.$ac_ext |
| 11545 | cat >>conftest.$ac_ext <<_ACEOF |
| 11546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11548 | typedef long long ac__type_sizeof_; |
| 11549 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11550 | 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] | 11551 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | int |
| 11554 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11555 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11556 | |
| 11557 | FILE *f = fopen ("conftest.val", "w"); |
| 11558 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11559 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11560 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11562 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11563 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11564 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11565 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | } |
| 11567 | else |
| 11568 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11569 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11570 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11571 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11572 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11574 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | |
| 11576 | ; |
| 11577 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11578 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | _ACEOF |
| 11580 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11581 | if { (ac_try="$ac_link" |
| 11582 | case "(($ac_try" in |
| 11583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11584 | *) ac_try_echo=$ac_try;; |
| 11585 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11587 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11591 | { (case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11596 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | (exit $ac_status); }; }; then |
| 11600 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11601 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11602 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11607 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11608 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11609 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11610 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11611 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11612 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11613 | else |
| 11614 | ac_cv_sizeof_long_long=0 |
| 11615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11617 | 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] | 11618 | fi |
| 11619 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11620 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11621 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11622 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11623 | |
| 11624 | |
| 11625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11627 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11629 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11630 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11631 | fi |
| 11632 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11633 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11634 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11635 | have_long_double=no |
| 11636 | cat >conftest.$ac_ext <<_ACEOF |
| 11637 | /* confdefs.h. */ |
| 11638 | _ACEOF |
| 11639 | cat confdefs.h >>conftest.$ac_ext |
| 11640 | cat >>conftest.$ac_ext <<_ACEOF |
| 11641 | /* end confdefs.h. */ |
| 11642 | |
| 11643 | int |
| 11644 | main () |
| 11645 | { |
| 11646 | long double x; x = (long double)0.; |
| 11647 | ; |
| 11648 | return 0; |
| 11649 | } |
| 11650 | _ACEOF |
| 11651 | rm -f conftest.$ac_objext |
| 11652 | if { (ac_try="$ac_compile" |
| 11653 | case "(($ac_try" in |
| 11654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11655 | *) ac_try_echo=$ac_try;; |
| 11656 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11658 | (eval "$ac_compile") 2>conftest.er1 |
| 11659 | ac_status=$? |
| 11660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11661 | rm -f conftest.er1 |
| 11662 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11664 | (exit $ac_status); } && { |
| 11665 | test -z "$ac_c_werror_flag" || |
| 11666 | test ! -s conftest.err |
| 11667 | } && test -s conftest.$ac_objext; then |
| 11668 | |
| 11669 | |
| 11670 | cat >>confdefs.h <<\_ACEOF |
| 11671 | #define HAVE_LONG_DOUBLE 1 |
| 11672 | _ACEOF |
| 11673 | |
| 11674 | have_long_double=yes |
| 11675 | |
| 11676 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11677 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11679 | |
| 11680 | |
| 11681 | fi |
| 11682 | |
| 11683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11684 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11685 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11686 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11687 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11688 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11689 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11691 | else |
| 11692 | cat >conftest.$ac_ext <<_ACEOF |
| 11693 | /* confdefs.h. */ |
| 11694 | _ACEOF |
| 11695 | cat confdefs.h >>conftest.$ac_ext |
| 11696 | cat >>conftest.$ac_ext <<_ACEOF |
| 11697 | /* end confdefs.h. */ |
| 11698 | $ac_includes_default |
| 11699 | typedef long double ac__type_new_; |
| 11700 | int |
| 11701 | main () |
| 11702 | { |
| 11703 | if ((ac__type_new_ *) 0) |
| 11704 | return 0; |
| 11705 | if (sizeof (ac__type_new_)) |
| 11706 | return 0; |
| 11707 | ; |
| 11708 | return 0; |
| 11709 | } |
| 11710 | _ACEOF |
| 11711 | rm -f conftest.$ac_objext |
| 11712 | if { (ac_try="$ac_compile" |
| 11713 | case "(($ac_try" in |
| 11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11715 | *) ac_try_echo=$ac_try;; |
| 11716 | esac |
| 11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11718 | (eval "$ac_compile") 2>conftest.er1 |
| 11719 | ac_status=$? |
| 11720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11721 | rm -f conftest.er1 |
| 11722 | cat conftest.err >&5 |
| 11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11724 | (exit $ac_status); } && { |
| 11725 | test -z "$ac_c_werror_flag" || |
| 11726 | test ! -s conftest.err |
| 11727 | } && test -s conftest.$ac_objext; then |
| 11728 | ac_cv_type_long_double=yes |
| 11729 | else |
| 11730 | echo "$as_me: failed program was:" >&5 |
| 11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11732 | |
| 11733 | ac_cv_type_long_double=no |
| 11734 | fi |
| 11735 | |
| 11736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11737 | fi |
| 11738 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11739 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11740 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11741 | # The cast to long int works around a bug in the HP C Compiler |
| 11742 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11743 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11744 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11745 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11746 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11747 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11749 | else |
| 11750 | if test "$cross_compiling" = yes; then |
| 11751 | # Depending upon the size, compute the lo and hi bounds. |
| 11752 | cat >conftest.$ac_ext <<_ACEOF |
| 11753 | /* confdefs.h. */ |
| 11754 | _ACEOF |
| 11755 | cat confdefs.h >>conftest.$ac_ext |
| 11756 | cat >>conftest.$ac_ext <<_ACEOF |
| 11757 | /* end confdefs.h. */ |
| 11758 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11759 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11760 | int |
| 11761 | main () |
| 11762 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11763 | 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] | 11764 | test_array [0] = 0 |
| 11765 | |
| 11766 | ; |
| 11767 | return 0; |
| 11768 | } |
| 11769 | _ACEOF |
| 11770 | rm -f conftest.$ac_objext |
| 11771 | if { (ac_try="$ac_compile" |
| 11772 | case "(($ac_try" in |
| 11773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11774 | *) ac_try_echo=$ac_try;; |
| 11775 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11777 | (eval "$ac_compile") 2>conftest.er1 |
| 11778 | ac_status=$? |
| 11779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11780 | rm -f conftest.er1 |
| 11781 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11783 | (exit $ac_status); } && { |
| 11784 | test -z "$ac_c_werror_flag" || |
| 11785 | test ! -s conftest.err |
| 11786 | } && test -s conftest.$ac_objext; then |
| 11787 | ac_lo=0 ac_mid=0 |
| 11788 | while :; do |
| 11789 | cat >conftest.$ac_ext <<_ACEOF |
| 11790 | /* confdefs.h. */ |
| 11791 | _ACEOF |
| 11792 | cat confdefs.h >>conftest.$ac_ext |
| 11793 | cat >>conftest.$ac_ext <<_ACEOF |
| 11794 | /* end confdefs.h. */ |
| 11795 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11796 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11797 | int |
| 11798 | main () |
| 11799 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11800 | 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] | 11801 | test_array [0] = 0 |
| 11802 | |
| 11803 | ; |
| 11804 | return 0; |
| 11805 | } |
| 11806 | _ACEOF |
| 11807 | rm -f conftest.$ac_objext |
| 11808 | if { (ac_try="$ac_compile" |
| 11809 | case "(($ac_try" in |
| 11810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11811 | *) ac_try_echo=$ac_try;; |
| 11812 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11814 | (eval "$ac_compile") 2>conftest.er1 |
| 11815 | ac_status=$? |
| 11816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11817 | rm -f conftest.er1 |
| 11818 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11820 | (exit $ac_status); } && { |
| 11821 | test -z "$ac_c_werror_flag" || |
| 11822 | test ! -s conftest.err |
| 11823 | } && test -s conftest.$ac_objext; then |
| 11824 | ac_hi=$ac_mid; break |
| 11825 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11826 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11828 | |
| 11829 | ac_lo=`expr $ac_mid + 1` |
| 11830 | if test $ac_lo -le $ac_mid; then |
| 11831 | ac_lo= ac_hi= |
| 11832 | break |
| 11833 | fi |
| 11834 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11835 | fi |
| 11836 | |
| 11837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11838 | done |
| 11839 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11840 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11842 | |
| 11843 | cat >conftest.$ac_ext <<_ACEOF |
| 11844 | /* confdefs.h. */ |
| 11845 | _ACEOF |
| 11846 | cat confdefs.h >>conftest.$ac_ext |
| 11847 | cat >>conftest.$ac_ext <<_ACEOF |
| 11848 | /* end confdefs.h. */ |
| 11849 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11850 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11851 | int |
| 11852 | main () |
| 11853 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11854 | 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] | 11855 | test_array [0] = 0 |
| 11856 | |
| 11857 | ; |
| 11858 | return 0; |
| 11859 | } |
| 11860 | _ACEOF |
| 11861 | rm -f conftest.$ac_objext |
| 11862 | if { (ac_try="$ac_compile" |
| 11863 | case "(($ac_try" in |
| 11864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11865 | *) ac_try_echo=$ac_try;; |
| 11866 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11868 | (eval "$ac_compile") 2>conftest.er1 |
| 11869 | ac_status=$? |
| 11870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11871 | rm -f conftest.er1 |
| 11872 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11874 | (exit $ac_status); } && { |
| 11875 | test -z "$ac_c_werror_flag" || |
| 11876 | test ! -s conftest.err |
| 11877 | } && test -s conftest.$ac_objext; then |
| 11878 | ac_hi=-1 ac_mid=-1 |
| 11879 | while :; do |
| 11880 | cat >conftest.$ac_ext <<_ACEOF |
| 11881 | /* confdefs.h. */ |
| 11882 | _ACEOF |
| 11883 | cat confdefs.h >>conftest.$ac_ext |
| 11884 | cat >>conftest.$ac_ext <<_ACEOF |
| 11885 | /* end confdefs.h. */ |
| 11886 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11887 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11888 | int |
| 11889 | main () |
| 11890 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11891 | 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] | 11892 | test_array [0] = 0 |
| 11893 | |
| 11894 | ; |
| 11895 | return 0; |
| 11896 | } |
| 11897 | _ACEOF |
| 11898 | rm -f conftest.$ac_objext |
| 11899 | if { (ac_try="$ac_compile" |
| 11900 | case "(($ac_try" in |
| 11901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11902 | *) ac_try_echo=$ac_try;; |
| 11903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11905 | (eval "$ac_compile") 2>conftest.er1 |
| 11906 | ac_status=$? |
| 11907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11908 | rm -f conftest.er1 |
| 11909 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11911 | (exit $ac_status); } && { |
| 11912 | test -z "$ac_c_werror_flag" || |
| 11913 | test ! -s conftest.err |
| 11914 | } && test -s conftest.$ac_objext; then |
| 11915 | ac_lo=$ac_mid; break |
| 11916 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11917 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11919 | |
| 11920 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11921 | if test $ac_mid -le $ac_hi; then |
| 11922 | ac_lo= ac_hi= |
| 11923 | break |
| 11924 | fi |
| 11925 | ac_mid=`expr 2 '*' $ac_mid` |
| 11926 | fi |
| 11927 | |
| 11928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11929 | done |
| 11930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11931 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11933 | |
| 11934 | ac_lo= ac_hi= |
| 11935 | fi |
| 11936 | |
| 11937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11938 | fi |
| 11939 | |
| 11940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11941 | # Binary search between lo and hi bounds. |
| 11942 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11943 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11944 | cat >conftest.$ac_ext <<_ACEOF |
| 11945 | /* confdefs.h. */ |
| 11946 | _ACEOF |
| 11947 | cat confdefs.h >>conftest.$ac_ext |
| 11948 | cat >>conftest.$ac_ext <<_ACEOF |
| 11949 | /* end confdefs.h. */ |
| 11950 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11951 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11952 | int |
| 11953 | main () |
| 11954 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11955 | 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] | 11956 | test_array [0] = 0 |
| 11957 | |
| 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
| 11961 | _ACEOF |
| 11962 | rm -f conftest.$ac_objext |
| 11963 | if { (ac_try="$ac_compile" |
| 11964 | case "(($ac_try" in |
| 11965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11966 | *) ac_try_echo=$ac_try;; |
| 11967 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11969 | (eval "$ac_compile") 2>conftest.er1 |
| 11970 | ac_status=$? |
| 11971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11972 | rm -f conftest.er1 |
| 11973 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11975 | (exit $ac_status); } && { |
| 11976 | test -z "$ac_c_werror_flag" || |
| 11977 | test ! -s conftest.err |
| 11978 | } && test -s conftest.$ac_objext; then |
| 11979 | ac_hi=$ac_mid |
| 11980 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11981 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11983 | |
| 11984 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11985 | fi |
| 11986 | |
| 11987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11988 | done |
| 11989 | case $ac_lo in |
| 11990 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11991 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11992 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11993 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11994 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11995 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11996 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11997 | else |
| 11998 | ac_cv_sizeof_long_double=0 |
| 11999 | fi ;; |
| 12000 | esac |
| 12001 | else |
| 12002 | cat >conftest.$ac_ext <<_ACEOF |
| 12003 | /* confdefs.h. */ |
| 12004 | _ACEOF |
| 12005 | cat confdefs.h >>conftest.$ac_ext |
| 12006 | cat >>conftest.$ac_ext <<_ACEOF |
| 12007 | /* end confdefs.h. */ |
| 12008 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12009 | typedef long double ac__type_sizeof_; |
| 12010 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12011 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12012 | #include <stdio.h> |
| 12013 | #include <stdlib.h> |
| 12014 | int |
| 12015 | main () |
| 12016 | { |
| 12017 | |
| 12018 | FILE *f = fopen ("conftest.val", "w"); |
| 12019 | if (! f) |
| 12020 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12021 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12022 | { |
| 12023 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12024 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12025 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12026 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12027 | } |
| 12028 | else |
| 12029 | { |
| 12030 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12031 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12032 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12033 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12034 | } |
| 12035 | return ferror (f) || fclose (f) != 0; |
| 12036 | |
| 12037 | ; |
| 12038 | return 0; |
| 12039 | } |
| 12040 | _ACEOF |
| 12041 | rm -f conftest$ac_exeext |
| 12042 | if { (ac_try="$ac_link" |
| 12043 | case "(($ac_try" in |
| 12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12045 | *) ac_try_echo=$ac_try;; |
| 12046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12048 | (eval "$ac_link") 2>&5 |
| 12049 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12052 | { (case "(($ac_try" in |
| 12053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12054 | *) ac_try_echo=$ac_try;; |
| 12055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12057 | (eval "$ac_try") 2>&5 |
| 12058 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12060 | (exit $ac_status); }; }; then |
| 12061 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12062 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12063 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12064 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12066 | |
| 12067 | ( exit $ac_status ) |
| 12068 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12069 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12070 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12071 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12072 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12073 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12074 | else |
| 12075 | ac_cv_sizeof_long_double=0 |
| 12076 | fi |
| 12077 | fi |
| 12078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12079 | fi |
| 12080 | rm -f conftest.val |
| 12081 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12082 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12083 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12084 | |
| 12085 | |
| 12086 | |
| 12087 | cat >>confdefs.h <<_ACEOF |
| 12088 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12089 | _ACEOF |
| 12090 | |
| 12091 | |
| 12092 | fi |
| 12093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12094 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12095 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12096 | have_c99_bool=no |
| 12097 | cat >conftest.$ac_ext <<_ACEOF |
| 12098 | /* confdefs.h. */ |
| 12099 | _ACEOF |
| 12100 | cat confdefs.h >>conftest.$ac_ext |
| 12101 | cat >>conftest.$ac_ext <<_ACEOF |
| 12102 | /* end confdefs.h. */ |
| 12103 | |
| 12104 | int |
| 12105 | main () |
| 12106 | { |
| 12107 | _Bool x; x = (_Bool)0; |
| 12108 | ; |
| 12109 | return 0; |
| 12110 | } |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12113 | if { (ac_try="$ac_compile" |
| 12114 | case "(($ac_try" in |
| 12115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12116 | *) ac_try_echo=$ac_try;; |
| 12117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12120 | ac_status=$? |
| 12121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12122 | rm -f conftest.er1 |
| 12123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12125 | (exit $ac_status); } && { |
| 12126 | test -z "$ac_c_werror_flag" || |
| 12127 | test ! -s conftest.err |
| 12128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12129 | |
| 12130 | |
| 12131 | cat >>confdefs.h <<\_ACEOF |
| 12132 | #define HAVE_C99_BOOL 1 |
| 12133 | _ACEOF |
| 12134 | |
| 12135 | have_c99_bool=yes |
| 12136 | |
| 12137 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12138 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12140 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12141 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12142 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12143 | |
| 12144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12145 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12146 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12147 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12148 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12149 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12150 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12152 | else |
| 12153 | cat >conftest.$ac_ext <<_ACEOF |
| 12154 | /* confdefs.h. */ |
| 12155 | _ACEOF |
| 12156 | cat confdefs.h >>conftest.$ac_ext |
| 12157 | cat >>conftest.$ac_ext <<_ACEOF |
| 12158 | /* end confdefs.h. */ |
| 12159 | $ac_includes_default |
| 12160 | typedef _Bool ac__type_new_; |
| 12161 | int |
| 12162 | main () |
| 12163 | { |
| 12164 | if ((ac__type_new_ *) 0) |
| 12165 | return 0; |
| 12166 | if (sizeof (ac__type_new_)) |
| 12167 | return 0; |
| 12168 | ; |
| 12169 | return 0; |
| 12170 | } |
| 12171 | _ACEOF |
| 12172 | rm -f conftest.$ac_objext |
| 12173 | if { (ac_try="$ac_compile" |
| 12174 | case "(($ac_try" in |
| 12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12176 | *) ac_try_echo=$ac_try;; |
| 12177 | esac |
| 12178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12179 | (eval "$ac_compile") 2>conftest.er1 |
| 12180 | ac_status=$? |
| 12181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12182 | rm -f conftest.er1 |
| 12183 | cat conftest.err >&5 |
| 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12185 | (exit $ac_status); } && { |
| 12186 | test -z "$ac_c_werror_flag" || |
| 12187 | test ! -s conftest.err |
| 12188 | } && test -s conftest.$ac_objext; then |
| 12189 | ac_cv_type__Bool=yes |
| 12190 | else |
| 12191 | echo "$as_me: failed program was:" >&5 |
| 12192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12193 | |
| 12194 | ac_cv_type__Bool=no |
| 12195 | fi |
| 12196 | |
| 12197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12198 | fi |
| 12199 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12200 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12201 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12202 | # The cast to long int works around a bug in the HP C Compiler |
| 12203 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12204 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12205 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12207 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12208 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12210 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12211 | if test "$cross_compiling" = yes; then |
| 12212 | # Depending upon the size, compute the lo and hi bounds. |
| 12213 | cat >conftest.$ac_ext <<_ACEOF |
| 12214 | /* confdefs.h. */ |
| 12215 | _ACEOF |
| 12216 | cat confdefs.h >>conftest.$ac_ext |
| 12217 | cat >>conftest.$ac_ext <<_ACEOF |
| 12218 | /* end confdefs.h. */ |
| 12219 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12220 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12221 | int |
| 12222 | main () |
| 12223 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12224 | 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] | 12225 | test_array [0] = 0 |
| 12226 | |
| 12227 | ; |
| 12228 | return 0; |
| 12229 | } |
| 12230 | _ACEOF |
| 12231 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12232 | if { (ac_try="$ac_compile" |
| 12233 | case "(($ac_try" in |
| 12234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12235 | *) ac_try_echo=$ac_try;; |
| 12236 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12238 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12239 | ac_status=$? |
| 12240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12241 | rm -f conftest.er1 |
| 12242 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12244 | (exit $ac_status); } && { |
| 12245 | test -z "$ac_c_werror_flag" || |
| 12246 | test ! -s conftest.err |
| 12247 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12248 | ac_lo=0 ac_mid=0 |
| 12249 | while :; do |
| 12250 | cat >conftest.$ac_ext <<_ACEOF |
| 12251 | /* confdefs.h. */ |
| 12252 | _ACEOF |
| 12253 | cat confdefs.h >>conftest.$ac_ext |
| 12254 | cat >>conftest.$ac_ext <<_ACEOF |
| 12255 | /* end confdefs.h. */ |
| 12256 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12257 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12258 | int |
| 12259 | main () |
| 12260 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12261 | 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] | 12262 | test_array [0] = 0 |
| 12263 | |
| 12264 | ; |
| 12265 | return 0; |
| 12266 | } |
| 12267 | _ACEOF |
| 12268 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12269 | if { (ac_try="$ac_compile" |
| 12270 | case "(($ac_try" in |
| 12271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12272 | *) ac_try_echo=$ac_try;; |
| 12273 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12275 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12276 | ac_status=$? |
| 12277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12278 | rm -f conftest.er1 |
| 12279 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12281 | (exit $ac_status); } && { |
| 12282 | test -z "$ac_c_werror_flag" || |
| 12283 | test ! -s conftest.err |
| 12284 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12285 | ac_hi=$ac_mid; break |
| 12286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12287 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12290 | ac_lo=`expr $ac_mid + 1` |
| 12291 | if test $ac_lo -le $ac_mid; then |
| 12292 | ac_lo= ac_hi= |
| 12293 | break |
| 12294 | fi |
| 12295 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12297 | |
| 12298 | 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] | 12299 | done |
| 12300 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12301 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12303 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12304 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12305 | /* confdefs.h. */ |
| 12306 | _ACEOF |
| 12307 | cat confdefs.h >>conftest.$ac_ext |
| 12308 | cat >>conftest.$ac_ext <<_ACEOF |
| 12309 | /* end confdefs.h. */ |
| 12310 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12311 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12312 | int |
| 12313 | main () |
| 12314 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12315 | 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] | 12316 | test_array [0] = 0 |
| 12317 | |
| 12318 | ; |
| 12319 | return 0; |
| 12320 | } |
| 12321 | _ACEOF |
| 12322 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12323 | if { (ac_try="$ac_compile" |
| 12324 | case "(($ac_try" in |
| 12325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12326 | *) ac_try_echo=$ac_try;; |
| 12327 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12329 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12330 | ac_status=$? |
| 12331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12332 | rm -f conftest.er1 |
| 12333 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12335 | (exit $ac_status); } && { |
| 12336 | test -z "$ac_c_werror_flag" || |
| 12337 | test ! -s conftest.err |
| 12338 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12339 | ac_hi=-1 ac_mid=-1 |
| 12340 | while :; do |
| 12341 | cat >conftest.$ac_ext <<_ACEOF |
| 12342 | /* confdefs.h. */ |
| 12343 | _ACEOF |
| 12344 | cat confdefs.h >>conftest.$ac_ext |
| 12345 | cat >>conftest.$ac_ext <<_ACEOF |
| 12346 | /* end confdefs.h. */ |
| 12347 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12348 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12349 | int |
| 12350 | main () |
| 12351 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12352 | 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] | 12353 | test_array [0] = 0 |
| 12354 | |
| 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
| 12359 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12360 | if { (ac_try="$ac_compile" |
| 12361 | case "(($ac_try" in |
| 12362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12363 | *) ac_try_echo=$ac_try;; |
| 12364 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12366 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12367 | ac_status=$? |
| 12368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12369 | rm -f conftest.er1 |
| 12370 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12372 | (exit $ac_status); } && { |
| 12373 | test -z "$ac_c_werror_flag" || |
| 12374 | test ! -s conftest.err |
| 12375 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12376 | ac_lo=$ac_mid; break |
| 12377 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12378 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12381 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12382 | if test $ac_mid -le $ac_hi; then |
| 12383 | ac_lo= ac_hi= |
| 12384 | break |
| 12385 | fi |
| 12386 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12387 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12388 | |
| 12389 | 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] | 12390 | done |
| 12391 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12392 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12394 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12395 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12396 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12397 | |
| 12398 | 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] | 12399 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12400 | |
| 12401 | 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] | 12402 | # Binary search between lo and hi bounds. |
| 12403 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12404 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12405 | cat >conftest.$ac_ext <<_ACEOF |
| 12406 | /* confdefs.h. */ |
| 12407 | _ACEOF |
| 12408 | cat confdefs.h >>conftest.$ac_ext |
| 12409 | cat >>conftest.$ac_ext <<_ACEOF |
| 12410 | /* end confdefs.h. */ |
| 12411 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12412 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12413 | int |
| 12414 | main () |
| 12415 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12416 | 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] | 12417 | test_array [0] = 0 |
| 12418 | |
| 12419 | ; |
| 12420 | return 0; |
| 12421 | } |
| 12422 | _ACEOF |
| 12423 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12424 | if { (ac_try="$ac_compile" |
| 12425 | case "(($ac_try" in |
| 12426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12427 | *) ac_try_echo=$ac_try;; |
| 12428 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12430 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12431 | ac_status=$? |
| 12432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12433 | rm -f conftest.er1 |
| 12434 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12436 | (exit $ac_status); } && { |
| 12437 | test -z "$ac_c_werror_flag" || |
| 12438 | test ! -s conftest.err |
| 12439 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12440 | ac_hi=$ac_mid |
| 12441 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12442 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12444 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12446 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12447 | |
| 12448 | 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] | 12449 | done |
| 12450 | case $ac_lo in |
| 12451 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12452 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12453 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12454 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12455 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12456 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12457 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12458 | else |
| 12459 | ac_cv_sizeof__Bool=0 |
| 12460 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12461 | esac |
| 12462 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12463 | cat >conftest.$ac_ext <<_ACEOF |
| 12464 | /* confdefs.h. */ |
| 12465 | _ACEOF |
| 12466 | cat confdefs.h >>conftest.$ac_ext |
| 12467 | cat >>conftest.$ac_ext <<_ACEOF |
| 12468 | /* end confdefs.h. */ |
| 12469 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12470 | typedef _Bool ac__type_sizeof_; |
| 12471 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12472 | 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] | 12473 | #include <stdio.h> |
| 12474 | #include <stdlib.h> |
| 12475 | int |
| 12476 | main () |
| 12477 | { |
| 12478 | |
| 12479 | FILE *f = fopen ("conftest.val", "w"); |
| 12480 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12481 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12482 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12483 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12484 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12485 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12486 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12487 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12488 | } |
| 12489 | else |
| 12490 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12491 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12492 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12493 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12494 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12495 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12496 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12497 | |
| 12498 | ; |
| 12499 | return 0; |
| 12500 | } |
| 12501 | _ACEOF |
| 12502 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12503 | if { (ac_try="$ac_link" |
| 12504 | case "(($ac_try" in |
| 12505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12506 | *) ac_try_echo=$ac_try;; |
| 12507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12509 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12510 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12513 | { (case "(($ac_try" in |
| 12514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12515 | *) ac_try_echo=$ac_try;; |
| 12516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12518 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12519 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12521 | (exit $ac_status); }; }; then |
| 12522 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12523 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12524 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12525 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12527 | |
| 12528 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12529 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12530 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12531 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12532 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12533 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12534 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12535 | else |
| 12536 | ac_cv_sizeof__Bool=0 |
| 12537 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12539 | 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] | 12540 | fi |
| 12541 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12542 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12543 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12544 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12545 | |
| 12546 | |
| 12547 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12548 | cat >>confdefs.h <<_ACEOF |
| 12549 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12550 | _ACEOF |
| 12551 | |
| 12552 | |
| 12553 | fi |
| 12554 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12555 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12556 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12557 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12559 | else |
| 12560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12561 | /* confdefs.h. */ |
| 12562 | _ACEOF |
| 12563 | cat confdefs.h >>conftest.$ac_ext |
| 12564 | cat >>conftest.$ac_ext <<_ACEOF |
| 12565 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12566 | #ifdef HAVE_STDINT_H |
| 12567 | #include <stdint.h> |
| 12568 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12569 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12570 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | int |
| 12572 | main () |
| 12573 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12574 | if ((ac__type_new_ *) 0) |
| 12575 | return 0; |
| 12576 | if (sizeof (ac__type_new_)) |
| 12577 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | ; |
| 12579 | return 0; |
| 12580 | } |
| 12581 | _ACEOF |
| 12582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12583 | if { (ac_try="$ac_compile" |
| 12584 | case "(($ac_try" in |
| 12585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12586 | *) ac_try_echo=$ac_try;; |
| 12587 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12589 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12592 | rm -f conftest.er1 |
| 12593 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12595 | (exit $ac_status); } && { |
| 12596 | test -z "$ac_c_werror_flag" || |
| 12597 | test ! -s conftest.err |
| 12598 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12599 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12600 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12601 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12603 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12604 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12605 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12606 | |
| 12607 | 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] | 12608 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12609 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12610 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12611 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12612 | |
| 12613 | cat >>confdefs.h <<_ACEOF |
| 12614 | #define HAVE_UINTPTR_T 1 |
| 12615 | _ACEOF |
| 12616 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12617 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12618 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12619 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12621 | else |
| 12622 | cat >conftest.$ac_ext <<_ACEOF |
| 12623 | /* confdefs.h. */ |
| 12624 | _ACEOF |
| 12625 | cat confdefs.h >>conftest.$ac_ext |
| 12626 | cat >>conftest.$ac_ext <<_ACEOF |
| 12627 | /* end confdefs.h. */ |
| 12628 | $ac_includes_default |
| 12629 | typedef uintptr_t ac__type_new_; |
| 12630 | int |
| 12631 | main () |
| 12632 | { |
| 12633 | if ((ac__type_new_ *) 0) |
| 12634 | return 0; |
| 12635 | if (sizeof (ac__type_new_)) |
| 12636 | return 0; |
| 12637 | ; |
| 12638 | return 0; |
| 12639 | } |
| 12640 | _ACEOF |
| 12641 | rm -f conftest.$ac_objext |
| 12642 | if { (ac_try="$ac_compile" |
| 12643 | case "(($ac_try" in |
| 12644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12645 | *) ac_try_echo=$ac_try;; |
| 12646 | esac |
| 12647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12648 | (eval "$ac_compile") 2>conftest.er1 |
| 12649 | ac_status=$? |
| 12650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12651 | rm -f conftest.er1 |
| 12652 | cat conftest.err >&5 |
| 12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12654 | (exit $ac_status); } && { |
| 12655 | test -z "$ac_c_werror_flag" || |
| 12656 | test ! -s conftest.err |
| 12657 | } && test -s conftest.$ac_objext; then |
| 12658 | ac_cv_type_uintptr_t=yes |
| 12659 | else |
| 12660 | echo "$as_me: failed program was:" >&5 |
| 12661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12662 | |
| 12663 | ac_cv_type_uintptr_t=no |
| 12664 | fi |
| 12665 | |
| 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12667 | fi |
| 12668 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12669 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12670 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12671 | # The cast to long int works around a bug in the HP C Compiler |
| 12672 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12673 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12674 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12675 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12676 | 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] | 12677 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | if test "$cross_compiling" = yes; then |
| 12681 | # Depending upon the size, compute the lo and hi bounds. |
| 12682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12683 | /* confdefs.h. */ |
| 12684 | _ACEOF |
| 12685 | cat confdefs.h >>conftest.$ac_ext |
| 12686 | cat >>conftest.$ac_ext <<_ACEOF |
| 12687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12689 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | int |
| 12691 | main () |
| 12692 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12693 | 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] | 12694 | test_array [0] = 0 |
| 12695 | |
| 12696 | ; |
| 12697 | return 0; |
| 12698 | } |
| 12699 | _ACEOF |
| 12700 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12701 | if { (ac_try="$ac_compile" |
| 12702 | case "(($ac_try" in |
| 12703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12704 | *) ac_try_echo=$ac_try;; |
| 12705 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12707 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12710 | rm -f conftest.er1 |
| 12711 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12713 | (exit $ac_status); } && { |
| 12714 | test -z "$ac_c_werror_flag" || |
| 12715 | test ! -s conftest.err |
| 12716 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | ac_lo=0 ac_mid=0 |
| 12718 | while :; do |
| 12719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12720 | /* confdefs.h. */ |
| 12721 | _ACEOF |
| 12722 | cat confdefs.h >>conftest.$ac_ext |
| 12723 | cat >>conftest.$ac_ext <<_ACEOF |
| 12724 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12726 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | int |
| 12728 | main () |
| 12729 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12730 | 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] | 12731 | test_array [0] = 0 |
| 12732 | |
| 12733 | ; |
| 12734 | return 0; |
| 12735 | } |
| 12736 | _ACEOF |
| 12737 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12738 | if { (ac_try="$ac_compile" |
| 12739 | case "(($ac_try" in |
| 12740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12741 | *) ac_try_echo=$ac_try;; |
| 12742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12747 | rm -f conftest.er1 |
| 12748 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12750 | (exit $ac_status); } && { |
| 12751 | test -z "$ac_c_werror_flag" || |
| 12752 | test ! -s conftest.err |
| 12753 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | ac_hi=$ac_mid; break |
| 12755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12759 | ac_lo=`expr $ac_mid + 1` |
| 12760 | if test $ac_lo -le $ac_mid; then |
| 12761 | ac_lo= ac_hi= |
| 12762 | break |
| 12763 | fi |
| 12764 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12766 | |
| 12767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | done |
| 12769 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12774 | /* confdefs.h. */ |
| 12775 | _ACEOF |
| 12776 | cat confdefs.h >>conftest.$ac_ext |
| 12777 | cat >>conftest.$ac_ext <<_ACEOF |
| 12778 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12780 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | int |
| 12782 | main () |
| 12783 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12784 | 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] | 12785 | test_array [0] = 0 |
| 12786 | |
| 12787 | ; |
| 12788 | return 0; |
| 12789 | } |
| 12790 | _ACEOF |
| 12791 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12792 | if { (ac_try="$ac_compile" |
| 12793 | case "(($ac_try" in |
| 12794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12795 | *) ac_try_echo=$ac_try;; |
| 12796 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12798 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12801 | rm -f conftest.er1 |
| 12802 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12804 | (exit $ac_status); } && { |
| 12805 | test -z "$ac_c_werror_flag" || |
| 12806 | test ! -s conftest.err |
| 12807 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | ac_hi=-1 ac_mid=-1 |
| 12809 | while :; do |
| 12810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12811 | /* confdefs.h. */ |
| 12812 | _ACEOF |
| 12813 | cat confdefs.h >>conftest.$ac_ext |
| 12814 | cat >>conftest.$ac_ext <<_ACEOF |
| 12815 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12817 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | int |
| 12819 | main () |
| 12820 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12821 | 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] | 12822 | test_array [0] = 0 |
| 12823 | |
| 12824 | ; |
| 12825 | return 0; |
| 12826 | } |
| 12827 | _ACEOF |
| 12828 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12829 | if { (ac_try="$ac_compile" |
| 12830 | case "(($ac_try" in |
| 12831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12832 | *) ac_try_echo=$ac_try;; |
| 12833 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12835 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12838 | rm -f conftest.er1 |
| 12839 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12841 | (exit $ac_status); } && { |
| 12842 | test -z "$ac_c_werror_flag" || |
| 12843 | test ! -s conftest.err |
| 12844 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | ac_lo=$ac_mid; break |
| 12846 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12850 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12851 | if test $ac_mid -le $ac_hi; then |
| 12852 | ac_lo= ac_hi= |
| 12853 | break |
| 12854 | fi |
| 12855 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12856 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12857 | |
| 12858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | done |
| 12860 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12864 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12866 | |
| 12867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12868 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12869 | |
| 12870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | # Binary search between lo and hi bounds. |
| 12872 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12873 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12875 | /* confdefs.h. */ |
| 12876 | _ACEOF |
| 12877 | cat confdefs.h >>conftest.$ac_ext |
| 12878 | cat >>conftest.$ac_ext <<_ACEOF |
| 12879 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12881 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | int |
| 12883 | main () |
| 12884 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12885 | 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] | 12886 | test_array [0] = 0 |
| 12887 | |
| 12888 | ; |
| 12889 | return 0; |
| 12890 | } |
| 12891 | _ACEOF |
| 12892 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12893 | if { (ac_try="$ac_compile" |
| 12894 | case "(($ac_try" in |
| 12895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12896 | *) ac_try_echo=$ac_try;; |
| 12897 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12899 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12902 | rm -f conftest.er1 |
| 12903 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12905 | (exit $ac_status); } && { |
| 12906 | test -z "$ac_c_werror_flag" || |
| 12907 | test ! -s conftest.err |
| 12908 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | ac_hi=$ac_mid |
| 12910 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12913 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12914 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12916 | |
| 12917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | done |
| 12919 | case $ac_lo in |
| 12920 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12921 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12922 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12923 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12924 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12925 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12926 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12927 | else |
| 12928 | ac_cv_sizeof_uintptr_t=0 |
| 12929 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12933 | /* confdefs.h. */ |
| 12934 | _ACEOF |
| 12935 | cat confdefs.h >>conftest.$ac_ext |
| 12936 | cat >>conftest.$ac_ext <<_ACEOF |
| 12937 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12938 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12939 | typedef uintptr_t ac__type_sizeof_; |
| 12940 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12941 | 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] | 12942 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | int |
| 12945 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12946 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | |
| 12948 | FILE *f = fopen ("conftest.val", "w"); |
| 12949 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12950 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12951 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12953 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12954 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12955 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12956 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | } |
| 12958 | else |
| 12959 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12960 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12961 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12962 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12963 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12965 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | |
| 12967 | ; |
| 12968 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12969 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | _ACEOF |
| 12971 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12972 | if { (ac_try="$ac_link" |
| 12973 | case "(($ac_try" in |
| 12974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12975 | *) ac_try_echo=$ac_try;; |
| 12976 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12978 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12982 | { (case "(($ac_try" in |
| 12983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12984 | *) ac_try_echo=$ac_try;; |
| 12985 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12987 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | (exit $ac_status); }; }; then |
| 12991 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12992 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12993 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12998 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12999 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13001 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13002 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13003 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13004 | else |
| 13005 | ac_cv_sizeof_uintptr_t=0 |
| 13006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13008 | 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] | 13009 | fi |
| 13010 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13011 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13013 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13014 | |
| 13015 | |
| 13016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13018 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13019 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13020 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13021 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13022 | fi |
| 13023 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13024 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13025 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13026 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13027 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13031 | /* confdefs.h. */ |
| 13032 | _ACEOF |
| 13033 | cat confdefs.h >>conftest.$ac_ext |
| 13034 | cat >>conftest.$ac_ext <<_ACEOF |
| 13035 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13036 | |
| 13037 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13038 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13039 | #endif |
| 13040 | |
| 13041 | |
| 13042 | typedef off_t ac__type_new_; |
| 13043 | int |
| 13044 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13045 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13046 | if ((ac__type_new_ *) 0) |
| 13047 | return 0; |
| 13048 | if (sizeof (ac__type_new_)) |
| 13049 | return 0; |
| 13050 | ; |
| 13051 | return 0; |
| 13052 | } |
| 13053 | _ACEOF |
| 13054 | rm -f conftest.$ac_objext |
| 13055 | if { (ac_try="$ac_compile" |
| 13056 | case "(($ac_try" in |
| 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13058 | *) ac_try_echo=$ac_try;; |
| 13059 | esac |
| 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13061 | (eval "$ac_compile") 2>conftest.er1 |
| 13062 | ac_status=$? |
| 13063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13064 | rm -f conftest.er1 |
| 13065 | cat conftest.err >&5 |
| 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13067 | (exit $ac_status); } && { |
| 13068 | test -z "$ac_c_werror_flag" || |
| 13069 | test ! -s conftest.err |
| 13070 | } && test -s conftest.$ac_objext; then |
| 13071 | ac_cv_type_off_t=yes |
| 13072 | else |
| 13073 | echo "$as_me: failed program was:" >&5 |
| 13074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13075 | |
| 13076 | ac_cv_type_off_t=no |
| 13077 | fi |
| 13078 | |
| 13079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13080 | fi |
| 13081 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13082 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13083 | |
| 13084 | # The cast to long int works around a bug in the HP C Compiler |
| 13085 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13086 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13087 | # This bug is HP SR number 8606223364. |
| 13088 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13089 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13090 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13092 | else |
| 13093 | if test "$cross_compiling" = yes; then |
| 13094 | # Depending upon the size, compute the lo and hi bounds. |
| 13095 | cat >conftest.$ac_ext <<_ACEOF |
| 13096 | /* confdefs.h. */ |
| 13097 | _ACEOF |
| 13098 | cat confdefs.h >>conftest.$ac_ext |
| 13099 | cat >>conftest.$ac_ext <<_ACEOF |
| 13100 | /* end confdefs.h. */ |
| 13101 | |
| 13102 | #ifdef HAVE_SYS_TYPES_H |
| 13103 | #include <sys/types.h> |
| 13104 | #endif |
| 13105 | |
| 13106 | |
| 13107 | typedef off_t ac__type_sizeof_; |
| 13108 | int |
| 13109 | main () |
| 13110 | { |
| 13111 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13112 | test_array [0] = 0 |
| 13113 | |
| 13114 | ; |
| 13115 | return 0; |
| 13116 | } |
| 13117 | _ACEOF |
| 13118 | rm -f conftest.$ac_objext |
| 13119 | if { (ac_try="$ac_compile" |
| 13120 | case "(($ac_try" in |
| 13121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13122 | *) ac_try_echo=$ac_try;; |
| 13123 | esac |
| 13124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13125 | (eval "$ac_compile") 2>conftest.er1 |
| 13126 | ac_status=$? |
| 13127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13128 | rm -f conftest.er1 |
| 13129 | cat conftest.err >&5 |
| 13130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13131 | (exit $ac_status); } && { |
| 13132 | test -z "$ac_c_werror_flag" || |
| 13133 | test ! -s conftest.err |
| 13134 | } && test -s conftest.$ac_objext; then |
| 13135 | ac_lo=0 ac_mid=0 |
| 13136 | while :; do |
| 13137 | cat >conftest.$ac_ext <<_ACEOF |
| 13138 | /* confdefs.h. */ |
| 13139 | _ACEOF |
| 13140 | cat confdefs.h >>conftest.$ac_ext |
| 13141 | cat >>conftest.$ac_ext <<_ACEOF |
| 13142 | /* end confdefs.h. */ |
| 13143 | |
| 13144 | #ifdef HAVE_SYS_TYPES_H |
| 13145 | #include <sys/types.h> |
| 13146 | #endif |
| 13147 | |
| 13148 | |
| 13149 | typedef off_t ac__type_sizeof_; |
| 13150 | int |
| 13151 | main () |
| 13152 | { |
| 13153 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13154 | test_array [0] = 0 |
| 13155 | |
| 13156 | ; |
| 13157 | return 0; |
| 13158 | } |
| 13159 | _ACEOF |
| 13160 | rm -f conftest.$ac_objext |
| 13161 | if { (ac_try="$ac_compile" |
| 13162 | case "(($ac_try" in |
| 13163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13164 | *) ac_try_echo=$ac_try;; |
| 13165 | esac |
| 13166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13167 | (eval "$ac_compile") 2>conftest.er1 |
| 13168 | ac_status=$? |
| 13169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13170 | rm -f conftest.er1 |
| 13171 | cat conftest.err >&5 |
| 13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13173 | (exit $ac_status); } && { |
| 13174 | test -z "$ac_c_werror_flag" || |
| 13175 | test ! -s conftest.err |
| 13176 | } && test -s conftest.$ac_objext; then |
| 13177 | ac_hi=$ac_mid; break |
| 13178 | else |
| 13179 | echo "$as_me: failed program was:" >&5 |
| 13180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13181 | |
| 13182 | ac_lo=`expr $ac_mid + 1` |
| 13183 | if test $ac_lo -le $ac_mid; then |
| 13184 | ac_lo= ac_hi= |
| 13185 | break |
| 13186 | fi |
| 13187 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13188 | fi |
| 13189 | |
| 13190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13191 | done |
| 13192 | else |
| 13193 | echo "$as_me: failed program was:" >&5 |
| 13194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13195 | |
| 13196 | cat >conftest.$ac_ext <<_ACEOF |
| 13197 | /* confdefs.h. */ |
| 13198 | _ACEOF |
| 13199 | cat confdefs.h >>conftest.$ac_ext |
| 13200 | cat >>conftest.$ac_ext <<_ACEOF |
| 13201 | /* end confdefs.h. */ |
| 13202 | |
| 13203 | #ifdef HAVE_SYS_TYPES_H |
| 13204 | #include <sys/types.h> |
| 13205 | #endif |
| 13206 | |
| 13207 | |
| 13208 | typedef off_t ac__type_sizeof_; |
| 13209 | int |
| 13210 | main () |
| 13211 | { |
| 13212 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13213 | test_array [0] = 0 |
| 13214 | |
| 13215 | ; |
| 13216 | return 0; |
| 13217 | } |
| 13218 | _ACEOF |
| 13219 | rm -f conftest.$ac_objext |
| 13220 | if { (ac_try="$ac_compile" |
| 13221 | case "(($ac_try" in |
| 13222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13223 | *) ac_try_echo=$ac_try;; |
| 13224 | esac |
| 13225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13226 | (eval "$ac_compile") 2>conftest.er1 |
| 13227 | ac_status=$? |
| 13228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13229 | rm -f conftest.er1 |
| 13230 | cat conftest.err >&5 |
| 13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13232 | (exit $ac_status); } && { |
| 13233 | test -z "$ac_c_werror_flag" || |
| 13234 | test ! -s conftest.err |
| 13235 | } && test -s conftest.$ac_objext; then |
| 13236 | ac_hi=-1 ac_mid=-1 |
| 13237 | while :; do |
| 13238 | cat >conftest.$ac_ext <<_ACEOF |
| 13239 | /* confdefs.h. */ |
| 13240 | _ACEOF |
| 13241 | cat confdefs.h >>conftest.$ac_ext |
| 13242 | cat >>conftest.$ac_ext <<_ACEOF |
| 13243 | /* end confdefs.h. */ |
| 13244 | |
| 13245 | #ifdef HAVE_SYS_TYPES_H |
| 13246 | #include <sys/types.h> |
| 13247 | #endif |
| 13248 | |
| 13249 | |
| 13250 | typedef off_t ac__type_sizeof_; |
| 13251 | int |
| 13252 | main () |
| 13253 | { |
| 13254 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13255 | test_array [0] = 0 |
| 13256 | |
| 13257 | ; |
| 13258 | return 0; |
| 13259 | } |
| 13260 | _ACEOF |
| 13261 | rm -f conftest.$ac_objext |
| 13262 | if { (ac_try="$ac_compile" |
| 13263 | case "(($ac_try" in |
| 13264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13265 | *) ac_try_echo=$ac_try;; |
| 13266 | esac |
| 13267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13268 | (eval "$ac_compile") 2>conftest.er1 |
| 13269 | ac_status=$? |
| 13270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13271 | rm -f conftest.er1 |
| 13272 | cat conftest.err >&5 |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13274 | (exit $ac_status); } && { |
| 13275 | test -z "$ac_c_werror_flag" || |
| 13276 | test ! -s conftest.err |
| 13277 | } && test -s conftest.$ac_objext; then |
| 13278 | ac_lo=$ac_mid; break |
| 13279 | else |
| 13280 | echo "$as_me: failed program was:" >&5 |
| 13281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13282 | |
| 13283 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13284 | if test $ac_mid -le $ac_hi; then |
| 13285 | ac_lo= ac_hi= |
| 13286 | break |
| 13287 | fi |
| 13288 | ac_mid=`expr 2 '*' $ac_mid` |
| 13289 | fi |
| 13290 | |
| 13291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13292 | done |
| 13293 | else |
| 13294 | echo "$as_me: failed program was:" >&5 |
| 13295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13296 | |
| 13297 | ac_lo= ac_hi= |
| 13298 | fi |
| 13299 | |
| 13300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13301 | fi |
| 13302 | |
| 13303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13304 | # Binary search between lo and hi bounds. |
| 13305 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13306 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13307 | cat >conftest.$ac_ext <<_ACEOF |
| 13308 | /* confdefs.h. */ |
| 13309 | _ACEOF |
| 13310 | cat confdefs.h >>conftest.$ac_ext |
| 13311 | cat >>conftest.$ac_ext <<_ACEOF |
| 13312 | /* end confdefs.h. */ |
| 13313 | |
| 13314 | #ifdef HAVE_SYS_TYPES_H |
| 13315 | #include <sys/types.h> |
| 13316 | #endif |
| 13317 | |
| 13318 | |
| 13319 | typedef off_t ac__type_sizeof_; |
| 13320 | int |
| 13321 | main () |
| 13322 | { |
| 13323 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13324 | test_array [0] = 0 |
| 13325 | |
| 13326 | ; |
| 13327 | return 0; |
| 13328 | } |
| 13329 | _ACEOF |
| 13330 | rm -f conftest.$ac_objext |
| 13331 | if { (ac_try="$ac_compile" |
| 13332 | case "(($ac_try" in |
| 13333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13334 | *) ac_try_echo=$ac_try;; |
| 13335 | esac |
| 13336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13337 | (eval "$ac_compile") 2>conftest.er1 |
| 13338 | ac_status=$? |
| 13339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13340 | rm -f conftest.er1 |
| 13341 | cat conftest.err >&5 |
| 13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13343 | (exit $ac_status); } && { |
| 13344 | test -z "$ac_c_werror_flag" || |
| 13345 | test ! -s conftest.err |
| 13346 | } && test -s conftest.$ac_objext; then |
| 13347 | ac_hi=$ac_mid |
| 13348 | else |
| 13349 | echo "$as_me: failed program was:" >&5 |
| 13350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13351 | |
| 13352 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13353 | fi |
| 13354 | |
| 13355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13356 | done |
| 13357 | case $ac_lo in |
| 13358 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13359 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13360 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13361 | See \`config.log' for more details." >&5 |
| 13362 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13363 | See \`config.log' for more details." >&2;} |
| 13364 | { (exit 77); exit 77; }; } |
| 13365 | else |
| 13366 | ac_cv_sizeof_off_t=0 |
| 13367 | fi ;; |
| 13368 | esac |
| 13369 | else |
| 13370 | cat >conftest.$ac_ext <<_ACEOF |
| 13371 | /* confdefs.h. */ |
| 13372 | _ACEOF |
| 13373 | cat confdefs.h >>conftest.$ac_ext |
| 13374 | cat >>conftest.$ac_ext <<_ACEOF |
| 13375 | /* end confdefs.h. */ |
| 13376 | |
| 13377 | #ifdef HAVE_SYS_TYPES_H |
| 13378 | #include <sys/types.h> |
| 13379 | #endif |
| 13380 | |
| 13381 | |
| 13382 | typedef off_t ac__type_sizeof_; |
| 13383 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13384 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13385 | #include <stdio.h> |
| 13386 | #include <stdlib.h> |
| 13387 | int |
| 13388 | main () |
| 13389 | { |
| 13390 | |
| 13391 | FILE *f = fopen ("conftest.val", "w"); |
| 13392 | if (! f) |
| 13393 | return 1; |
| 13394 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13395 | { |
| 13396 | long int i = longval (); |
| 13397 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13398 | return 1; |
| 13399 | fprintf (f, "%ld\n", i); |
| 13400 | } |
| 13401 | else |
| 13402 | { |
| 13403 | unsigned long int i = ulongval (); |
| 13404 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13405 | return 1; |
| 13406 | fprintf (f, "%lu\n", i); |
| 13407 | } |
| 13408 | return ferror (f) || fclose (f) != 0; |
| 13409 | |
| 13410 | ; |
| 13411 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13412 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | _ACEOF |
| 13414 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13415 | if { (ac_try="$ac_link" |
| 13416 | case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13421 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13422 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13425 | { (case "(($ac_try" in |
| 13426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13427 | *) ac_try_echo=$ac_try;; |
| 13428 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13430 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13434 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13435 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13436 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13441 | if test "$ac_cv_type_off_t" = yes; then |
| 13442 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13443 | See \`config.log' for more details." >&5 |
| 13444 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13445 | See \`config.log' for more details." >&2;} |
| 13446 | { (exit 77); exit 77; }; } |
| 13447 | else |
| 13448 | ac_cv_sizeof_off_t=0 |
| 13449 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13450 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13451 | 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] | 13452 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13453 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13454 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13455 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13456 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13458 | |
| 13459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13461 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13463 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13464 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13465 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13466 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13467 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13468 | if test "$have_long_long" = yes |
| 13469 | then |
| 13470 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13471 | "$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] | 13472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | cat >>confdefs.h <<\_ACEOF |
| 13474 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13475 | _ACEOF |
| 13476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13478 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13480 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13481 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13482 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13483 | else |
| 13484 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13485 | echo "${ECHO_T}no" >&6; } |
| 13486 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13487 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13488 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13489 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13490 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13494 | /* confdefs.h. */ |
| 13495 | _ACEOF |
| 13496 | cat confdefs.h >>conftest.$ac_ext |
| 13497 | cat >>conftest.$ac_ext <<_ACEOF |
| 13498 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13499 | |
| 13500 | #ifdef HAVE_SYS_TYPES_H |
| 13501 | #include <sys/types.h> |
| 13502 | #endif |
| 13503 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13504 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13505 | #endif |
| 13506 | |
| 13507 | |
| 13508 | typedef time_t ac__type_new_; |
| 13509 | int |
| 13510 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13511 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13512 | if ((ac__type_new_ *) 0) |
| 13513 | return 0; |
| 13514 | if (sizeof (ac__type_new_)) |
| 13515 | return 0; |
| 13516 | ; |
| 13517 | return 0; |
| 13518 | } |
| 13519 | _ACEOF |
| 13520 | rm -f conftest.$ac_objext |
| 13521 | if { (ac_try="$ac_compile" |
| 13522 | case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13527 | (eval "$ac_compile") 2>conftest.er1 |
| 13528 | ac_status=$? |
| 13529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13530 | rm -f conftest.er1 |
| 13531 | cat conftest.err >&5 |
| 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); } && { |
| 13534 | test -z "$ac_c_werror_flag" || |
| 13535 | test ! -s conftest.err |
| 13536 | } && test -s conftest.$ac_objext; then |
| 13537 | ac_cv_type_time_t=yes |
| 13538 | else |
| 13539 | echo "$as_me: failed program was:" >&5 |
| 13540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13541 | |
| 13542 | ac_cv_type_time_t=no |
| 13543 | fi |
| 13544 | |
| 13545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13546 | fi |
| 13547 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13548 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13549 | |
| 13550 | # The cast to long int works around a bug in the HP C Compiler |
| 13551 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13552 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13553 | # This bug is HP SR number 8606223364. |
| 13554 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13555 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13556 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13558 | else |
| 13559 | if test "$cross_compiling" = yes; then |
| 13560 | # Depending upon the size, compute the lo and hi bounds. |
| 13561 | cat >conftest.$ac_ext <<_ACEOF |
| 13562 | /* confdefs.h. */ |
| 13563 | _ACEOF |
| 13564 | cat confdefs.h >>conftest.$ac_ext |
| 13565 | cat >>conftest.$ac_ext <<_ACEOF |
| 13566 | /* end confdefs.h. */ |
| 13567 | |
| 13568 | #ifdef HAVE_SYS_TYPES_H |
| 13569 | #include <sys/types.h> |
| 13570 | #endif |
| 13571 | #ifdef HAVE_TIME_H |
| 13572 | #include <time.h> |
| 13573 | #endif |
| 13574 | |
| 13575 | |
| 13576 | typedef time_t ac__type_sizeof_; |
| 13577 | int |
| 13578 | main () |
| 13579 | { |
| 13580 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13581 | test_array [0] = 0 |
| 13582 | |
| 13583 | ; |
| 13584 | return 0; |
| 13585 | } |
| 13586 | _ACEOF |
| 13587 | rm -f conftest.$ac_objext |
| 13588 | if { (ac_try="$ac_compile" |
| 13589 | case "(($ac_try" in |
| 13590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13591 | *) ac_try_echo=$ac_try;; |
| 13592 | esac |
| 13593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13594 | (eval "$ac_compile") 2>conftest.er1 |
| 13595 | ac_status=$? |
| 13596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13597 | rm -f conftest.er1 |
| 13598 | cat conftest.err >&5 |
| 13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13600 | (exit $ac_status); } && { |
| 13601 | test -z "$ac_c_werror_flag" || |
| 13602 | test ! -s conftest.err |
| 13603 | } && test -s conftest.$ac_objext; then |
| 13604 | ac_lo=0 ac_mid=0 |
| 13605 | while :; do |
| 13606 | cat >conftest.$ac_ext <<_ACEOF |
| 13607 | /* confdefs.h. */ |
| 13608 | _ACEOF |
| 13609 | cat confdefs.h >>conftest.$ac_ext |
| 13610 | cat >>conftest.$ac_ext <<_ACEOF |
| 13611 | /* end confdefs.h. */ |
| 13612 | |
| 13613 | #ifdef HAVE_SYS_TYPES_H |
| 13614 | #include <sys/types.h> |
| 13615 | #endif |
| 13616 | #ifdef HAVE_TIME_H |
| 13617 | #include <time.h> |
| 13618 | #endif |
| 13619 | |
| 13620 | |
| 13621 | typedef time_t ac__type_sizeof_; |
| 13622 | int |
| 13623 | main () |
| 13624 | { |
| 13625 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13626 | test_array [0] = 0 |
| 13627 | |
| 13628 | ; |
| 13629 | return 0; |
| 13630 | } |
| 13631 | _ACEOF |
| 13632 | rm -f conftest.$ac_objext |
| 13633 | if { (ac_try="$ac_compile" |
| 13634 | case "(($ac_try" in |
| 13635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13636 | *) ac_try_echo=$ac_try;; |
| 13637 | esac |
| 13638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13639 | (eval "$ac_compile") 2>conftest.er1 |
| 13640 | ac_status=$? |
| 13641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13642 | rm -f conftest.er1 |
| 13643 | cat conftest.err >&5 |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); } && { |
| 13646 | test -z "$ac_c_werror_flag" || |
| 13647 | test ! -s conftest.err |
| 13648 | } && test -s conftest.$ac_objext; then |
| 13649 | ac_hi=$ac_mid; break |
| 13650 | else |
| 13651 | echo "$as_me: failed program was:" >&5 |
| 13652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13653 | |
| 13654 | ac_lo=`expr $ac_mid + 1` |
| 13655 | if test $ac_lo -le $ac_mid; then |
| 13656 | ac_lo= ac_hi= |
| 13657 | break |
| 13658 | fi |
| 13659 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13660 | fi |
| 13661 | |
| 13662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13663 | done |
| 13664 | else |
| 13665 | echo "$as_me: failed program was:" >&5 |
| 13666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13667 | |
| 13668 | cat >conftest.$ac_ext <<_ACEOF |
| 13669 | /* confdefs.h. */ |
| 13670 | _ACEOF |
| 13671 | cat confdefs.h >>conftest.$ac_ext |
| 13672 | cat >>conftest.$ac_ext <<_ACEOF |
| 13673 | /* end confdefs.h. */ |
| 13674 | |
| 13675 | #ifdef HAVE_SYS_TYPES_H |
| 13676 | #include <sys/types.h> |
| 13677 | #endif |
| 13678 | #ifdef HAVE_TIME_H |
| 13679 | #include <time.h> |
| 13680 | #endif |
| 13681 | |
| 13682 | |
| 13683 | typedef time_t ac__type_sizeof_; |
| 13684 | int |
| 13685 | main () |
| 13686 | { |
| 13687 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13688 | test_array [0] = 0 |
| 13689 | |
| 13690 | ; |
| 13691 | return 0; |
| 13692 | } |
| 13693 | _ACEOF |
| 13694 | rm -f conftest.$ac_objext |
| 13695 | if { (ac_try="$ac_compile" |
| 13696 | case "(($ac_try" in |
| 13697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13698 | *) ac_try_echo=$ac_try;; |
| 13699 | esac |
| 13700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13701 | (eval "$ac_compile") 2>conftest.er1 |
| 13702 | ac_status=$? |
| 13703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13704 | rm -f conftest.er1 |
| 13705 | cat conftest.err >&5 |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } && { |
| 13708 | test -z "$ac_c_werror_flag" || |
| 13709 | test ! -s conftest.err |
| 13710 | } && test -s conftest.$ac_objext; then |
| 13711 | ac_hi=-1 ac_mid=-1 |
| 13712 | while :; do |
| 13713 | cat >conftest.$ac_ext <<_ACEOF |
| 13714 | /* confdefs.h. */ |
| 13715 | _ACEOF |
| 13716 | cat confdefs.h >>conftest.$ac_ext |
| 13717 | cat >>conftest.$ac_ext <<_ACEOF |
| 13718 | /* end confdefs.h. */ |
| 13719 | |
| 13720 | #ifdef HAVE_SYS_TYPES_H |
| 13721 | #include <sys/types.h> |
| 13722 | #endif |
| 13723 | #ifdef HAVE_TIME_H |
| 13724 | #include <time.h> |
| 13725 | #endif |
| 13726 | |
| 13727 | |
| 13728 | typedef time_t ac__type_sizeof_; |
| 13729 | int |
| 13730 | main () |
| 13731 | { |
| 13732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13733 | test_array [0] = 0 |
| 13734 | |
| 13735 | ; |
| 13736 | return 0; |
| 13737 | } |
| 13738 | _ACEOF |
| 13739 | rm -f conftest.$ac_objext |
| 13740 | if { (ac_try="$ac_compile" |
| 13741 | case "(($ac_try" in |
| 13742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13743 | *) ac_try_echo=$ac_try;; |
| 13744 | esac |
| 13745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13746 | (eval "$ac_compile") 2>conftest.er1 |
| 13747 | ac_status=$? |
| 13748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13749 | rm -f conftest.er1 |
| 13750 | cat conftest.err >&5 |
| 13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13752 | (exit $ac_status); } && { |
| 13753 | test -z "$ac_c_werror_flag" || |
| 13754 | test ! -s conftest.err |
| 13755 | } && test -s conftest.$ac_objext; then |
| 13756 | ac_lo=$ac_mid; break |
| 13757 | else |
| 13758 | echo "$as_me: failed program was:" >&5 |
| 13759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13760 | |
| 13761 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13762 | if test $ac_mid -le $ac_hi; then |
| 13763 | ac_lo= ac_hi= |
| 13764 | break |
| 13765 | fi |
| 13766 | ac_mid=`expr 2 '*' $ac_mid` |
| 13767 | fi |
| 13768 | |
| 13769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13770 | done |
| 13771 | else |
| 13772 | echo "$as_me: failed program was:" >&5 |
| 13773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13774 | |
| 13775 | ac_lo= ac_hi= |
| 13776 | fi |
| 13777 | |
| 13778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13779 | fi |
| 13780 | |
| 13781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13782 | # Binary search between lo and hi bounds. |
| 13783 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13784 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13785 | cat >conftest.$ac_ext <<_ACEOF |
| 13786 | /* confdefs.h. */ |
| 13787 | _ACEOF |
| 13788 | cat confdefs.h >>conftest.$ac_ext |
| 13789 | cat >>conftest.$ac_ext <<_ACEOF |
| 13790 | /* end confdefs.h. */ |
| 13791 | |
| 13792 | #ifdef HAVE_SYS_TYPES_H |
| 13793 | #include <sys/types.h> |
| 13794 | #endif |
| 13795 | #ifdef HAVE_TIME_H |
| 13796 | #include <time.h> |
| 13797 | #endif |
| 13798 | |
| 13799 | |
| 13800 | typedef time_t ac__type_sizeof_; |
| 13801 | int |
| 13802 | main () |
| 13803 | { |
| 13804 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13805 | test_array [0] = 0 |
| 13806 | |
| 13807 | ; |
| 13808 | return 0; |
| 13809 | } |
| 13810 | _ACEOF |
| 13811 | rm -f conftest.$ac_objext |
| 13812 | if { (ac_try="$ac_compile" |
| 13813 | case "(($ac_try" in |
| 13814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13815 | *) ac_try_echo=$ac_try;; |
| 13816 | esac |
| 13817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13818 | (eval "$ac_compile") 2>conftest.er1 |
| 13819 | ac_status=$? |
| 13820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13821 | rm -f conftest.er1 |
| 13822 | cat conftest.err >&5 |
| 13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13824 | (exit $ac_status); } && { |
| 13825 | test -z "$ac_c_werror_flag" || |
| 13826 | test ! -s conftest.err |
| 13827 | } && test -s conftest.$ac_objext; then |
| 13828 | ac_hi=$ac_mid |
| 13829 | else |
| 13830 | echo "$as_me: failed program was:" >&5 |
| 13831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13832 | |
| 13833 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13834 | fi |
| 13835 | |
| 13836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13837 | done |
| 13838 | case $ac_lo in |
| 13839 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13840 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13841 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13842 | See \`config.log' for more details." >&5 |
| 13843 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13844 | See \`config.log' for more details." >&2;} |
| 13845 | { (exit 77); exit 77; }; } |
| 13846 | else |
| 13847 | ac_cv_sizeof_time_t=0 |
| 13848 | fi ;; |
| 13849 | esac |
| 13850 | else |
| 13851 | cat >conftest.$ac_ext <<_ACEOF |
| 13852 | /* confdefs.h. */ |
| 13853 | _ACEOF |
| 13854 | cat confdefs.h >>conftest.$ac_ext |
| 13855 | cat >>conftest.$ac_ext <<_ACEOF |
| 13856 | /* end confdefs.h. */ |
| 13857 | |
| 13858 | #ifdef HAVE_SYS_TYPES_H |
| 13859 | #include <sys/types.h> |
| 13860 | #endif |
| 13861 | #ifdef HAVE_TIME_H |
| 13862 | #include <time.h> |
| 13863 | #endif |
| 13864 | |
| 13865 | |
| 13866 | typedef time_t ac__type_sizeof_; |
| 13867 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13868 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13869 | #include <stdio.h> |
| 13870 | #include <stdlib.h> |
| 13871 | int |
| 13872 | main () |
| 13873 | { |
| 13874 | |
| 13875 | FILE *f = fopen ("conftest.val", "w"); |
| 13876 | if (! f) |
| 13877 | return 1; |
| 13878 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13879 | { |
| 13880 | long int i = longval (); |
| 13881 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13882 | return 1; |
| 13883 | fprintf (f, "%ld\n", i); |
| 13884 | } |
| 13885 | else |
| 13886 | { |
| 13887 | unsigned long int i = ulongval (); |
| 13888 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13889 | return 1; |
| 13890 | fprintf (f, "%lu\n", i); |
| 13891 | } |
| 13892 | return ferror (f) || fclose (f) != 0; |
| 13893 | |
| 13894 | ; |
| 13895 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13896 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13897 | _ACEOF |
| 13898 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13899 | if { (ac_try="$ac_link" |
| 13900 | case "(($ac_try" in |
| 13901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13902 | *) ac_try_echo=$ac_try;; |
| 13903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13905 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13909 | { (case "(($ac_try" in |
| 13910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13911 | *) ac_try_echo=$ac_try;; |
| 13912 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13914 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13918 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13919 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13920 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13925 | if test "$ac_cv_type_time_t" = yes; then |
| 13926 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13927 | See \`config.log' for more details." >&5 |
| 13928 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13929 | See \`config.log' for more details." >&2;} |
| 13930 | { (exit 77); exit 77; }; } |
| 13931 | else |
| 13932 | ac_cv_sizeof_time_t=0 |
| 13933 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13934 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13935 | 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] | 13936 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13937 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13938 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13939 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13940 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13941 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13942 | |
| 13943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13945 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13946 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13948 | |
| 13949 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13950 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13951 | ac_save_cc="$CC" |
| 13952 | if test "$ac_cv_kpthread" = "yes" |
| 13953 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13954 | elif test "$ac_cv_kthread" = "yes" |
| 13955 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13956 | elif test "$ac_cv_pthread" = "yes" |
| 13957 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13958 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13959 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13960 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13961 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13963 | /* confdefs.h. */ |
| 13964 | _ACEOF |
| 13965 | cat confdefs.h >>conftest.$ac_ext |
| 13966 | cat >>conftest.$ac_ext <<_ACEOF |
| 13967 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13968 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | int |
| 13970 | main () |
| 13971 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13972 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | ; |
| 13974 | return 0; |
| 13975 | } |
| 13976 | _ACEOF |
| 13977 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13978 | if { (ac_try="$ac_compile" |
| 13979 | case "(($ac_try" in |
| 13980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13981 | *) ac_try_echo=$ac_try;; |
| 13982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13984 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13987 | rm -f conftest.er1 |
| 13988 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13990 | (exit $ac_status); } && { |
| 13991 | test -z "$ac_c_werror_flag" || |
| 13992 | test ! -s conftest.err |
| 13993 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13994 | have_pthread_t=yes |
| 13995 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13998 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13999 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14001 | |
| 14002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14003 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14004 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14005 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14006 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14007 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14008 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14012 | /* confdefs.h. */ |
| 14013 | _ACEOF |
| 14014 | cat confdefs.h >>conftest.$ac_ext |
| 14015 | cat >>conftest.$ac_ext <<_ACEOF |
| 14016 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14017 | |
| 14018 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14019 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14020 | #endif |
| 14021 | |
| 14022 | |
| 14023 | typedef pthread_t ac__type_new_; |
| 14024 | int |
| 14025 | main () |
| 14026 | { |
| 14027 | if ((ac__type_new_ *) 0) |
| 14028 | return 0; |
| 14029 | if (sizeof (ac__type_new_)) |
| 14030 | return 0; |
| 14031 | ; |
| 14032 | return 0; |
| 14033 | } |
| 14034 | _ACEOF |
| 14035 | rm -f conftest.$ac_objext |
| 14036 | if { (ac_try="$ac_compile" |
| 14037 | case "(($ac_try" in |
| 14038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14039 | *) ac_try_echo=$ac_try;; |
| 14040 | esac |
| 14041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14042 | (eval "$ac_compile") 2>conftest.er1 |
| 14043 | ac_status=$? |
| 14044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14045 | rm -f conftest.er1 |
| 14046 | cat conftest.err >&5 |
| 14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14048 | (exit $ac_status); } && { |
| 14049 | test -z "$ac_c_werror_flag" || |
| 14050 | test ! -s conftest.err |
| 14051 | } && test -s conftest.$ac_objext; then |
| 14052 | ac_cv_type_pthread_t=yes |
| 14053 | else |
| 14054 | echo "$as_me: failed program was:" >&5 |
| 14055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14056 | |
| 14057 | ac_cv_type_pthread_t=no |
| 14058 | fi |
| 14059 | |
| 14060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14061 | fi |
| 14062 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14063 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14064 | |
| 14065 | # The cast to long int works around a bug in the HP C Compiler |
| 14066 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14067 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14068 | # This bug is HP SR number 8606223364. |
| 14069 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14070 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14071 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14073 | else |
| 14074 | if test "$cross_compiling" = yes; then |
| 14075 | # Depending upon the size, compute the lo and hi bounds. |
| 14076 | cat >conftest.$ac_ext <<_ACEOF |
| 14077 | /* confdefs.h. */ |
| 14078 | _ACEOF |
| 14079 | cat confdefs.h >>conftest.$ac_ext |
| 14080 | cat >>conftest.$ac_ext <<_ACEOF |
| 14081 | /* end confdefs.h. */ |
| 14082 | |
| 14083 | #ifdef HAVE_PTHREAD_H |
| 14084 | #include <pthread.h> |
| 14085 | #endif |
| 14086 | |
| 14087 | |
| 14088 | typedef pthread_t ac__type_sizeof_; |
| 14089 | int |
| 14090 | main () |
| 14091 | { |
| 14092 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14093 | test_array [0] = 0 |
| 14094 | |
| 14095 | ; |
| 14096 | return 0; |
| 14097 | } |
| 14098 | _ACEOF |
| 14099 | rm -f conftest.$ac_objext |
| 14100 | if { (ac_try="$ac_compile" |
| 14101 | case "(($ac_try" in |
| 14102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14103 | *) ac_try_echo=$ac_try;; |
| 14104 | esac |
| 14105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14106 | (eval "$ac_compile") 2>conftest.er1 |
| 14107 | ac_status=$? |
| 14108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14109 | rm -f conftest.er1 |
| 14110 | cat conftest.err >&5 |
| 14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14112 | (exit $ac_status); } && { |
| 14113 | test -z "$ac_c_werror_flag" || |
| 14114 | test ! -s conftest.err |
| 14115 | } && test -s conftest.$ac_objext; then |
| 14116 | ac_lo=0 ac_mid=0 |
| 14117 | while :; do |
| 14118 | cat >conftest.$ac_ext <<_ACEOF |
| 14119 | /* confdefs.h. */ |
| 14120 | _ACEOF |
| 14121 | cat confdefs.h >>conftest.$ac_ext |
| 14122 | cat >>conftest.$ac_ext <<_ACEOF |
| 14123 | /* end confdefs.h. */ |
| 14124 | |
| 14125 | #ifdef HAVE_PTHREAD_H |
| 14126 | #include <pthread.h> |
| 14127 | #endif |
| 14128 | |
| 14129 | |
| 14130 | typedef pthread_t ac__type_sizeof_; |
| 14131 | int |
| 14132 | main () |
| 14133 | { |
| 14134 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14135 | test_array [0] = 0 |
| 14136 | |
| 14137 | ; |
| 14138 | return 0; |
| 14139 | } |
| 14140 | _ACEOF |
| 14141 | rm -f conftest.$ac_objext |
| 14142 | if { (ac_try="$ac_compile" |
| 14143 | case "(($ac_try" in |
| 14144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14145 | *) ac_try_echo=$ac_try;; |
| 14146 | esac |
| 14147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14148 | (eval "$ac_compile") 2>conftest.er1 |
| 14149 | ac_status=$? |
| 14150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14151 | rm -f conftest.er1 |
| 14152 | cat conftest.err >&5 |
| 14153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14154 | (exit $ac_status); } && { |
| 14155 | test -z "$ac_c_werror_flag" || |
| 14156 | test ! -s conftest.err |
| 14157 | } && test -s conftest.$ac_objext; then |
| 14158 | ac_hi=$ac_mid; break |
| 14159 | else |
| 14160 | echo "$as_me: failed program was:" >&5 |
| 14161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14162 | |
| 14163 | ac_lo=`expr $ac_mid + 1` |
| 14164 | if test $ac_lo -le $ac_mid; then |
| 14165 | ac_lo= ac_hi= |
| 14166 | break |
| 14167 | fi |
| 14168 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14169 | fi |
| 14170 | |
| 14171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14172 | done |
| 14173 | else |
| 14174 | echo "$as_me: failed program was:" >&5 |
| 14175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14176 | |
| 14177 | cat >conftest.$ac_ext <<_ACEOF |
| 14178 | /* confdefs.h. */ |
| 14179 | _ACEOF |
| 14180 | cat confdefs.h >>conftest.$ac_ext |
| 14181 | cat >>conftest.$ac_ext <<_ACEOF |
| 14182 | /* end confdefs.h. */ |
| 14183 | |
| 14184 | #ifdef HAVE_PTHREAD_H |
| 14185 | #include <pthread.h> |
| 14186 | #endif |
| 14187 | |
| 14188 | |
| 14189 | typedef pthread_t ac__type_sizeof_; |
| 14190 | int |
| 14191 | main () |
| 14192 | { |
| 14193 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14194 | test_array [0] = 0 |
| 14195 | |
| 14196 | ; |
| 14197 | return 0; |
| 14198 | } |
| 14199 | _ACEOF |
| 14200 | rm -f conftest.$ac_objext |
| 14201 | if { (ac_try="$ac_compile" |
| 14202 | case "(($ac_try" in |
| 14203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14204 | *) ac_try_echo=$ac_try;; |
| 14205 | esac |
| 14206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14207 | (eval "$ac_compile") 2>conftest.er1 |
| 14208 | ac_status=$? |
| 14209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14210 | rm -f conftest.er1 |
| 14211 | cat conftest.err >&5 |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14213 | (exit $ac_status); } && { |
| 14214 | test -z "$ac_c_werror_flag" || |
| 14215 | test ! -s conftest.err |
| 14216 | } && test -s conftest.$ac_objext; then |
| 14217 | ac_hi=-1 ac_mid=-1 |
| 14218 | while :; do |
| 14219 | cat >conftest.$ac_ext <<_ACEOF |
| 14220 | /* confdefs.h. */ |
| 14221 | _ACEOF |
| 14222 | cat confdefs.h >>conftest.$ac_ext |
| 14223 | cat >>conftest.$ac_ext <<_ACEOF |
| 14224 | /* end confdefs.h. */ |
| 14225 | |
| 14226 | #ifdef HAVE_PTHREAD_H |
| 14227 | #include <pthread.h> |
| 14228 | #endif |
| 14229 | |
| 14230 | |
| 14231 | typedef pthread_t ac__type_sizeof_; |
| 14232 | int |
| 14233 | main () |
| 14234 | { |
| 14235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14236 | test_array [0] = 0 |
| 14237 | |
| 14238 | ; |
| 14239 | return 0; |
| 14240 | } |
| 14241 | _ACEOF |
| 14242 | rm -f conftest.$ac_objext |
| 14243 | if { (ac_try="$ac_compile" |
| 14244 | case "(($ac_try" in |
| 14245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14246 | *) ac_try_echo=$ac_try;; |
| 14247 | esac |
| 14248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14249 | (eval "$ac_compile") 2>conftest.er1 |
| 14250 | ac_status=$? |
| 14251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14252 | rm -f conftest.er1 |
| 14253 | cat conftest.err >&5 |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); } && { |
| 14256 | test -z "$ac_c_werror_flag" || |
| 14257 | test ! -s conftest.err |
| 14258 | } && test -s conftest.$ac_objext; then |
| 14259 | ac_lo=$ac_mid; break |
| 14260 | else |
| 14261 | echo "$as_me: failed program was:" >&5 |
| 14262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14263 | |
| 14264 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14265 | if test $ac_mid -le $ac_hi; then |
| 14266 | ac_lo= ac_hi= |
| 14267 | break |
| 14268 | fi |
| 14269 | ac_mid=`expr 2 '*' $ac_mid` |
| 14270 | fi |
| 14271 | |
| 14272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14273 | done |
| 14274 | else |
| 14275 | echo "$as_me: failed program was:" >&5 |
| 14276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14277 | |
| 14278 | ac_lo= ac_hi= |
| 14279 | fi |
| 14280 | |
| 14281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14282 | fi |
| 14283 | |
| 14284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14285 | # Binary search between lo and hi bounds. |
| 14286 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14287 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14288 | cat >conftest.$ac_ext <<_ACEOF |
| 14289 | /* confdefs.h. */ |
| 14290 | _ACEOF |
| 14291 | cat confdefs.h >>conftest.$ac_ext |
| 14292 | cat >>conftest.$ac_ext <<_ACEOF |
| 14293 | /* end confdefs.h. */ |
| 14294 | |
| 14295 | #ifdef HAVE_PTHREAD_H |
| 14296 | #include <pthread.h> |
| 14297 | #endif |
| 14298 | |
| 14299 | |
| 14300 | typedef pthread_t ac__type_sizeof_; |
| 14301 | int |
| 14302 | main () |
| 14303 | { |
| 14304 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14305 | test_array [0] = 0 |
| 14306 | |
| 14307 | ; |
| 14308 | return 0; |
| 14309 | } |
| 14310 | _ACEOF |
| 14311 | rm -f conftest.$ac_objext |
| 14312 | if { (ac_try="$ac_compile" |
| 14313 | case "(($ac_try" in |
| 14314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14315 | *) ac_try_echo=$ac_try;; |
| 14316 | esac |
| 14317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14318 | (eval "$ac_compile") 2>conftest.er1 |
| 14319 | ac_status=$? |
| 14320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14321 | rm -f conftest.er1 |
| 14322 | cat conftest.err >&5 |
| 14323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14324 | (exit $ac_status); } && { |
| 14325 | test -z "$ac_c_werror_flag" || |
| 14326 | test ! -s conftest.err |
| 14327 | } && test -s conftest.$ac_objext; then |
| 14328 | ac_hi=$ac_mid |
| 14329 | else |
| 14330 | echo "$as_me: failed program was:" >&5 |
| 14331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14332 | |
| 14333 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14334 | fi |
| 14335 | |
| 14336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14337 | done |
| 14338 | case $ac_lo in |
| 14339 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14340 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14342 | See \`config.log' for more details." >&5 |
| 14343 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14344 | See \`config.log' for more details." >&2;} |
| 14345 | { (exit 77); exit 77; }; } |
| 14346 | else |
| 14347 | ac_cv_sizeof_pthread_t=0 |
| 14348 | fi ;; |
| 14349 | esac |
| 14350 | else |
| 14351 | cat >conftest.$ac_ext <<_ACEOF |
| 14352 | /* confdefs.h. */ |
| 14353 | _ACEOF |
| 14354 | cat confdefs.h >>conftest.$ac_ext |
| 14355 | cat >>conftest.$ac_ext <<_ACEOF |
| 14356 | /* end confdefs.h. */ |
| 14357 | |
| 14358 | #ifdef HAVE_PTHREAD_H |
| 14359 | #include <pthread.h> |
| 14360 | #endif |
| 14361 | |
| 14362 | |
| 14363 | typedef pthread_t ac__type_sizeof_; |
| 14364 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14365 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14366 | #include <stdio.h> |
| 14367 | #include <stdlib.h> |
| 14368 | int |
| 14369 | main () |
| 14370 | { |
| 14371 | |
| 14372 | FILE *f = fopen ("conftest.val", "w"); |
| 14373 | if (! f) |
| 14374 | return 1; |
| 14375 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14376 | { |
| 14377 | long int i = longval (); |
| 14378 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14379 | return 1; |
| 14380 | fprintf (f, "%ld\n", i); |
| 14381 | } |
| 14382 | else |
| 14383 | { |
| 14384 | unsigned long int i = ulongval (); |
| 14385 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14386 | return 1; |
| 14387 | fprintf (f, "%lu\n", i); |
| 14388 | } |
| 14389 | return ferror (f) || fclose (f) != 0; |
| 14390 | |
| 14391 | ; |
| 14392 | return 0; |
| 14393 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14394 | _ACEOF |
| 14395 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14396 | if { (ac_try="$ac_link" |
| 14397 | case "(($ac_try" in |
| 14398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14399 | *) ac_try_echo=$ac_try;; |
| 14400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14402 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14406 | { (case "(($ac_try" in |
| 14407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14408 | *) ac_try_echo=$ac_try;; |
| 14409 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14411 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14414 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14415 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14416 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14417 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14418 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14422 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14423 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14424 | See \`config.log' for more details." >&5 |
| 14425 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14426 | See \`config.log' for more details." >&2;} |
| 14427 | { (exit 77); exit 77; }; } |
| 14428 | else |
| 14429 | ac_cv_sizeof_pthread_t=0 |
| 14430 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14432 | 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] | 14433 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14434 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14435 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14436 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14437 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14438 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14439 | |
| 14440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14442 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14444 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14445 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14446 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14447 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14448 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14449 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14450 | 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] | 14451 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14452 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14453 | enableval=$enable_toolbox_glue; |
| 14454 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14455 | |
| 14456 | |
| 14457 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14459 | case $ac_sys_system/$ac_sys_release in |
| 14460 | Darwin/*) |
| 14461 | enable_toolbox_glue="yes";; |
| 14462 | *) |
| 14463 | enable_toolbox_glue="no";; |
| 14464 | esac |
| 14465 | fi |
| 14466 | case "$enable_toolbox_glue" in |
| 14467 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14468 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14469 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | |
| 14471 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14472 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14474 | |
| 14475 | ;; |
| 14476 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14477 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14478 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14479 | ;; |
| 14480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14481 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14482 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14483 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14484 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14485 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14486 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14487 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14488 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14489 | ;; |
| 14490 | Darwin/*) |
| 14491 | OTHER_LIBTOOL_OPT="" |
| 14492 | ;; |
| 14493 | esac |
| 14494 | |
| 14495 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14496 | ARCH_RUN_32BIT="" |
| 14497 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14498 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14499 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14500 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14501 | if test "${enable_universalsdk}"; then |
| 14502 | : |
| 14503 | else |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14504 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14505 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14506 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14507 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14508 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14509 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14510 | if test ${gcc_version} '<' 4.0 |
| 14511 | then |
| 14512 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14513 | else |
| 14514 | LIBTOOL_CRUFT="" |
| 14515 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14516 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14517 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14518 | else |
| 14519 | cat >conftest.$ac_ext <<_ACEOF |
| 14520 | /* confdefs.h. */ |
| 14521 | _ACEOF |
| 14522 | cat confdefs.h >>conftest.$ac_ext |
| 14523 | cat >>conftest.$ac_ext <<_ACEOF |
| 14524 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14525 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14526 | #include <unistd.h> |
| 14527 | int main(int argc, char*argv[]) |
| 14528 | { |
| 14529 | if (sizeof(long) == 4) { |
| 14530 | return 0; |
| 14531 | } else { |
| 14532 | return 1; |
| 14533 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14534 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14535 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14536 | _ACEOF |
| 14537 | rm -f conftest$ac_exeext |
| 14538 | if { (ac_try="$ac_link" |
| 14539 | case "(($ac_try" in |
| 14540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14541 | *) ac_try_echo=$ac_try;; |
| 14542 | esac |
| 14543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14544 | (eval "$ac_link") 2>&5 |
| 14545 | ac_status=$? |
| 14546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14548 | { (case "(($ac_try" in |
| 14549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14550 | *) ac_try_echo=$ac_try;; |
| 14551 | esac |
| 14552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14553 | (eval "$ac_try") 2>&5 |
| 14554 | ac_status=$? |
| 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14556 | (exit $ac_status); }; }; then |
| 14557 | ac_osx_32bit=yes |
| 14558 | else |
| 14559 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14560 | echo "$as_me: failed program was:" >&5 |
| 14561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14562 | |
| 14563 | ( exit $ac_status ) |
| 14564 | ac_osx_32bit=no |
| 14565 | fi |
| 14566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14567 | fi |
| 14568 | |
| 14569 | |
| 14570 | |
| 14571 | if test "${ac_osx_32bit}" = "yes"; then |
| 14572 | case `arch` in |
| 14573 | i386) |
| 14574 | MACOSX_DEFAULT_ARCH="i386" |
| 14575 | ;; |
| 14576 | ppc) |
| 14577 | MACOSX_DEFAULT_ARCH="ppc" |
| 14578 | ;; |
| 14579 | *) |
| 14580 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14581 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14582 | { (exit 1); exit 1; }; } |
| 14583 | ;; |
| 14584 | esac |
| 14585 | else |
| 14586 | case `arch` in |
| 14587 | i386) |
| 14588 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14589 | ;; |
| 14590 | ppc) |
| 14591 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14592 | ;; |
| 14593 | *) |
| 14594 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14595 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14596 | { (exit 1); exit 1; }; } |
| 14597 | ;; |
| 14598 | esac |
| 14599 | |
| 14600 | #ARCH_RUN_32BIT="true" |
| 14601 | fi |
| 14602 | |
| 14603 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14604 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14605 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14606 | esac |
| 14607 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14608 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14609 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14610 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14611 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14612 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14613 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14614 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | cat >>confdefs.h <<\_ACEOF |
| 14617 | #define WITH_NEXT_FRAMEWORK 1 |
| 14618 | _ACEOF |
| 14619 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14620 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14621 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14622 | if test $enable_shared = "yes" |
| 14623 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14624 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14625 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14626 | { (exit 1); exit 1; }; } |
| 14627 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14630 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14631 | fi |
| 14632 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14633 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14634 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14635 | case $ac_sys_system/$ac_sys_release in |
| 14636 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | cat >>confdefs.h <<\_ACEOF |
| 14639 | #define WITH_DYLD 1 |
| 14640 | _ACEOF |
| 14641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14642 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14643 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14644 | ;; |
| 14645 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14646 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14647 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14648 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14649 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14650 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14651 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14652 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14653 | |
| 14654 | |
| 14655 | |
| 14656 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14657 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14658 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14659 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14660 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14661 | if test -z "$SO" |
| 14662 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14663 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14664 | hp*|HP*) |
| 14665 | case `uname -m` in |
| 14666 | ia64) SO=.so;; |
| 14667 | *) SO=.sl;; |
| 14668 | esac |
| 14669 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14670 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14671 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14672 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14673 | else |
| 14674 | # this might also be a termcap variable, see #610332 |
| 14675 | echo |
| 14676 | echo '=====================================================================' |
| 14677 | echo '+ +' |
| 14678 | echo '+ WARNING: You have set SO in your environment. +' |
| 14679 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14680 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14681 | echo '+ +' |
| 14682 | echo '=====================================================================' |
| 14683 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14684 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14685 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14686 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14687 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14688 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14689 | cat >>confdefs.h <<_ACEOF |
| 14690 | #define SHLIB_EXT "$SO" |
| 14691 | _ACEOF |
| 14692 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14693 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14694 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14695 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14696 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14697 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14698 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14699 | if test -z "$LDSHARED" |
| 14700 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14701 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14702 | AIX*) |
| 14703 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14704 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14705 | ;; |
| 14706 | BeOS*) |
| 14707 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14708 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14709 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14710 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14711 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14712 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14713 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14714 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14715 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14716 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14717 | hp*|HP*) |
| 14718 | if test "$GCC" = "yes" |
| 14719 | then LDSHARED='$(CC) -shared' |
| 14720 | else LDSHARED='ld -b'; |
| 14721 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14722 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14723 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14724 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14725 | if test "$enable_framework" ; then |
| 14726 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14727 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14728 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14729 | else |
| 14730 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14731 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14732 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14733 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14734 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14735 | if test "$enable_framework" ; then |
| 14736 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14737 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14738 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14739 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14740 | # No framework, use the Python app as bundle-loader |
| 14741 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14742 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14743 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14744 | Darwin/*) |
| 14745 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14746 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14747 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14748 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14749 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14750 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14751 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14752 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14753 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14754 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14755 | else |
| 14756 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14757 | if test "$enable_framework" ; then |
| 14758 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14759 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14760 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14761 | else |
| 14762 | # No framework, use the Python app as bundle-loader |
| 14763 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14764 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14765 | fi |
| 14766 | fi |
| 14767 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14768 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14769 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14770 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14771 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14772 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14773 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14774 | else |
| 14775 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14776 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14777 | OpenBSD*) |
| 14778 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14779 | then |
| 14780 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14781 | else |
| 14782 | case `uname -r` in |
| 14783 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14784 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14785 | ;; |
| 14786 | *) |
| 14787 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14788 | ;; |
| 14789 | esac |
| 14790 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14791 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14792 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14793 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14794 | then LDSHARED='$(CC) -shared' |
| 14795 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14796 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14797 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14798 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14799 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14800 | *) LDSHARED="ld";; |
| 14801 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14802 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14803 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14804 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14805 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14806 | # 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] | 14807 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14808 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14809 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14810 | if test -z "$CCSHARED" |
| 14811 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14812 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14813 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14814 | then CCSHARED="-fPIC"; |
| 14815 | elif test `uname -p` = sparc; |
| 14816 | then CCSHARED="-xcode=pic32"; |
| 14817 | else CCSHARED="-Kpic"; |
| 14818 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14819 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14820 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14821 | else CCSHARED="+z"; |
| 14822 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14823 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14824 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14825 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14826 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14827 | if test "$GCC" = "yes" |
| 14828 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14829 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14830 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14831 | SCO_SV*) |
| 14832 | if test "$GCC" = "yes" |
| 14833 | then CCSHARED="-fPIC" |
| 14834 | else CCSHARED="-Kpic -belf" |
| 14835 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14836 | IRIX*/6*) case $CC in |
| 14837 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14838 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14839 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14840 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14841 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14843 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14844 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14845 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14846 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14847 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14848 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14849 | if test -z "$LINKFORSHARED" |
| 14850 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14851 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14852 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14853 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14854 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14855 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14856 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14857 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14858 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14860 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14861 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14862 | # not used by the core itself but which needs to be in the core so |
| 14863 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14864 | # -prebind is no longer used, because it actually seems to give a |
| 14865 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14866 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14867 | |
| 14868 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14869 | if test "$enable_framework" |
| 14870 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14871 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14872 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14873 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14874 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14875 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14876 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14877 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14878 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14879 | then |
| 14880 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14881 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14882 | SunOS/5*) case $CC in |
| 14883 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14884 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14885 | then |
| 14886 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14887 | fi;; |
| 14888 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14889 | CYGWIN*) |
| 14890 | if test $enable_shared = "no" |
| 14891 | then |
| 14892 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14893 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14894 | QNX*) |
| 14895 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14896 | # symbol table so that they can be found when a module |
| 14897 | # is loaded. -N 2048K causes the stack size to be set |
| 14898 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14899 | # when running test_compile.py. |
| 14900 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14901 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14902 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14903 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14904 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14905 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14906 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14908 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14909 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14910 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14911 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14912 | case $ac_sys_system in |
| 14913 | CYGWIN*) |
| 14914 | # Cygwin needs CCSHARED when building extension DLLs |
| 14915 | # but not when building the interpreter DLL. |
| 14916 | CFLAGSFORSHARED='';; |
| 14917 | *) |
| 14918 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14919 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14920 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14921 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14922 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14923 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14924 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14925 | # library (with --enable-shared). |
| 14926 | # 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] | 14927 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14928 | # if it is not required, since it creates a dependency of the shared library |
| 14929 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14930 | # don't need to link LIBS explicitly. The default should be only changed |
| 14931 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14932 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14933 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14934 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14935 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14936 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14937 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14938 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14939 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14940 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14941 | |
| 14942 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14943 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14945 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14946 | 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] | 14947 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14951 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14953 | /* confdefs.h. */ |
| 14954 | _ACEOF |
| 14955 | cat confdefs.h >>conftest.$ac_ext |
| 14956 | cat >>conftest.$ac_ext <<_ACEOF |
| 14957 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14959 | /* Override any GCC internal prototype to avoid an error. |
| 14960 | Use char because int might match the return type of a GCC |
| 14961 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | #ifdef __cplusplus |
| 14963 | extern "C" |
| 14964 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | int |
| 14967 | main () |
| 14968 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14969 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | ; |
| 14971 | return 0; |
| 14972 | } |
| 14973 | _ACEOF |
| 14974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14975 | if { (ac_try="$ac_link" |
| 14976 | case "(($ac_try" in |
| 14977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14978 | *) ac_try_echo=$ac_try;; |
| 14979 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14981 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14984 | rm -f conftest.er1 |
| 14985 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14987 | (exit $ac_status); } && { |
| 14988 | test -z "$ac_c_werror_flag" || |
| 14989 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14990 | } && test -s conftest$ac_exeext && |
| 14991 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14993 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14996 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14997 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14998 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14999 | |
| 15000 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15001 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15003 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15004 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15005 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15006 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | cat >>confdefs.h <<_ACEOF |
| 15008 | #define HAVE_LIBDL 1 |
| 15009 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15010 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15011 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15012 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15013 | fi |
| 15014 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15016 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15017 | 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] | 15018 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15022 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15024 | /* confdefs.h. */ |
| 15025 | _ACEOF |
| 15026 | cat confdefs.h >>conftest.$ac_ext |
| 15027 | cat >>conftest.$ac_ext <<_ACEOF |
| 15028 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15030 | /* Override any GCC internal prototype to avoid an error. |
| 15031 | Use char because int might match the return type of a GCC |
| 15032 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | #ifdef __cplusplus |
| 15034 | extern "C" |
| 15035 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15036 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 | int |
| 15038 | main () |
| 15039 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15040 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | ; |
| 15042 | return 0; |
| 15043 | } |
| 15044 | _ACEOF |
| 15045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15046 | if { (ac_try="$ac_link" |
| 15047 | case "(($ac_try" in |
| 15048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15049 | *) ac_try_echo=$ac_try;; |
| 15050 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15052 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15055 | rm -f conftest.er1 |
| 15056 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15058 | (exit $ac_status); } && { |
| 15059 | test -z "$ac_c_werror_flag" || |
| 15060 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15061 | } && test -s conftest$ac_exeext && |
| 15062 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15064 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15065 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15067 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15068 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15069 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15070 | |
| 15071 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15072 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15074 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15075 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15076 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15077 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | cat >>confdefs.h <<_ACEOF |
| 15079 | #define HAVE_LIBDLD 1 |
| 15080 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15081 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15082 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15083 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15084 | fi |
| 15085 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15086 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15087 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15088 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15089 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15090 | 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] | 15091 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15093 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15094 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15096 | /* confdefs.h. */ |
| 15097 | _ACEOF |
| 15098 | cat confdefs.h >>conftest.$ac_ext |
| 15099 | cat >>conftest.$ac_ext <<_ACEOF |
| 15100 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15102 | /* Override any GCC internal prototype to avoid an error. |
| 15103 | Use char because int might match the return type of a GCC |
| 15104 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | #ifdef __cplusplus |
| 15106 | extern "C" |
| 15107 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | int |
| 15110 | main () |
| 15111 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15112 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | ; |
| 15114 | return 0; |
| 15115 | } |
| 15116 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 | for ac_lib in '' pthread rt posix4; do |
| 15118 | if test -z "$ac_lib"; then |
| 15119 | ac_res="none required" |
| 15120 | else |
| 15121 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15122 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15123 | fi |
| 15124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15125 | if { (ac_try="$ac_link" |
| 15126 | case "(($ac_try" in |
| 15127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15128 | *) ac_try_echo=$ac_try;; |
| 15129 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15131 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15132 | ac_status=$? |
| 15133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15134 | rm -f conftest.er1 |
| 15135 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15137 | (exit $ac_status); } && { |
| 15138 | test -z "$ac_c_werror_flag" || |
| 15139 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15140 | } && test -s conftest$ac_exeext && |
| 15141 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15142 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15143 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15147 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15149 | |
| 15150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15151 | conftest$ac_exeext |
| 15152 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15153 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15154 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15155 | done |
| 15156 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15157 | : |
| 15158 | else |
| 15159 | ac_cv_search_sem_init=no |
| 15160 | fi |
| 15161 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15162 | LIBS=$ac_func_search_save_LIBS |
| 15163 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15164 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15165 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15166 | ac_res=$ac_cv_search_sem_init |
| 15167 | if test "$ac_res" != no; then |
| 15168 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15169 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15170 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15171 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15172 | # posix4 on Solaris 2.6 |
| 15173 | # pthread (first!) on Linux |
| 15174 | fi |
| 15175 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15176 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15177 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15178 | 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] | 15179 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15181 | else |
| 15182 | ac_check_lib_save_LIBS=$LIBS |
| 15183 | LIBS="-lintl $LIBS" |
| 15184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15185 | /* confdefs.h. */ |
| 15186 | _ACEOF |
| 15187 | cat confdefs.h >>conftest.$ac_ext |
| 15188 | cat >>conftest.$ac_ext <<_ACEOF |
| 15189 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15191 | /* Override any GCC internal prototype to avoid an error. |
| 15192 | Use char because int might match the return type of a GCC |
| 15193 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15194 | #ifdef __cplusplus |
| 15195 | extern "C" |
| 15196 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15197 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15198 | int |
| 15199 | main () |
| 15200 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15201 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15202 | ; |
| 15203 | return 0; |
| 15204 | } |
| 15205 | _ACEOF |
| 15206 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15207 | if { (ac_try="$ac_link" |
| 15208 | case "(($ac_try" in |
| 15209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15210 | *) ac_try_echo=$ac_try;; |
| 15211 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15213 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15214 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 | (exit $ac_status); } && { |
| 15220 | test -z "$ac_c_werror_flag" || |
| 15221 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15222 | } && test -s conftest$ac_exeext && |
| 15223 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15224 | ac_cv_lib_intl_textdomain=yes |
| 15225 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15229 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15231 | |
| 15232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15233 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15234 | LIBS=$ac_check_lib_save_LIBS |
| 15235 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15237 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15238 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15239 | |
| 15240 | cat >>confdefs.h <<\_ACEOF |
| 15241 | #define WITH_LIBINTL 1 |
| 15242 | _ACEOF |
| 15243 | |
| 15244 | fi |
| 15245 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15246 | |
| 15247 | # checks for system dependent C++ extensions support |
| 15248 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15249 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15250 | 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] | 15251 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15252 | /* confdefs.h. */ |
| 15253 | _ACEOF |
| 15254 | cat confdefs.h >>conftest.$ac_ext |
| 15255 | cat >>conftest.$ac_ext <<_ACEOF |
| 15256 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15257 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | int |
| 15259 | main () |
| 15260 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15261 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | ; |
| 15263 | return 0; |
| 15264 | } |
| 15265 | _ACEOF |
| 15266 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15267 | if { (ac_try="$ac_link" |
| 15268 | case "(($ac_try" in |
| 15269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15270 | *) ac_try_echo=$ac_try;; |
| 15271 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15273 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15276 | rm -f conftest.er1 |
| 15277 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15279 | (exit $ac_status); } && { |
| 15280 | test -z "$ac_c_werror_flag" || |
| 15281 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15282 | } && test -s conftest$ac_exeext && |
| 15283 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15285 | cat >>confdefs.h <<\_ACEOF |
| 15286 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15287 | _ACEOF |
| 15288 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15289 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15290 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15291 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15294 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15295 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15296 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15297 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15298 | |
| 15299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15301 | *) ;; |
| 15302 | esac |
| 15303 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15304 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15305 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15306 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15307 | 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] | 15308 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15312 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15314 | /* confdefs.h. */ |
| 15315 | _ACEOF |
| 15316 | cat confdefs.h >>conftest.$ac_ext |
| 15317 | cat >>conftest.$ac_ext <<_ACEOF |
| 15318 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15320 | /* Override any GCC internal prototype to avoid an error. |
| 15321 | Use char because int might match the return type of a GCC |
| 15322 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | #ifdef __cplusplus |
| 15324 | extern "C" |
| 15325 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | int |
| 15328 | main () |
| 15329 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15330 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | ; |
| 15332 | return 0; |
| 15333 | } |
| 15334 | _ACEOF |
| 15335 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15336 | if { (ac_try="$ac_link" |
| 15337 | case "(($ac_try" in |
| 15338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15339 | *) ac_try_echo=$ac_try;; |
| 15340 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15342 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15345 | rm -f conftest.er1 |
| 15346 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15348 | (exit $ac_status); } && { |
| 15349 | test -z "$ac_c_werror_flag" || |
| 15350 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15351 | } && test -s conftest$ac_exeext && |
| 15352 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15354 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15358 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15359 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15360 | |
| 15361 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15362 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15364 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15365 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15366 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15367 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15368 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15369 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15370 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15371 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15372 | 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] | 15373 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15377 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15379 | /* confdefs.h. */ |
| 15380 | _ACEOF |
| 15381 | cat confdefs.h >>conftest.$ac_ext |
| 15382 | cat >>conftest.$ac_ext <<_ACEOF |
| 15383 | /* end confdefs.h. */ |
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 | /* Override any GCC internal prototype to avoid an error. |
| 15386 | Use char because int might match the return type of a GCC |
| 15387 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15388 | #ifdef __cplusplus |
| 15389 | extern "C" |
| 15390 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | int |
| 15393 | main () |
| 15394 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15395 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
| 15400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15401 | if { (ac_try="$ac_link" |
| 15402 | case "(($ac_try" in |
| 15403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15404 | *) ac_try_echo=$ac_try;; |
| 15405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15407 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15410 | rm -f conftest.er1 |
| 15411 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15413 | (exit $ac_status); } && { |
| 15414 | test -z "$ac_c_werror_flag" || |
| 15415 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15416 | } && test -s conftest$ac_exeext && |
| 15417 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15418 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15419 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15422 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15423 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15424 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15425 | |
| 15426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15427 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15429 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15430 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15431 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15432 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15433 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15434 | fi |
| 15435 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15436 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15437 | case "$ac_sys_system" in |
| 15438 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15439 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15440 | 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] | 15441 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15444 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15445 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15447 | /* confdefs.h. */ |
| 15448 | _ACEOF |
| 15449 | cat confdefs.h >>conftest.$ac_ext |
| 15450 | cat >>conftest.$ac_ext <<_ACEOF |
| 15451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15453 | /* Override any GCC internal prototype to avoid an error. |
| 15454 | Use char because int might match the return type of a GCC |
| 15455 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15456 | #ifdef __cplusplus |
| 15457 | extern "C" |
| 15458 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | int |
| 15461 | main () |
| 15462 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15463 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | ; |
| 15465 | return 0; |
| 15466 | } |
| 15467 | _ACEOF |
| 15468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15469 | if { (ac_try="$ac_link" |
| 15470 | case "(($ac_try" in |
| 15471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15472 | *) ac_try_echo=$ac_try;; |
| 15473 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15475 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15478 | rm -f conftest.er1 |
| 15479 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15481 | (exit $ac_status); } && { |
| 15482 | test -z "$ac_c_werror_flag" || |
| 15483 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15484 | } && test -s conftest$ac_exeext && |
| 15485 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15491 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15493 | |
| 15494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15495 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15497 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15498 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15499 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15500 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15501 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15502 | fi |
| 15503 | # BeOS |
| 15504 | ;; |
| 15505 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15506 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15507 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15508 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15509 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15510 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15511 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15512 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15513 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15514 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15515 | LIBS="$withval $LIBS" |
| 15516 | |
| 15517 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15519 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15520 | fi |
| 15521 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15522 | |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 15523 | # Check for use of the system expat library |
| 15524 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15525 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15526 | |
| 15527 | # Check whether --with-system_expat was given. |
| 15528 | if test "${with_system_expat+set}" = set; then |
| 15529 | withval=$with_system_expat; |
| 15530 | fi |
| 15531 | |
| 15532 | |
| 15533 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15534 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15535 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15536 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15537 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15538 | 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] | 15539 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15540 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15541 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15542 | withval=$with_system_ffi; |
| 15543 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15544 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15545 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15546 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15547 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15548 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15549 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15550 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15551 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15552 | |
| 15553 | # Check whether --with-dbmliborder was given. |
| 15554 | if test "${with_dbmliborder+set}" = set; then |
| 15555 | withval=$with_dbmliborder; |
| 15556 | if test x$with_dbmliborder = xyes |
| 15557 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15558 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15559 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15560 | { (exit 1); exit 1; }; } |
| 15561 | else |
| 15562 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15563 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15564 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15565 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15566 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15567 | { (exit 1); exit 1; }; } |
| 15568 | fi |
| 15569 | done |
| 15570 | fi |
| 15571 | fi |
| 15572 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15573 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15574 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15575 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15576 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15577 | |
| 15578 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15579 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15580 | 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] | 15581 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15582 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15583 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15584 | withval=$with_signal_module; |
| 15585 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15586 | |
| 15587 | |
| 15588 | if test -z "$with_signal_module" |
| 15589 | then with_signal_module="yes" |
| 15590 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15591 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15592 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15593 | |
| 15594 | if test "${with_signal_module}" = "yes"; then |
| 15595 | USE_SIGNAL_MODULE="" |
| 15596 | SIGNAL_OBJS="" |
| 15597 | else |
| 15598 | USE_SIGNAL_MODULE="#" |
| 15599 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15600 | fi |
| 15601 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15602 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15603 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15604 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15606 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15607 | 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] | 15608 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15610 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15611 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15612 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15613 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15614 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15615 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15616 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15617 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15618 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15619 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15620 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15621 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15622 | fi |
| 15623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | |
| 15625 | # Templates for things AC_DEFINEd more than once. |
| 15626 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15627 | |
| 15628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15629 | |
| 15630 | |
| 15631 | |
| 15632 | |
| 15633 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15634 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15635 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15637 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15638 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15639 | withval=$with_threads; |
| 15640 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15641 | |
| 15642 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15643 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15644 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15645 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15646 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15647 | withval=$with_thread; with_threads=$with_thread |
| 15648 | fi |
| 15649 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15650 | |
| 15651 | if test -z "$with_threads" |
| 15652 | then with_threads="yes" |
| 15653 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15654 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15655 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15656 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15657 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15658 | if test "$with_threads" = "no" |
| 15659 | then |
| 15660 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15661 | elif test "$ac_cv_pthread_is_default" = yes |
| 15662 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15664 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15666 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15667 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15669 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15671 | |
| 15672 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15673 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15674 | elif test "$ac_cv_kpthread" = "yes" |
| 15675 | then |
| 15676 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15677 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15678 | CXX="$CXX -Kpthread" |
| 15679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15681 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15683 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15684 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15685 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15686 | elif test "$ac_cv_kthread" = "yes" |
| 15687 | then |
| 15688 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15689 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15690 | CXX="$CXX -Kthread" |
| 15691 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15692 | cat >>confdefs.h <<\_ACEOF |
| 15693 | #define WITH_THREAD 1 |
| 15694 | _ACEOF |
| 15695 | |
| 15696 | posix_threads=yes |
| 15697 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15698 | elif test "$ac_cv_pthread" = "yes" |
| 15699 | then |
| 15700 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15701 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15702 | CXX="$CXX -pthread" |
| 15703 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15704 | cat >>confdefs.h <<\_ACEOF |
| 15705 | #define WITH_THREAD 1 |
| 15706 | _ACEOF |
| 15707 | |
| 15708 | posix_threads=yes |
| 15709 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15710 | else |
| 15711 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15712 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15713 | fi |
| 15714 | if test ! -z "$withval" -a -d "$withval" |
| 15715 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15716 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15717 | |
| 15718 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15719 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15720 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15721 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15722 | 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] | 15723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15724 | /* confdefs.h. */ |
| 15725 | _ACEOF |
| 15726 | cat confdefs.h >>conftest.$ac_ext |
| 15727 | cat >>conftest.$ac_ext <<_ACEOF |
| 15728 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15729 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15730 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15731 | #ifdef _POSIX_THREADS |
| 15732 | yes |
| 15733 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | |
| 15735 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15737 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15738 | unistd_defines_pthreads=yes |
| 15739 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15740 | unistd_defines_pthreads=no |
| 15741 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 15742 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15743 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15744 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15745 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15747 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15748 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15752 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15753 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15757 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15758 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15761 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15762 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15764 | /* confdefs.h. */ |
| 15765 | _ACEOF |
| 15766 | cat confdefs.h >>conftest.$ac_ext |
| 15767 | cat >>conftest.$ac_ext <<_ACEOF |
| 15768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15769 | $ac_includes_default |
| 15770 | #include <cthreads.h> |
| 15771 | _ACEOF |
| 15772 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15773 | if { (ac_try="$ac_compile" |
| 15774 | case "(($ac_try" in |
| 15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15776 | *) ac_try_echo=$ac_try;; |
| 15777 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15782 | rm -f conftest.er1 |
| 15783 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15785 | (exit $ac_status); } && { |
| 15786 | test -z "$ac_c_werror_flag" || |
| 15787 | test ! -s conftest.err |
| 15788 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15789 | ac_header_compiler=yes |
| 15790 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15794 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15795 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15796 | |
| 15797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15798 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15799 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | |
| 15801 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15802 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15803 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | /* confdefs.h. */ |
| 15806 | _ACEOF |
| 15807 | cat confdefs.h >>conftest.$ac_ext |
| 15808 | cat >>conftest.$ac_ext <<_ACEOF |
| 15809 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15810 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15813 | case "(($ac_try" in |
| 15814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15815 | *) ac_try_echo=$ac_try;; |
| 15816 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15820 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | rm -f conftest.er1 |
| 15822 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15824 | (exit $ac_status); } >/dev/null && { |
| 15825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15826 | test ! -s conftest.err |
| 15827 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | ac_header_preproc=yes |
| 15829 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15837 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15838 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15839 | |
| 15840 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15842 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15843 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15844 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15845 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15846 | 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] | 15847 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15848 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15849 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15850 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15851 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15852 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15853 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15854 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15855 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15856 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15857 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15858 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15859 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15860 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15861 | 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] | 15862 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15863 | ## -------------------------------------- ## |
| 15864 | ## Report this to http://bugs.python.org/ ## |
| 15865 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15866 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15867 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15868 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15870 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15871 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15872 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | else |
| 15875 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15876 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15877 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15878 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | |
| 15880 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15881 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15883 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15887 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15890 | |
| 15891 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15892 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15894 | |
| 15895 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15896 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15897 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15899 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15900 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15901 | 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] | 15902 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15905 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15906 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15909 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15910 | 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] | 15911 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15912 | /* confdefs.h. */ |
| 15913 | _ACEOF |
| 15914 | cat confdefs.h >>conftest.$ac_ext |
| 15915 | cat >>conftest.$ac_ext <<_ACEOF |
| 15916 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 | $ac_includes_default |
| 15918 | #include <mach/cthreads.h> |
| 15919 | _ACEOF |
| 15920 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15921 | if { (ac_try="$ac_compile" |
| 15922 | case "(($ac_try" in |
| 15923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15924 | *) ac_try_echo=$ac_try;; |
| 15925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15927 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15930 | rm -f conftest.er1 |
| 15931 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15933 | (exit $ac_status); } && { |
| 15934 | test -z "$ac_c_werror_flag" || |
| 15935 | test ! -s conftest.err |
| 15936 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | ac_header_compiler=yes |
| 15938 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15942 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15944 | |
| 15945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15946 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15947 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15948 | |
| 15949 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15950 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15951 | 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] | 15952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15953 | /* confdefs.h. */ |
| 15954 | _ACEOF |
| 15955 | cat confdefs.h >>conftest.$ac_ext |
| 15956 | cat >>conftest.$ac_ext <<_ACEOF |
| 15957 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15958 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15960 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15961 | case "(($ac_try" in |
| 15962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15963 | *) ac_try_echo=$ac_try;; |
| 15964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15968 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | rm -f conftest.er1 |
| 15970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15972 | (exit $ac_status); } >/dev/null && { |
| 15973 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15974 | test ! -s conftest.err |
| 15975 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | ac_header_preproc=yes |
| 15977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15982 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15984 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15985 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15986 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | |
| 15988 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15990 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15991 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15992 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15993 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 15994 | 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] | 15995 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15996 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15997 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15998 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 15999 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16000 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16001 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16002 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16003 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16004 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16005 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16006 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16007 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16008 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16009 | 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] | 16010 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16011 | ## -------------------------------------- ## |
| 16012 | ## Report this to http://bugs.python.org/ ## |
| 16013 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16014 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16015 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16016 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16018 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16019 | 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] | 16020 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | else |
| 16023 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16024 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16025 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16026 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | |
| 16028 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16029 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16031 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16035 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | |
| 16039 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16040 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16042 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16043 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16044 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16045 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16046 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16047 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16049 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16050 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16051 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16052 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16053 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16054 | #define WITH_THREAD 1 |
| 16055 | _ACEOF |
| 16056 | |
| 16057 | |
| 16058 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16059 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16060 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16061 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16062 | LIBS="-lpth $LIBS" |
| 16063 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16064 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16066 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16067 | |
| 16068 | # Just looking for pthread_create in libpthread is not enough: |
| 16069 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16070 | # So we really have to include pthread.h, and then link. |
| 16071 | _libs=$LIBS |
| 16072 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16073 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16074 | 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] | 16075 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16076 | /* confdefs.h. */ |
| 16077 | _ACEOF |
| 16078 | cat confdefs.h >>conftest.$ac_ext |
| 16079 | cat >>conftest.$ac_ext <<_ACEOF |
| 16080 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16081 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16082 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16083 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16084 | int |
| 16085 | main () |
| 16086 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16087 | |
| 16088 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 | ; |
| 16090 | return 0; |
| 16091 | } |
| 16092 | _ACEOF |
| 16093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16094 | if { (ac_try="$ac_link" |
| 16095 | case "(($ac_try" in |
| 16096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16097 | *) ac_try_echo=$ac_try;; |
| 16098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16100 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16103 | rm -f conftest.er1 |
| 16104 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16106 | (exit $ac_status); } && { |
| 16107 | test -z "$ac_c_werror_flag" || |
| 16108 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16109 | } && test -s conftest$ac_exeext && |
| 16110 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16112 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16113 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16115 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16117 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16118 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16119 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16120 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16125 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16126 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16127 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16137 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16138 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16139 | #define pthread_detach innocuous_pthread_detach |
| 16140 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16141 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16142 | which can conflict with char pthread_detach (); below. |
| 16143 | 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] | 16144 | <limits.h> exists even on freestanding compilers. */ |
| 16145 | |
| 16146 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16147 | # include <limits.h> |
| 16148 | #else |
| 16149 | # include <assert.h> |
| 16150 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16151 | |
| 16152 | #undef pthread_detach |
| 16153 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16154 | /* Override any GCC internal prototype to avoid an error. |
| 16155 | Use char because int might match the return type of a GCC |
| 16156 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | #ifdef __cplusplus |
| 16158 | extern "C" |
| 16159 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16161 | /* The GNU C library defines this for functions which it implements |
| 16162 | to always fail with ENOSYS. Some functions are actually named |
| 16163 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16164 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16165 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16166 | #endif |
| 16167 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16168 | int |
| 16169 | main () |
| 16170 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16171 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | ; |
| 16173 | return 0; |
| 16174 | } |
| 16175 | _ACEOF |
| 16176 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16177 | if { (ac_try="$ac_link" |
| 16178 | case "(($ac_try" in |
| 16179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16180 | *) ac_try_echo=$ac_try;; |
| 16181 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16183 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16186 | rm -f conftest.er1 |
| 16187 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16189 | (exit $ac_status); } && { |
| 16190 | test -z "$ac_c_werror_flag" || |
| 16191 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16192 | } && test -s conftest$ac_exeext && |
| 16193 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16199 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16200 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16201 | |
| 16202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16203 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16204 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16205 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16206 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16207 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16209 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16211 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16212 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16213 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16214 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16215 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16216 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16217 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16218 | 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] | 16219 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16221 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16222 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16223 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16224 | else |
| 16225 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16226 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16227 | 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] | 16228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16229 | /* confdefs.h. */ |
| 16230 | _ACEOF |
| 16231 | cat confdefs.h >>conftest.$ac_ext |
| 16232 | cat >>conftest.$ac_ext <<_ACEOF |
| 16233 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16234 | $ac_includes_default |
| 16235 | #include <atheos/threads.h> |
| 16236 | _ACEOF |
| 16237 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16238 | if { (ac_try="$ac_compile" |
| 16239 | case "(($ac_try" in |
| 16240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16241 | *) ac_try_echo=$ac_try;; |
| 16242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16244 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16247 | rm -f conftest.er1 |
| 16248 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16250 | (exit $ac_status); } && { |
| 16251 | test -z "$ac_c_werror_flag" || |
| 16252 | test ! -s conftest.err |
| 16253 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16254 | ac_header_compiler=yes |
| 16255 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16259 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16260 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16261 | |
| 16262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16263 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16264 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16265 | |
| 16266 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16267 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16268 | 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] | 16269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16270 | /* confdefs.h. */ |
| 16271 | _ACEOF |
| 16272 | cat confdefs.h >>conftest.$ac_ext |
| 16273 | cat >>conftest.$ac_ext <<_ACEOF |
| 16274 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16275 | #include <atheos/threads.h> |
| 16276 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16277 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16278 | case "(($ac_try" in |
| 16279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16280 | *) ac_try_echo=$ac_try;; |
| 16281 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16283 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16284 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16285 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16286 | rm -f conftest.er1 |
| 16287 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16289 | (exit $ac_status); } >/dev/null && { |
| 16290 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16291 | test ! -s conftest.err |
| 16292 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16293 | ac_header_preproc=yes |
| 16294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16297 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16298 | ac_header_preproc=no |
| 16299 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16300 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16301 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16302 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16303 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16304 | |
| 16305 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16307 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16308 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16309 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16310 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16311 | 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] | 16312 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16313 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16314 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16315 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16316 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16317 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16318 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16319 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16320 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16321 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16322 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16323 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16324 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16325 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16326 | 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] | 16327 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16328 | ## -------------------------------------- ## |
| 16329 | ## Report this to http://bugs.python.org/ ## |
| 16330 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16331 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16332 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16333 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16334 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16335 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16336 | 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] | 16337 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16339 | else |
| 16340 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16341 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16342 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16343 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16344 | |
| 16345 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16346 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16347 | cat >>confdefs.h <<\_ACEOF |
| 16348 | #define WITH_THREAD 1 |
| 16349 | _ACEOF |
| 16350 | |
| 16351 | |
| 16352 | cat >>confdefs.h <<\_ACEOF |
| 16353 | #define ATHEOS_THREADS 1 |
| 16354 | _ACEOF |
| 16355 | |
| 16356 | THREADOBJ="Python/thread.o" |
| 16357 | else |
| 16358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16360 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16361 | 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] | 16362 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16364 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16365 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16366 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16369 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16370 | 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] | 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 | $ac_includes_default |
| 16378 | #include <kernel/OS.h> |
| 16379 | _ACEOF |
| 16380 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16381 | if { (ac_try="$ac_compile" |
| 16382 | case "(($ac_try" in |
| 16383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16384 | *) ac_try_echo=$ac_try;; |
| 16385 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16387 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16390 | rm -f conftest.er1 |
| 16391 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16393 | (exit $ac_status); } && { |
| 16394 | test -z "$ac_c_werror_flag" || |
| 16395 | test ! -s conftest.err |
| 16396 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16397 | ac_header_compiler=yes |
| 16398 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16399 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16402 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16404 | |
| 16405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16406 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16407 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16408 | |
| 16409 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16410 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16411 | 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] | 16412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16413 | /* confdefs.h. */ |
| 16414 | _ACEOF |
| 16415 | cat confdefs.h >>conftest.$ac_ext |
| 16416 | cat >>conftest.$ac_ext <<_ACEOF |
| 16417 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16418 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16420 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16421 | case "(($ac_try" in |
| 16422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16423 | *) ac_try_echo=$ac_try;; |
| 16424 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16426 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16428 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | rm -f conftest.er1 |
| 16430 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16432 | (exit $ac_status); } >/dev/null && { |
| 16433 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16434 | test ! -s conftest.err |
| 16435 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | ac_header_preproc=yes |
| 16437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16441 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16442 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16444 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16445 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16446 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16450 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16451 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16452 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16453 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16454 | 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] | 16455 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16456 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16457 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16458 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16459 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16460 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16461 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16462 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16463 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16464 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16465 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16466 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16467 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16468 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16469 | 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] | 16470 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16471 | ## -------------------------------------- ## |
| 16472 | ## Report this to http://bugs.python.org/ ## |
| 16473 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16474 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16475 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16476 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16478 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16479 | 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] | 16480 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | else |
| 16483 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16484 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16485 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16486 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16487 | |
| 16488 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16489 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | cat >>confdefs.h <<\_ACEOF |
| 16491 | #define WITH_THREAD 1 |
| 16492 | _ACEOF |
| 16493 | |
| 16494 | |
| 16495 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16496 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16497 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16498 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16499 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16500 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16501 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16502 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16503 | 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] | 16504 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16507 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16508 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16510 | /* confdefs.h. */ |
| 16511 | _ACEOF |
| 16512 | cat confdefs.h >>conftest.$ac_ext |
| 16513 | cat >>conftest.$ac_ext <<_ACEOF |
| 16514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16516 | /* Override any GCC internal prototype to avoid an error. |
| 16517 | Use char because int might match the return type of a GCC |
| 16518 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | #ifdef __cplusplus |
| 16520 | extern "C" |
| 16521 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16522 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16523 | int |
| 16524 | main () |
| 16525 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16526 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16527 | ; |
| 16528 | return 0; |
| 16529 | } |
| 16530 | _ACEOF |
| 16531 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16532 | if { (ac_try="$ac_link" |
| 16533 | case "(($ac_try" in |
| 16534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16535 | *) ac_try_echo=$ac_try;; |
| 16536 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16538 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16541 | rm -f conftest.er1 |
| 16542 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16544 | (exit $ac_status); } && { |
| 16545 | test -z "$ac_c_werror_flag" || |
| 16546 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16547 | } && test -s conftest$ac_exeext && |
| 16548 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16550 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16551 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16553 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16554 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16555 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16556 | |
| 16557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16558 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16560 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16561 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16562 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16563 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16565 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16567 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16568 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16569 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16570 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16571 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16572 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16573 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16574 | 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] | 16575 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16579 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16581 | /* confdefs.h. */ |
| 16582 | _ACEOF |
| 16583 | cat confdefs.h >>conftest.$ac_ext |
| 16584 | cat >>conftest.$ac_ext <<_ACEOF |
| 16585 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16587 | /* Override any GCC internal prototype to avoid an error. |
| 16588 | Use char because int might match the return type of a GCC |
| 16589 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16590 | #ifdef __cplusplus |
| 16591 | extern "C" |
| 16592 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | int |
| 16595 | main () |
| 16596 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16597 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16598 | ; |
| 16599 | return 0; |
| 16600 | } |
| 16601 | _ACEOF |
| 16602 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16603 | if { (ac_try="$ac_link" |
| 16604 | case "(($ac_try" in |
| 16605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16606 | *) ac_try_echo=$ac_try;; |
| 16607 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16609 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16612 | rm -f conftest.er1 |
| 16613 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16615 | (exit $ac_status); } && { |
| 16616 | test -z "$ac_c_werror_flag" || |
| 16617 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16618 | } && test -s conftest$ac_exeext && |
| 16619 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16621 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16622 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16625 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16627 | |
| 16628 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16629 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16630 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16631 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16632 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16633 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16634 | 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] | 16635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16636 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16638 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16639 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16640 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16641 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16642 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16643 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16644 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16645 | 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] | 16646 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16650 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16652 | /* confdefs.h. */ |
| 16653 | _ACEOF |
| 16654 | cat confdefs.h >>conftest.$ac_ext |
| 16655 | cat >>conftest.$ac_ext <<_ACEOF |
| 16656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16657 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16658 | /* Override any GCC internal prototype to avoid an error. |
| 16659 | Use char because int might match the return type of a GCC |
| 16660 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | #ifdef __cplusplus |
| 16662 | extern "C" |
| 16663 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | int |
| 16666 | main () |
| 16667 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16668 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16669 | ; |
| 16670 | return 0; |
| 16671 | } |
| 16672 | _ACEOF |
| 16673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16674 | if { (ac_try="$ac_link" |
| 16675 | case "(($ac_try" in |
| 16676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16677 | *) ac_try_echo=$ac_try;; |
| 16678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16680 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16683 | rm -f conftest.er1 |
| 16684 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16686 | (exit $ac_status); } && { |
| 16687 | test -z "$ac_c_werror_flag" || |
| 16688 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16689 | } && test -s conftest$ac_exeext && |
| 16690 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16692 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16696 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16697 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16698 | |
| 16699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16700 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16704 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16705 | 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] | 16706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16707 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16709 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16710 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16711 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16712 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16713 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16714 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16715 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16716 | 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] | 16717 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16721 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16723 | /* confdefs.h. */ |
| 16724 | _ACEOF |
| 16725 | cat confdefs.h >>conftest.$ac_ext |
| 16726 | cat >>conftest.$ac_ext <<_ACEOF |
| 16727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16729 | /* Override any GCC internal prototype to avoid an error. |
| 16730 | Use char because int might match the return type of a GCC |
| 16731 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | #ifdef __cplusplus |
| 16733 | extern "C" |
| 16734 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16736 | int |
| 16737 | main () |
| 16738 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16739 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | ; |
| 16741 | return 0; |
| 16742 | } |
| 16743 | _ACEOF |
| 16744 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16745 | if { (ac_try="$ac_link" |
| 16746 | case "(($ac_try" in |
| 16747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16748 | *) ac_try_echo=$ac_try;; |
| 16749 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16751 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16754 | rm -f conftest.er1 |
| 16755 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16757 | (exit $ac_status); } && { |
| 16758 | test -z "$ac_c_werror_flag" || |
| 16759 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16760 | } && test -s conftest$ac_exeext && |
| 16761 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16763 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16767 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16768 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16769 | |
| 16770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16771 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16773 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16774 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16775 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16776 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16778 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16780 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16781 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16782 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16783 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16784 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16785 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16786 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16787 | fi |
| 16788 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16789 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16790 | fi |
| 16791 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16792 | fi |
| 16793 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16794 | fi |
| 16795 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16796 | fi |
| 16797 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16798 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16799 | fi |
| 16800 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16801 | |
| 16802 | fi |
| 16803 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16804 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16805 | |
| 16806 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16807 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16808 | fi |
| 16809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | fi |
| 16811 | |
| 16812 | |
| 16813 | fi |
| 16814 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16815 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16816 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16817 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16818 | 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] | 16819 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16822 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16823 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16825 | /* confdefs.h. */ |
| 16826 | _ACEOF |
| 16827 | cat confdefs.h >>conftest.$ac_ext |
| 16828 | cat >>conftest.$ac_ext <<_ACEOF |
| 16829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16831 | /* Override any GCC internal prototype to avoid an error. |
| 16832 | Use char because int might match the return type of a GCC |
| 16833 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | #ifdef __cplusplus |
| 16835 | extern "C" |
| 16836 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | int |
| 16839 | main () |
| 16840 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16841 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16842 | ; |
| 16843 | return 0; |
| 16844 | } |
| 16845 | _ACEOF |
| 16846 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16847 | if { (ac_try="$ac_link" |
| 16848 | case "(($ac_try" in |
| 16849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16850 | *) ac_try_echo=$ac_try;; |
| 16851 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16853 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16856 | rm -f conftest.er1 |
| 16857 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16859 | (exit $ac_status); } && { |
| 16860 | test -z "$ac_c_werror_flag" || |
| 16861 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16862 | } && test -s conftest$ac_exeext && |
| 16863 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16865 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16868 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16869 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16870 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16871 | |
| 16872 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16873 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16874 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16875 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16876 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16877 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 16878 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16880 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16881 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16882 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16883 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16884 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16885 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16886 | fi |
| 16887 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16888 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16889 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16890 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16891 | 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] | 16892 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16896 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16898 | /* confdefs.h. */ |
| 16899 | _ACEOF |
| 16900 | cat confdefs.h >>conftest.$ac_ext |
| 16901 | cat >>conftest.$ac_ext <<_ACEOF |
| 16902 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16904 | /* Override any GCC internal prototype to avoid an error. |
| 16905 | Use char because int might match the return type of a GCC |
| 16906 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | #ifdef __cplusplus |
| 16908 | extern "C" |
| 16909 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | int |
| 16912 | main () |
| 16913 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16914 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | ; |
| 16916 | return 0; |
| 16917 | } |
| 16918 | _ACEOF |
| 16919 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16920 | if { (ac_try="$ac_link" |
| 16921 | case "(($ac_try" in |
| 16922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16923 | *) ac_try_echo=$ac_try;; |
| 16924 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16926 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16929 | rm -f conftest.er1 |
| 16930 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16932 | (exit $ac_status); } && { |
| 16933 | test -z "$ac_c_werror_flag" || |
| 16934 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16935 | } && test -s conftest$ac_exeext && |
| 16936 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16937 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16938 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16942 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16943 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16944 | |
| 16945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16946 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16947 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16948 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16949 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16950 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 16951 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16952 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16953 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16954 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16955 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16956 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16957 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16958 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16959 | fi |
| 16960 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16961 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16962 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16963 | if test "$USE_THREAD_MODULE" != "#" |
| 16964 | then |
| 16965 | # If the above checks didn't disable threads, (at least) OSF1 |
| 16966 | # needs this '-threads' argument during linking. |
| 16967 | case $ac_sys_system in |
| 16968 | OSF1) LDLAST=-threads;; |
| 16969 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 16970 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16971 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16972 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16973 | if test "$posix_threads" = "yes"; then |
| 16974 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16975 | |
| 16976 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16977 | #define _POSIX_THREADS 1 |
| 16978 | _ACEOF |
| 16979 | |
| 16980 | fi |
| 16981 | |
| 16982 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 16983 | case $ac_sys_system/$ac_sys_release in |
| 16984 | SunOS/5.6) |
| 16985 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16986 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 16987 | _ACEOF |
| 16988 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16989 | ;; |
| 16990 | SunOS/5.8) |
| 16991 | cat >>confdefs.h <<\_ACEOF |
| 16992 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16993 | _ACEOF |
| 16994 | |
| 16995 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 16996 | AIX/5) |
| 16997 | cat >>confdefs.h <<\_ACEOF |
| 16998 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16999 | _ACEOF |
| 17000 | |
| 17001 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17002 | esac |
| 17003 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17004 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17005 | 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] | 17006 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17008 | else |
| 17009 | if test "$cross_compiling" = yes; then |
| 17010 | ac_cv_pthread_system_supported=no |
| 17011 | else |
| 17012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17013 | /* confdefs.h. */ |
| 17014 | _ACEOF |
| 17015 | cat confdefs.h >>conftest.$ac_ext |
| 17016 | cat >>conftest.$ac_ext <<_ACEOF |
| 17017 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17018 | #include <pthread.h> |
| 17019 | void *foo(void *parm) { |
| 17020 | return NULL; |
| 17021 | } |
| 17022 | main() { |
| 17023 | pthread_attr_t attr; |
| 17024 | pthread_t id; |
| 17025 | if (pthread_attr_init(&attr)) exit(-1); |
| 17026 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17027 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17028 | exit(0); |
| 17029 | } |
| 17030 | _ACEOF |
| 17031 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17032 | if { (ac_try="$ac_link" |
| 17033 | case "(($ac_try" in |
| 17034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17035 | *) ac_try_echo=$ac_try;; |
| 17036 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17038 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17039 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17042 | { (case "(($ac_try" in |
| 17043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17044 | *) ac_try_echo=$ac_try;; |
| 17045 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17047 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17048 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17050 | (exit $ac_status); }; }; then |
| 17051 | ac_cv_pthread_system_supported=yes |
| 17052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17053 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17054 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17056 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17057 | ( exit $ac_status ) |
| 17058 | ac_cv_pthread_system_supported=no |
| 17059 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17060 | 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] | 17061 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17062 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17063 | |
| 17064 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17065 | fi |
| 17066 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17067 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17068 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17069 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17070 | |
| 17071 | cat >>confdefs.h <<\_ACEOF |
| 17072 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17073 | _ACEOF |
| 17074 | |
| 17075 | fi |
| 17076 | |
| 17077 | for ac_func in pthread_sigmask |
| 17078 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17080 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17082 | 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] | 17083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17084 | else |
| 17085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17086 | /* confdefs.h. */ |
| 17087 | _ACEOF |
| 17088 | cat confdefs.h >>conftest.$ac_ext |
| 17089 | cat >>conftest.$ac_ext <<_ACEOF |
| 17090 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17093 | #define $ac_func innocuous_$ac_func |
| 17094 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17095 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17096 | which can conflict with char $ac_func (); below. |
| 17097 | 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] | 17098 | <limits.h> exists even on freestanding compilers. */ |
| 17099 | |
| 17100 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17101 | # include <limits.h> |
| 17102 | #else |
| 17103 | # include <assert.h> |
| 17104 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17105 | |
| 17106 | #undef $ac_func |
| 17107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17108 | /* Override any GCC internal prototype to avoid an error. |
| 17109 | Use char because int might match the return type of a GCC |
| 17110 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17111 | #ifdef __cplusplus |
| 17112 | extern "C" |
| 17113 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17114 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17115 | /* The GNU C library defines this for functions which it implements |
| 17116 | to always fail with ENOSYS. Some functions are actually named |
| 17117 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17118 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17119 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17120 | #endif |
| 17121 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17122 | int |
| 17123 | main () |
| 17124 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17125 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17126 | ; |
| 17127 | return 0; |
| 17128 | } |
| 17129 | _ACEOF |
| 17130 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17131 | if { (ac_try="$ac_link" |
| 17132 | case "(($ac_try" in |
| 17133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17134 | *) ac_try_echo=$ac_try;; |
| 17135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17137 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17138 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17140 | rm -f conftest.er1 |
| 17141 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17143 | (exit $ac_status); } && { |
| 17144 | test -z "$ac_c_werror_flag" || |
| 17145 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17146 | } && test -s conftest$ac_exeext && |
| 17147 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17148 | eval "$as_ac_var=yes" |
| 17149 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17152 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17153 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17154 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17155 | |
| 17156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17157 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17158 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17159 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17160 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17161 | echo "${ECHO_T}$ac_res" >&6; } |
| 17162 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17163 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17165 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17166 | case $ac_sys_system in |
| 17167 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17168 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17169 | cat >>confdefs.h <<\_ACEOF |
| 17170 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17171 | _ACEOF |
| 17172 | |
| 17173 | ;; |
| 17174 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17175 | fi |
| 17176 | done |
| 17177 | |
| 17178 | fi |
| 17179 | |
| 17180 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17181 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | |
| 17183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17184 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17185 | 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] | 17186 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17187 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17188 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17189 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17190 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17191 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17192 | ipv6=no |
| 17193 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17194 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17195 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17196 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17197 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17198 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17199 | |
| 17200 | ipv6=yes |
| 17201 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17202 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17205 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17206 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17207 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17208 | ipv6=no |
| 17209 | |
| 17210 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17212 | /* confdefs.h. */ |
| 17213 | _ACEOF |
| 17214 | cat confdefs.h >>conftest.$ac_ext |
| 17215 | cat >>conftest.$ac_ext <<_ACEOF |
| 17216 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17217 | /* AF_INET6 available check */ |
| 17218 | #include <sys/types.h> |
| 17219 | #include <sys/socket.h> |
| 17220 | main() |
| 17221 | { |
| 17222 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17223 | exit(1); |
| 17224 | else |
| 17225 | exit(0); |
| 17226 | } |
| 17227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17228 | _ACEOF |
| 17229 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17230 | if { (ac_try="$ac_link" |
| 17231 | case "(($ac_try" in |
| 17232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17233 | *) ac_try_echo=$ac_try;; |
| 17234 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17236 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17237 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17240 | { (case "(($ac_try" in |
| 17241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17242 | *) ac_try_echo=$ac_try;; |
| 17243 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17245 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17248 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17249 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17250 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17251 | ipv6=yes |
| 17252 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17253 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17254 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17258 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17259 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17260 | ipv6=no |
| 17261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17262 | 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] | 17263 | fi |
| 17264 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17265 | |
| 17266 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17267 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17268 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17269 | 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] | 17270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17271 | /* confdefs.h. */ |
| 17272 | _ACEOF |
| 17273 | cat confdefs.h >>conftest.$ac_ext |
| 17274 | cat >>conftest.$ac_ext <<_ACEOF |
| 17275 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17276 | #include <sys/types.h> |
| 17277 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17278 | int |
| 17279 | main () |
| 17280 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17281 | struct sockaddr_in6 x; |
| 17282 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | ; |
| 17284 | return 0; |
| 17285 | } |
| 17286 | _ACEOF |
| 17287 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17288 | if { (ac_try="$ac_compile" |
| 17289 | case "(($ac_try" in |
| 17290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17291 | *) ac_try_echo=$ac_try;; |
| 17292 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17294 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17295 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17297 | rm -f conftest.er1 |
| 17298 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17300 | (exit $ac_status); } && { |
| 17301 | test -z "$ac_c_werror_flag" || |
| 17302 | test ! -s conftest.err |
| 17303 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17304 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17305 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17306 | ipv6=yes |
| 17307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17310 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17312 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17313 | ipv6=no |
| 17314 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17315 | |
| 17316 | 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] | 17317 | fi |
| 17318 | |
| 17319 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17320 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17321 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17323 | |
| 17324 | fi |
| 17325 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17326 | fi |
| 17327 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17328 | |
| 17329 | ipv6type=unknown |
| 17330 | ipv6lib=none |
| 17331 | ipv6trylibc=no |
| 17332 | |
| 17333 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17334 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17335 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17336 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17337 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17338 | case $i in |
| 17339 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17341 | /* confdefs.h. */ |
| 17342 | _ACEOF |
| 17343 | cat confdefs.h >>conftest.$ac_ext |
| 17344 | cat >>conftest.$ac_ext <<_ACEOF |
| 17345 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17346 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17347 | #include <netinet/in.h> |
| 17348 | #ifdef IPV6_INRIA_VERSION |
| 17349 | yes |
| 17350 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17353 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17354 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17355 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17356 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17357 | |
| 17358 | ;; |
| 17359 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17361 | /* confdefs.h. */ |
| 17362 | _ACEOF |
| 17363 | cat confdefs.h >>conftest.$ac_ext |
| 17364 | cat >>conftest.$ac_ext <<_ACEOF |
| 17365 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17366 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17367 | #include <netinet/in.h> |
| 17368 | #ifdef __KAME__ |
| 17369 | yes |
| 17370 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17372 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17373 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17374 | ipv6type=$i; |
| 17375 | ipv6lib=inet6 |
| 17376 | ipv6libdir=/usr/local/v6/lib |
| 17377 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17378 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17379 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17380 | |
| 17381 | ;; |
| 17382 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17384 | /* confdefs.h. */ |
| 17385 | _ACEOF |
| 17386 | cat confdefs.h >>conftest.$ac_ext |
| 17387 | cat >>conftest.$ac_ext <<_ACEOF |
| 17388 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17389 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17390 | #include <features.h> |
| 17391 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17392 | yes |
| 17393 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17394 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17396 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17397 | ipv6type=$i; |
| 17398 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17399 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17400 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17401 | |
| 17402 | ;; |
| 17403 | linux-inet6) |
| 17404 | if test -d /usr/inet6; then |
| 17405 | ipv6type=$i |
| 17406 | ipv6lib=inet6 |
| 17407 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17408 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17409 | fi |
| 17410 | ;; |
| 17411 | solaris) |
| 17412 | if test -f /etc/netconfig; then |
| 17413 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17414 | ipv6type=$i |
| 17415 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17416 | fi |
| 17417 | fi |
| 17418 | ;; |
| 17419 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17421 | /* confdefs.h. */ |
| 17422 | _ACEOF |
| 17423 | cat confdefs.h >>conftest.$ac_ext |
| 17424 | cat >>conftest.$ac_ext <<_ACEOF |
| 17425 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17426 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17427 | #include <sys/param.h> |
| 17428 | #ifdef _TOSHIBA_INET6 |
| 17429 | yes |
| 17430 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17433 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17434 | ipv6type=$i; |
| 17435 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17436 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17437 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17438 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17439 | |
| 17440 | ;; |
| 17441 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17443 | /* confdefs.h. */ |
| 17444 | _ACEOF |
| 17445 | cat confdefs.h >>conftest.$ac_ext |
| 17446 | cat >>conftest.$ac_ext <<_ACEOF |
| 17447 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17448 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17449 | #include </usr/local/v6/include/sys/v6config.h> |
| 17450 | #ifdef __V6D__ |
| 17451 | yes |
| 17452 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17453 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17455 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17456 | ipv6type=$i; |
| 17457 | ipv6lib=v6; |
| 17458 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17459 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17460 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17461 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17462 | |
| 17463 | ;; |
| 17464 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17466 | /* confdefs.h. */ |
| 17467 | _ACEOF |
| 17468 | cat confdefs.h >>conftest.$ac_ext |
| 17469 | cat >>conftest.$ac_ext <<_ACEOF |
| 17470 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17471 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17472 | #include <sys/param.h> |
| 17473 | #ifdef _ZETA_MINAMI_INET6 |
| 17474 | yes |
| 17475 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17476 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17478 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17479 | ipv6type=$i; |
| 17480 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17481 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17482 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 17483 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17484 | |
| 17485 | ;; |
| 17486 | esac |
| 17487 | if test "$ipv6type" != "unknown"; then |
| 17488 | break |
| 17489 | fi |
| 17490 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17491 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17492 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17493 | fi |
| 17494 | |
| 17495 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17496 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17497 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17498 | echo "using lib$ipv6lib" |
| 17499 | else |
| 17500 | if test $ipv6trylibc = "yes"; then |
| 17501 | echo "using libc" |
| 17502 | else |
| 17503 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17504 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17505 | echo 'ipv6 kit and compile beforehand.' |
| 17506 | exit 1 |
| 17507 | fi |
| 17508 | fi |
| 17509 | fi |
| 17510 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17511 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17512 | 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] | 17513 | cat >conftest.$ac_ext <<_ACEOF |
| 17514 | /* confdefs.h. */ |
| 17515 | _ACEOF |
| 17516 | cat confdefs.h >>conftest.$ac_ext |
| 17517 | cat >>conftest.$ac_ext <<_ACEOF |
| 17518 | /* end confdefs.h. */ |
| 17519 | #include <Carbon/Carbon.h> |
| 17520 | int |
| 17521 | main () |
| 17522 | { |
| 17523 | FSIORefNum fRef = 0 |
| 17524 | ; |
| 17525 | return 0; |
| 17526 | } |
| 17527 | _ACEOF |
| 17528 | rm -f conftest.$ac_objext |
| 17529 | if { (ac_try="$ac_compile" |
| 17530 | case "(($ac_try" in |
| 17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17532 | *) ac_try_echo=$ac_try;; |
| 17533 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17535 | (eval "$ac_compile") 2>conftest.er1 |
| 17536 | ac_status=$? |
| 17537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17538 | rm -f conftest.er1 |
| 17539 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17541 | (exit $ac_status); } && { |
| 17542 | test -z "$ac_c_werror_flag" || |
| 17543 | test ! -s conftest.err |
| 17544 | } && test -s conftest.$ac_objext; then |
| 17545 | |
| 17546 | cat >>confdefs.h <<\_ACEOF |
| 17547 | #define HAVE_OSX105_SDK 1 |
| 17548 | _ACEOF |
| 17549 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17550 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17551 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17552 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17553 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17556 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17557 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17558 | |
| 17559 | fi |
| 17560 | |
| 17561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17562 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17563 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17564 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17565 | 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] | 17566 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17567 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17568 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17569 | withval=$with_doc_strings; |
| 17570 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17571 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17572 | |
| 17573 | if test -z "$with_doc_strings" |
| 17574 | then with_doc_strings="yes" |
| 17575 | fi |
| 17576 | if test "$with_doc_strings" != "no" |
| 17577 | then |
| 17578 | |
| 17579 | cat >>confdefs.h <<\_ACEOF |
| 17580 | #define WITH_DOC_STRINGS 1 |
| 17581 | _ACEOF |
| 17582 | |
| 17583 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17584 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17585 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17586 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17587 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17588 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17589 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17590 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17591 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17592 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17593 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17594 | if test "$withval" != no |
| 17595 | then |
| 17596 | |
| 17597 | cat >>confdefs.h <<\_ACEOF |
| 17598 | #define WITH_TSC 1 |
| 17599 | _ACEOF |
| 17600 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17601 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17602 | echo "${ECHO_T}yes" >&6; } |
| 17603 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17604 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17605 | fi |
| 17606 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17607 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17608 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17609 | fi |
| 17610 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17611 | |
| 17612 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17613 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17614 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17615 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17616 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17617 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17618 | withval=$with_pymalloc; |
| 17619 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17620 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17621 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17622 | if test -z "$with_pymalloc" |
| 17623 | then with_pymalloc="yes" |
| 17624 | fi |
| 17625 | if test "$with_pymalloc" != "no" |
| 17626 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17627 | |
| 17628 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17629 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17631 | |
| 17632 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17633 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17634 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17635 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17636 | # Check for Valgrind support |
| 17637 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17638 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17639 | |
| 17640 | # Check whether --with-valgrind was given. |
| 17641 | if test "${with_valgrind+set}" = set; then |
| 17642 | withval=$with_valgrind; |
| 17643 | else |
| 17644 | with_valgrind=no |
| 17645 | fi |
| 17646 | |
| 17647 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17648 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17649 | if test "$with_valgrind" != no; then |
| 17650 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17651 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17652 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17653 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17655 | fi |
| 17656 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17657 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17658 | else |
| 17659 | # Is the header compilable? |
| 17660 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17661 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17662 | cat >conftest.$ac_ext <<_ACEOF |
| 17663 | /* confdefs.h. */ |
| 17664 | _ACEOF |
| 17665 | cat confdefs.h >>conftest.$ac_ext |
| 17666 | cat >>conftest.$ac_ext <<_ACEOF |
| 17667 | /* end confdefs.h. */ |
| 17668 | $ac_includes_default |
| 17669 | #include <valgrind/valgrind.h> |
| 17670 | _ACEOF |
| 17671 | rm -f conftest.$ac_objext |
| 17672 | if { (ac_try="$ac_compile" |
| 17673 | case "(($ac_try" in |
| 17674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17675 | *) ac_try_echo=$ac_try;; |
| 17676 | esac |
| 17677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17678 | (eval "$ac_compile") 2>conftest.er1 |
| 17679 | ac_status=$? |
| 17680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17681 | rm -f conftest.er1 |
| 17682 | cat conftest.err >&5 |
| 17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17684 | (exit $ac_status); } && { |
| 17685 | test -z "$ac_c_werror_flag" || |
| 17686 | test ! -s conftest.err |
| 17687 | } && test -s conftest.$ac_objext; then |
| 17688 | ac_header_compiler=yes |
| 17689 | else |
| 17690 | echo "$as_me: failed program was:" >&5 |
| 17691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17692 | |
| 17693 | ac_header_compiler=no |
| 17694 | fi |
| 17695 | |
| 17696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17697 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17698 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17699 | |
| 17700 | # Is the header present? |
| 17701 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17702 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17703 | cat >conftest.$ac_ext <<_ACEOF |
| 17704 | /* confdefs.h. */ |
| 17705 | _ACEOF |
| 17706 | cat confdefs.h >>conftest.$ac_ext |
| 17707 | cat >>conftest.$ac_ext <<_ACEOF |
| 17708 | /* end confdefs.h. */ |
| 17709 | #include <valgrind/valgrind.h> |
| 17710 | _ACEOF |
| 17711 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17712 | case "(($ac_try" in |
| 17713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17714 | *) ac_try_echo=$ac_try;; |
| 17715 | esac |
| 17716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17717 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17718 | ac_status=$? |
| 17719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17720 | rm -f conftest.er1 |
| 17721 | cat conftest.err >&5 |
| 17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17723 | (exit $ac_status); } >/dev/null && { |
| 17724 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17725 | test ! -s conftest.err |
| 17726 | }; then |
| 17727 | ac_header_preproc=yes |
| 17728 | else |
| 17729 | echo "$as_me: failed program was:" >&5 |
| 17730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17731 | |
| 17732 | ac_header_preproc=no |
| 17733 | fi |
| 17734 | |
| 17735 | rm -f conftest.err conftest.$ac_ext |
| 17736 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17737 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17738 | |
| 17739 | # So? What about this header? |
| 17740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17741 | yes:no: ) |
| 17742 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17743 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17744 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17745 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17746 | ac_header_preproc=yes |
| 17747 | ;; |
| 17748 | no:yes:* ) |
| 17749 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17750 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17751 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17752 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17753 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17754 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17755 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17756 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17757 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17758 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17759 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17760 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17761 | ( cat <<\_ASBOX |
| 17762 | ## -------------------------------------- ## |
| 17763 | ## Report this to http://bugs.python.org/ ## |
| 17764 | ## -------------------------------------- ## |
| 17765 | _ASBOX |
| 17766 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17767 | ;; |
| 17768 | esac |
| 17769 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17770 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17771 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17773 | else |
| 17774 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17775 | fi |
| 17776 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17777 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17778 | |
| 17779 | fi |
| 17780 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17781 | |
| 17782 | cat >>confdefs.h <<\_ACEOF |
| 17783 | #define WITH_VALGRIND 1 |
| 17784 | _ACEOF |
| 17785 | |
| 17786 | else |
| 17787 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17788 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17789 | { (exit 1); exit 1; }; } |
| 17790 | |
| 17791 | fi |
| 17792 | |
| 17793 | |
| 17794 | fi |
| 17795 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17796 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17797 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17798 | 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] | 17799 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17800 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17801 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17802 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17803 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17804 | then |
| 17805 | |
| 17806 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17807 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17808 | _ACEOF |
| 17809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17810 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17811 | echo "${ECHO_T}yes" >&6; } |
| 17812 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17813 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17814 | fi |
| 17815 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17816 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17817 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17818 | fi |
| 17819 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17820 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17821 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17822 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17823 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17824 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17825 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17826 | # 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] | 17827 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17828 | for ac_func in dlopen |
| 17829 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17831 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17833 | 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] | 17834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17837 | /* confdefs.h. */ |
| 17838 | _ACEOF |
| 17839 | cat confdefs.h >>conftest.$ac_ext |
| 17840 | cat >>conftest.$ac_ext <<_ACEOF |
| 17841 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17844 | #define $ac_func innocuous_$ac_func |
| 17845 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17846 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17847 | which can conflict with char $ac_func (); below. |
| 17848 | 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] | 17849 | <limits.h> exists even on freestanding compilers. */ |
| 17850 | |
| 17851 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17852 | # include <limits.h> |
| 17853 | #else |
| 17854 | # include <assert.h> |
| 17855 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17856 | |
| 17857 | #undef $ac_func |
| 17858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17859 | /* Override any GCC internal prototype to avoid an error. |
| 17860 | Use char because int might match the return type of a GCC |
| 17861 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | #ifdef __cplusplus |
| 17863 | extern "C" |
| 17864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17865 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17866 | /* The GNU C library defines this for functions which it implements |
| 17867 | to always fail with ENOSYS. Some functions are actually named |
| 17868 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17869 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17870 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17871 | #endif |
| 17872 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17873 | int |
| 17874 | main () |
| 17875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17876 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | ; |
| 17878 | return 0; |
| 17879 | } |
| 17880 | _ACEOF |
| 17881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17882 | if { (ac_try="$ac_link" |
| 17883 | case "(($ac_try" in |
| 17884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17885 | *) ac_try_echo=$ac_try;; |
| 17886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17888 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17891 | rm -f conftest.er1 |
| 17892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17894 | (exit $ac_status); } && { |
| 17895 | test -z "$ac_c_werror_flag" || |
| 17896 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17897 | } && test -s conftest$ac_exeext && |
| 17898 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17904 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17906 | |
| 17907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17908 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17910 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17911 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17912 | echo "${ECHO_T}$ac_res" >&6; } |
| 17913 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17914 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17916 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17917 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17918 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17919 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17920 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17921 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17922 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17923 | # loading of modules. |
| 17924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17925 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17926 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17927 | if test -z "$DYNLOADFILE" |
| 17928 | then |
| 17929 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17930 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17931 | if test "$ac_cv_func_dlopen" = yes |
| 17932 | then DYNLOADFILE="dynload_shlib.o" |
| 17933 | else DYNLOADFILE="dynload_aix.o" |
| 17934 | fi |
| 17935 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17936 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 17937 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 17938 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17939 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17940 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17941 | *) |
| 17942 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17943 | # out any dynamic loading |
| 17944 | if test "$ac_cv_func_dlopen" = yes |
| 17945 | then DYNLOADFILE="dynload_shlib.o" |
| 17946 | else DYNLOADFILE="dynload_stub.o" |
| 17947 | fi |
| 17948 | ;; |
| 17949 | esac |
| 17950 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17951 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17952 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17953 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17954 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | |
| 17956 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17957 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17958 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17959 | |
| 17960 | fi |
| 17961 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17962 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17965 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17966 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17967 | if test -z "$MACHDEP_OBJS" |
| 17968 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17969 | MACHDEP_OBJS=$extra_machdep_objs |
| 17970 | else |
| 17971 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17973 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17974 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17975 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17976 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | |
| 17978 | |
| 17979 | |
| 17980 | |
| 17981 | |
| 17982 | |
| 17983 | |
| 17984 | |
| 17985 | |
| 17986 | |
| 17987 | |
| 17988 | |
| 17989 | |
| 17990 | |
| 17991 | |
| 17992 | |
| 17993 | |
| 17994 | |
| 17995 | |
| 17996 | |
| 17997 | |
| 17998 | |
| 17999 | |
| 18000 | |
| 18001 | |
| 18002 | |
| 18003 | |
| 18004 | |
| 18005 | |
| 18006 | |
| 18007 | |
| 18008 | |
| 18009 | |
| 18010 | |
| 18011 | |
| 18012 | |
| 18013 | |
| 18014 | |
| 18015 | |
| 18016 | |
| 18017 | |
| 18018 | |
| 18019 | |
| 18020 | |
| 18021 | |
| 18022 | |
| 18023 | |
| 18024 | |
| 18025 | |
| 18026 | |
| 18027 | |
| 18028 | |
| 18029 | |
| 18030 | |
| 18031 | |
| 18032 | |
| 18033 | |
| 18034 | |
| 18035 | |
| 18036 | |
| 18037 | |
| 18038 | |
| 18039 | |
| 18040 | |
| 18041 | |
| 18042 | |
| 18043 | |
| 18044 | |
| 18045 | |
| 18046 | |
| 18047 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18048 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18049 | |
| 18050 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18051 | |
| 18052 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18053 | |
| 18054 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18055 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18056 | |
| 18057 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18058 | |
| 18059 | |
| 18060 | |
| 18061 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18062 | |
| 18063 | |
| 18064 | |
| 18065 | |
| 18066 | |
| 18067 | |
| 18068 | |
| 18069 | |
| 18070 | |
| 18071 | |
| 18072 | |
| 18073 | |
| 18074 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18075 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18076 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18077 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18078 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18079 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18080 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18081 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18082 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18083 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18084 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18085 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18086 | setlocale setregid setreuid setresuid setresgid \ |
| 18087 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18088 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18089 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18090 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18091 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18093 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18095 | 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] | 18096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18099 | /* confdefs.h. */ |
| 18100 | _ACEOF |
| 18101 | cat confdefs.h >>conftest.$ac_ext |
| 18102 | cat >>conftest.$ac_ext <<_ACEOF |
| 18103 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18106 | #define $ac_func innocuous_$ac_func |
| 18107 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18108 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18109 | which can conflict with char $ac_func (); below. |
| 18110 | 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] | 18111 | <limits.h> exists even on freestanding compilers. */ |
| 18112 | |
| 18113 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18114 | # include <limits.h> |
| 18115 | #else |
| 18116 | # include <assert.h> |
| 18117 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18118 | |
| 18119 | #undef $ac_func |
| 18120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18121 | /* Override any GCC internal prototype to avoid an error. |
| 18122 | Use char because int might match the return type of a GCC |
| 18123 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18124 | #ifdef __cplusplus |
| 18125 | extern "C" |
| 18126 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18127 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18128 | /* The GNU C library defines this for functions which it implements |
| 18129 | to always fail with ENOSYS. Some functions are actually named |
| 18130 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18131 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18132 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18133 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18134 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18135 | int |
| 18136 | main () |
| 18137 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18138 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18139 | ; |
| 18140 | return 0; |
| 18141 | } |
| 18142 | _ACEOF |
| 18143 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18144 | if { (ac_try="$ac_link" |
| 18145 | case "(($ac_try" in |
| 18146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18147 | *) ac_try_echo=$ac_try;; |
| 18148 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18150 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18151 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18153 | rm -f conftest.er1 |
| 18154 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18156 | (exit $ac_status); } && { |
| 18157 | test -z "$ac_c_werror_flag" || |
| 18158 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18159 | } && test -s conftest$ac_exeext && |
| 18160 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18162 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18165 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18166 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18167 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18168 | |
| 18169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18170 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18171 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18172 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18173 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18174 | echo "${ECHO_T}$ac_res" >&6; } |
| 18175 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18178 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18179 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18180 | fi |
| 18181 | done |
| 18182 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18183 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18184 | # For some functions, having a definition is not sufficient, since |
| 18185 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18186 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18187 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18188 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18189 | /* confdefs.h. */ |
| 18190 | _ACEOF |
| 18191 | cat confdefs.h >>conftest.$ac_ext |
| 18192 | cat >>conftest.$ac_ext <<_ACEOF |
| 18193 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18194 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18195 | int |
| 18196 | main () |
| 18197 | { |
| 18198 | void *x=chroot |
| 18199 | ; |
| 18200 | return 0; |
| 18201 | } |
| 18202 | _ACEOF |
| 18203 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18204 | if { (ac_try="$ac_compile" |
| 18205 | case "(($ac_try" in |
| 18206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18207 | *) ac_try_echo=$ac_try;; |
| 18208 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18210 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18213 | rm -f conftest.er1 |
| 18214 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18216 | (exit $ac_status); } && { |
| 18217 | test -z "$ac_c_werror_flag" || |
| 18218 | test ! -s conftest.err |
| 18219 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18220 | |
| 18221 | cat >>confdefs.h <<\_ACEOF |
| 18222 | #define HAVE_CHROOT 1 |
| 18223 | _ACEOF |
| 18224 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18225 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18226 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18227 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18230 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18232 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18233 | |
| 18234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18235 | |
| 18236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18237 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18238 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18240 | /* confdefs.h. */ |
| 18241 | _ACEOF |
| 18242 | cat confdefs.h >>conftest.$ac_ext |
| 18243 | cat >>conftest.$ac_ext <<_ACEOF |
| 18244 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18245 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18246 | int |
| 18247 | main () |
| 18248 | { |
| 18249 | void *x=link |
| 18250 | ; |
| 18251 | return 0; |
| 18252 | } |
| 18253 | _ACEOF |
| 18254 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18255 | if { (ac_try="$ac_compile" |
| 18256 | case "(($ac_try" in |
| 18257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18258 | *) ac_try_echo=$ac_try;; |
| 18259 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18261 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18264 | rm -f conftest.er1 |
| 18265 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18267 | (exit $ac_status); } && { |
| 18268 | test -z "$ac_c_werror_flag" || |
| 18269 | test ! -s conftest.err |
| 18270 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18271 | |
| 18272 | cat >>confdefs.h <<\_ACEOF |
| 18273 | #define HAVE_LINK 1 |
| 18274 | _ACEOF |
| 18275 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18276 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18277 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18278 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18281 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18283 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18284 | |
| 18285 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18286 | |
| 18287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18288 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18289 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18290 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18291 | /* confdefs.h. */ |
| 18292 | _ACEOF |
| 18293 | cat confdefs.h >>conftest.$ac_ext |
| 18294 | cat >>conftest.$ac_ext <<_ACEOF |
| 18295 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18296 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18297 | int |
| 18298 | main () |
| 18299 | { |
| 18300 | void *x=symlink |
| 18301 | ; |
| 18302 | return 0; |
| 18303 | } |
| 18304 | _ACEOF |
| 18305 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18306 | if { (ac_try="$ac_compile" |
| 18307 | case "(($ac_try" in |
| 18308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18309 | *) ac_try_echo=$ac_try;; |
| 18310 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18312 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18315 | rm -f conftest.er1 |
| 18316 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18318 | (exit $ac_status); } && { |
| 18319 | test -z "$ac_c_werror_flag" || |
| 18320 | test ! -s conftest.err |
| 18321 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18322 | |
| 18323 | cat >>confdefs.h <<\_ACEOF |
| 18324 | #define HAVE_SYMLINK 1 |
| 18325 | _ACEOF |
| 18326 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18327 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18328 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18329 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18332 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18334 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18335 | |
| 18336 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18337 | |
| 18338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18339 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18340 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18342 | /* confdefs.h. */ |
| 18343 | _ACEOF |
| 18344 | cat confdefs.h >>conftest.$ac_ext |
| 18345 | cat >>conftest.$ac_ext <<_ACEOF |
| 18346 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18347 | #include <unistd.h> |
| 18348 | int |
| 18349 | main () |
| 18350 | { |
| 18351 | void *x=fchdir |
| 18352 | ; |
| 18353 | return 0; |
| 18354 | } |
| 18355 | _ACEOF |
| 18356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18357 | if { (ac_try="$ac_compile" |
| 18358 | case "(($ac_try" in |
| 18359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18360 | *) ac_try_echo=$ac_try;; |
| 18361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18366 | rm -f conftest.er1 |
| 18367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18369 | (exit $ac_status); } && { |
| 18370 | test -z "$ac_c_werror_flag" || |
| 18371 | test ! -s conftest.err |
| 18372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18373 | |
| 18374 | cat >>confdefs.h <<\_ACEOF |
| 18375 | #define HAVE_FCHDIR 1 |
| 18376 | _ACEOF |
| 18377 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18378 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18379 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18380 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18383 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18384 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18385 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18386 | |
| 18387 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18388 | |
| 18389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18390 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18391 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18392 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18393 | /* confdefs.h. */ |
| 18394 | _ACEOF |
| 18395 | cat confdefs.h >>conftest.$ac_ext |
| 18396 | cat >>conftest.$ac_ext <<_ACEOF |
| 18397 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18398 | #include <unistd.h> |
| 18399 | int |
| 18400 | main () |
| 18401 | { |
| 18402 | void *x=fsync |
| 18403 | ; |
| 18404 | return 0; |
| 18405 | } |
| 18406 | _ACEOF |
| 18407 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18408 | if { (ac_try="$ac_compile" |
| 18409 | case "(($ac_try" in |
| 18410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18411 | *) ac_try_echo=$ac_try;; |
| 18412 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18414 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18415 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18417 | rm -f conftest.er1 |
| 18418 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18420 | (exit $ac_status); } && { |
| 18421 | test -z "$ac_c_werror_flag" || |
| 18422 | test ! -s conftest.err |
| 18423 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18424 | |
| 18425 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18426 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18427 | _ACEOF |
| 18428 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18429 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18430 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18431 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18434 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18435 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18436 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18437 | |
| 18438 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18439 | |
| 18440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18441 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18442 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18444 | /* confdefs.h. */ |
| 18445 | _ACEOF |
| 18446 | cat confdefs.h >>conftest.$ac_ext |
| 18447 | cat >>conftest.$ac_ext <<_ACEOF |
| 18448 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18449 | #include <unistd.h> |
| 18450 | int |
| 18451 | main () |
| 18452 | { |
| 18453 | void *x=fdatasync |
| 18454 | ; |
| 18455 | return 0; |
| 18456 | } |
| 18457 | _ACEOF |
| 18458 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18459 | if { (ac_try="$ac_compile" |
| 18460 | case "(($ac_try" in |
| 18461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18462 | *) ac_try_echo=$ac_try;; |
| 18463 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18465 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18468 | rm -f conftest.er1 |
| 18469 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18471 | (exit $ac_status); } && { |
| 18472 | test -z "$ac_c_werror_flag" || |
| 18473 | test ! -s conftest.err |
| 18474 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18475 | |
| 18476 | cat >>confdefs.h <<\_ACEOF |
| 18477 | #define HAVE_FDATASYNC 1 |
| 18478 | _ACEOF |
| 18479 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18480 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18481 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18482 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18485 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18487 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18488 | |
| 18489 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18490 | |
| 18491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18492 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18493 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18494 | cat >conftest.$ac_ext <<_ACEOF |
| 18495 | /* confdefs.h. */ |
| 18496 | _ACEOF |
| 18497 | cat confdefs.h >>conftest.$ac_ext |
| 18498 | cat >>conftest.$ac_ext <<_ACEOF |
| 18499 | /* end confdefs.h. */ |
| 18500 | #include <sys/epoll.h> |
| 18501 | int |
| 18502 | main () |
| 18503 | { |
| 18504 | void *x=epoll_create |
| 18505 | ; |
| 18506 | return 0; |
| 18507 | } |
| 18508 | _ACEOF |
| 18509 | rm -f conftest.$ac_objext |
| 18510 | if { (ac_try="$ac_compile" |
| 18511 | case "(($ac_try" in |
| 18512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18513 | *) ac_try_echo=$ac_try;; |
| 18514 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18516 | (eval "$ac_compile") 2>conftest.er1 |
| 18517 | ac_status=$? |
| 18518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18519 | rm -f conftest.er1 |
| 18520 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18522 | (exit $ac_status); } && { |
| 18523 | test -z "$ac_c_werror_flag" || |
| 18524 | test ! -s conftest.err |
| 18525 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18526 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18527 | cat >>confdefs.h <<\_ACEOF |
| 18528 | #define HAVE_EPOLL 1 |
| 18529 | _ACEOF |
| 18530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18531 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18532 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18533 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18534 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18536 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18538 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18539 | |
| 18540 | fi |
| 18541 | |
| 18542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18543 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18544 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18545 | cat >conftest.$ac_ext <<_ACEOF |
| 18546 | /* confdefs.h. */ |
| 18547 | _ACEOF |
| 18548 | cat confdefs.h >>conftest.$ac_ext |
| 18549 | cat >>conftest.$ac_ext <<_ACEOF |
| 18550 | /* end confdefs.h. */ |
| 18551 | |
| 18552 | #include <sys/types.h> |
| 18553 | #include <sys/event.h> |
| 18554 | |
| 18555 | int |
| 18556 | main () |
| 18557 | { |
| 18558 | int x=kqueue() |
| 18559 | ; |
| 18560 | return 0; |
| 18561 | } |
| 18562 | _ACEOF |
| 18563 | rm -f conftest.$ac_objext |
| 18564 | if { (ac_try="$ac_compile" |
| 18565 | case "(($ac_try" in |
| 18566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18567 | *) ac_try_echo=$ac_try;; |
| 18568 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18570 | (eval "$ac_compile") 2>conftest.er1 |
| 18571 | ac_status=$? |
| 18572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18573 | rm -f conftest.er1 |
| 18574 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18576 | (exit $ac_status); } && { |
| 18577 | test -z "$ac_c_werror_flag" || |
| 18578 | test ! -s conftest.err |
| 18579 | } && test -s conftest.$ac_objext; then |
| 18580 | |
| 18581 | cat >>confdefs.h <<\_ACEOF |
| 18582 | #define HAVE_KQUEUE 1 |
| 18583 | _ACEOF |
| 18584 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18585 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18586 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18587 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18588 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18590 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18592 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18593 | |
| 18594 | fi |
| 18595 | |
| 18596 | 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] | 18597 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18598 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18599 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18600 | # address to avoid compiler warnings and potential miscompilations |
| 18601 | # because of the missing prototypes. |
| 18602 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18603 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18604 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18606 | /* confdefs.h. */ |
| 18607 | _ACEOF |
| 18608 | cat confdefs.h >>conftest.$ac_ext |
| 18609 | cat >>conftest.$ac_ext <<_ACEOF |
| 18610 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18611 | |
| 18612 | #include "confdefs.h" |
| 18613 | #include <stdio.h> |
| 18614 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18615 | int |
| 18616 | main () |
| 18617 | { |
| 18618 | void* p = ctermid_r |
| 18619 | ; |
| 18620 | return 0; |
| 18621 | } |
| 18622 | _ACEOF |
| 18623 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18624 | if { (ac_try="$ac_compile" |
| 18625 | case "(($ac_try" in |
| 18626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18627 | *) ac_try_echo=$ac_try;; |
| 18628 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18630 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18633 | rm -f conftest.er1 |
| 18634 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18636 | (exit $ac_status); } && { |
| 18637 | test -z "$ac_c_werror_flag" || |
| 18638 | test ! -s conftest.err |
| 18639 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18640 | |
| 18641 | cat >>confdefs.h <<\_ACEOF |
| 18642 | #define HAVE_CTERMID_R 1 |
| 18643 | _ACEOF |
| 18644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18645 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18646 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18650 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18652 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18653 | |
| 18654 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18657 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18658 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18659 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18660 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18661 | /* confdefs.h. */ |
| 18662 | _ACEOF |
| 18663 | cat confdefs.h >>conftest.$ac_ext |
| 18664 | cat >>conftest.$ac_ext <<_ACEOF |
| 18665 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18666 | |
| 18667 | #include "confdefs.h" |
| 18668 | #include <sys/file.h> |
| 18669 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18670 | int |
| 18671 | main () |
| 18672 | { |
| 18673 | void* p = flock |
| 18674 | ; |
| 18675 | return 0; |
| 18676 | } |
| 18677 | _ACEOF |
| 18678 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18679 | if { (ac_try="$ac_compile" |
| 18680 | case "(($ac_try" in |
| 18681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18682 | *) ac_try_echo=$ac_try;; |
| 18683 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18685 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18686 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18688 | rm -f conftest.er1 |
| 18689 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18691 | (exit $ac_status); } && { |
| 18692 | test -z "$ac_c_werror_flag" || |
| 18693 | test ! -s conftest.err |
| 18694 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18695 | |
| 18696 | cat >>confdefs.h <<\_ACEOF |
| 18697 | #define HAVE_FLOCK 1 |
| 18698 | _ACEOF |
| 18699 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18700 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18701 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18702 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18705 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18707 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18708 | |
| 18709 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18710 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18712 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18713 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18714 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18716 | /* confdefs.h. */ |
| 18717 | _ACEOF |
| 18718 | cat confdefs.h >>conftest.$ac_ext |
| 18719 | cat >>conftest.$ac_ext <<_ACEOF |
| 18720 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18721 | |
| 18722 | #include "confdefs.h" |
| 18723 | #include <unistd.h> |
| 18724 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18725 | int |
| 18726 | main () |
| 18727 | { |
| 18728 | void* p = getpagesize |
| 18729 | ; |
| 18730 | return 0; |
| 18731 | } |
| 18732 | _ACEOF |
| 18733 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18734 | if { (ac_try="$ac_compile" |
| 18735 | case "(($ac_try" in |
| 18736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18737 | *) ac_try_echo=$ac_try;; |
| 18738 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18740 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18741 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18743 | rm -f conftest.er1 |
| 18744 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18746 | (exit $ac_status); } && { |
| 18747 | test -z "$ac_c_werror_flag" || |
| 18748 | test ! -s conftest.err |
| 18749 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18750 | |
| 18751 | cat >>confdefs.h <<\_ACEOF |
| 18752 | #define HAVE_GETPAGESIZE 1 |
| 18753 | _ACEOF |
| 18754 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18755 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18756 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18757 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18760 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18762 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18763 | |
| 18764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18765 | |
| 18766 | 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] | 18767 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18768 | for ac_prog in true |
| 18769 | do |
| 18770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18771 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18774 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18776 | else |
| 18777 | if test -n "$TRUE"; then |
| 18778 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18779 | else |
| 18780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18781 | for as_dir in $PATH |
| 18782 | do |
| 18783 | IFS=$as_save_IFS |
| 18784 | test -z "$as_dir" && as_dir=. |
| 18785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18786 | 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] | 18787 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18788 | 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] | 18789 | break 2 |
| 18790 | fi |
| 18791 | done |
| 18792 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18793 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18794 | |
| 18795 | fi |
| 18796 | fi |
| 18797 | TRUE=$ac_cv_prog_TRUE |
| 18798 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18799 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18800 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18801 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18803 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18804 | fi |
| 18805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18806 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18807 | test -n "$TRUE" && break |
| 18808 | done |
| 18809 | test -n "$TRUE" || TRUE="/bin/true" |
| 18810 | |
| 18811 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18812 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18813 | 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] | 18814 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18816 | else |
| 18817 | ac_check_lib_save_LIBS=$LIBS |
| 18818 | LIBS="-lc $LIBS" |
| 18819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18820 | /* confdefs.h. */ |
| 18821 | _ACEOF |
| 18822 | cat confdefs.h >>conftest.$ac_ext |
| 18823 | cat >>conftest.$ac_ext <<_ACEOF |
| 18824 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18826 | /* Override any GCC internal prototype to avoid an error. |
| 18827 | Use char because int might match the return type of a GCC |
| 18828 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18829 | #ifdef __cplusplus |
| 18830 | extern "C" |
| 18831 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18832 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18833 | int |
| 18834 | main () |
| 18835 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18836 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18837 | ; |
| 18838 | return 0; |
| 18839 | } |
| 18840 | _ACEOF |
| 18841 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18842 | if { (ac_try="$ac_link" |
| 18843 | case "(($ac_try" in |
| 18844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18845 | *) ac_try_echo=$ac_try;; |
| 18846 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18848 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18851 | rm -f conftest.er1 |
| 18852 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18854 | (exit $ac_status); } && { |
| 18855 | test -z "$ac_c_werror_flag" || |
| 18856 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18857 | } && test -s conftest$ac_exeext && |
| 18858 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18859 | ac_cv_lib_c_inet_aton=yes |
| 18860 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18864 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18865 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18866 | |
| 18867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18868 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18869 | LIBS=$ac_check_lib_save_LIBS |
| 18870 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18872 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 18873 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18874 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18875 | else |
| 18876 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18877 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18878 | 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] | 18879 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18881 | else |
| 18882 | ac_check_lib_save_LIBS=$LIBS |
| 18883 | LIBS="-lresolv $LIBS" |
| 18884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18885 | /* confdefs.h. */ |
| 18886 | _ACEOF |
| 18887 | cat confdefs.h >>conftest.$ac_ext |
| 18888 | cat >>conftest.$ac_ext <<_ACEOF |
| 18889 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18890 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18891 | /* Override any GCC internal prototype to avoid an error. |
| 18892 | Use char because int might match the return type of a GCC |
| 18893 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18894 | #ifdef __cplusplus |
| 18895 | extern "C" |
| 18896 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18897 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18898 | int |
| 18899 | main () |
| 18900 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18901 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18902 | ; |
| 18903 | return 0; |
| 18904 | } |
| 18905 | _ACEOF |
| 18906 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18907 | if { (ac_try="$ac_link" |
| 18908 | case "(($ac_try" in |
| 18909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18910 | *) ac_try_echo=$ac_try;; |
| 18911 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18913 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18914 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18916 | rm -f conftest.er1 |
| 18917 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18919 | (exit $ac_status); } && { |
| 18920 | test -z "$ac_c_werror_flag" || |
| 18921 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18922 | } && test -s conftest$ac_exeext && |
| 18923 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18924 | ac_cv_lib_resolv_inet_aton=yes |
| 18925 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18929 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18931 | |
| 18932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18933 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18934 | LIBS=$ac_check_lib_save_LIBS |
| 18935 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18936 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18937 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18938 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18939 | cat >>confdefs.h <<_ACEOF |
| 18940 | #define HAVE_LIBRESOLV 1 |
| 18941 | _ACEOF |
| 18942 | |
| 18943 | LIBS="-lresolv $LIBS" |
| 18944 | |
| 18945 | fi |
| 18946 | |
| 18947 | |
| 18948 | fi |
| 18949 | |
| 18950 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18951 | # On Tru64, chflags seems to be present, but calling it will |
| 18952 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18953 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18954 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18955 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18957 | else |
| 18958 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18959 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18960 | else |
| 18961 | cat >conftest.$ac_ext <<_ACEOF |
| 18962 | /* confdefs.h. */ |
| 18963 | _ACEOF |
| 18964 | cat confdefs.h >>conftest.$ac_ext |
| 18965 | cat >>conftest.$ac_ext <<_ACEOF |
| 18966 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18967 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18968 | #include <sys/stat.h> |
| 18969 | #include <unistd.h> |
| 18970 | int main(int argc, char*argv[]) |
| 18971 | { |
| 18972 | if(chflags(argv[0], 0) != 0) |
| 18973 | return 1; |
| 18974 | return 0; |
| 18975 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18976 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18977 | _ACEOF |
| 18978 | rm -f conftest$ac_exeext |
| 18979 | if { (ac_try="$ac_link" |
| 18980 | case "(($ac_try" in |
| 18981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18982 | *) ac_try_echo=$ac_try;; |
| 18983 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18985 | (eval "$ac_link") 2>&5 |
| 18986 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18989 | { (case "(($ac_try" in |
| 18990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18991 | *) ac_try_echo=$ac_try;; |
| 18992 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18994 | (eval "$ac_try") 2>&5 |
| 18995 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18997 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18998 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18999 | else |
| 19000 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19001 | echo "$as_me: failed program was:" >&5 |
| 19002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19003 | |
| 19004 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19005 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19006 | fi |
| 19007 | 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] | 19008 | fi |
| 19009 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19010 | |
| 19011 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19012 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19013 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19014 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19015 | if test "$ac_cv_have_chflags" = cross ; then |
| 19016 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19017 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19018 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19020 | else |
| 19021 | cat >conftest.$ac_ext <<_ACEOF |
| 19022 | /* confdefs.h. */ |
| 19023 | _ACEOF |
| 19024 | cat confdefs.h >>conftest.$ac_ext |
| 19025 | cat >>conftest.$ac_ext <<_ACEOF |
| 19026 | /* end confdefs.h. */ |
| 19027 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19029 | #define chflags innocuous_chflags |
| 19030 | |
| 19031 | /* System header to define __stub macros and hopefully few prototypes, |
| 19032 | which can conflict with char chflags (); below. |
| 19033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19034 | <limits.h> exists even on freestanding compilers. */ |
| 19035 | |
| 19036 | #ifdef __STDC__ |
| 19037 | # include <limits.h> |
| 19038 | #else |
| 19039 | # include <assert.h> |
| 19040 | #endif |
| 19041 | |
| 19042 | #undef chflags |
| 19043 | |
| 19044 | /* Override any GCC internal prototype to avoid an error. |
| 19045 | Use char because int might match the return type of a GCC |
| 19046 | builtin and then its argument prototype would still apply. */ |
| 19047 | #ifdef __cplusplus |
| 19048 | extern "C" |
| 19049 | #endif |
| 19050 | char chflags (); |
| 19051 | /* The GNU C library defines this for functions which it implements |
| 19052 | to always fail with ENOSYS. Some functions are actually named |
| 19053 | something starting with __ and the normal name is an alias. */ |
| 19054 | #if defined __stub_chflags || defined __stub___chflags |
| 19055 | choke me |
| 19056 | #endif |
| 19057 | |
| 19058 | int |
| 19059 | main () |
| 19060 | { |
| 19061 | return chflags (); |
| 19062 | ; |
| 19063 | return 0; |
| 19064 | } |
| 19065 | _ACEOF |
| 19066 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19067 | if { (ac_try="$ac_link" |
| 19068 | case "(($ac_try" in |
| 19069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19070 | *) ac_try_echo=$ac_try;; |
| 19071 | esac |
| 19072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19073 | (eval "$ac_link") 2>conftest.er1 |
| 19074 | ac_status=$? |
| 19075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19076 | rm -f conftest.er1 |
| 19077 | cat conftest.err >&5 |
| 19078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19079 | (exit $ac_status); } && { |
| 19080 | test -z "$ac_c_werror_flag" || |
| 19081 | test ! -s conftest.err |
| 19082 | } && test -s conftest$ac_exeext && |
| 19083 | $as_test_x conftest$ac_exeext; then |
| 19084 | ac_cv_func_chflags=yes |
| 19085 | else |
| 19086 | echo "$as_me: failed program was:" >&5 |
| 19087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19088 | |
| 19089 | ac_cv_func_chflags=no |
| 19090 | fi |
| 19091 | |
| 19092 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19093 | conftest$ac_exeext conftest.$ac_ext |
| 19094 | fi |
| 19095 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19096 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19097 | if test $ac_cv_func_chflags = yes; then |
| 19098 | ac_cv_have_chflags="yes" |
| 19099 | else |
| 19100 | ac_cv_have_chflags="no" |
| 19101 | fi |
| 19102 | |
| 19103 | fi |
| 19104 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19105 | |
| 19106 | cat >>confdefs.h <<\_ACEOF |
| 19107 | #define HAVE_CHFLAGS 1 |
| 19108 | _ACEOF |
| 19109 | |
| 19110 | fi |
| 19111 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19112 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19113 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19114 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19116 | else |
| 19117 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19118 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19119 | else |
| 19120 | cat >conftest.$ac_ext <<_ACEOF |
| 19121 | /* confdefs.h. */ |
| 19122 | _ACEOF |
| 19123 | cat confdefs.h >>conftest.$ac_ext |
| 19124 | cat >>conftest.$ac_ext <<_ACEOF |
| 19125 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19126 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19127 | #include <sys/stat.h> |
| 19128 | #include <unistd.h> |
| 19129 | int main(int argc, char*argv[]) |
| 19130 | { |
| 19131 | if(lchflags(argv[0], 0) != 0) |
| 19132 | return 1; |
| 19133 | return 0; |
| 19134 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19135 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19136 | _ACEOF |
| 19137 | rm -f conftest$ac_exeext |
| 19138 | if { (ac_try="$ac_link" |
| 19139 | case "(($ac_try" in |
| 19140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19141 | *) ac_try_echo=$ac_try;; |
| 19142 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19144 | (eval "$ac_link") 2>&5 |
| 19145 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19148 | { (case "(($ac_try" in |
| 19149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19150 | *) ac_try_echo=$ac_try;; |
| 19151 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19153 | (eval "$ac_try") 2>&5 |
| 19154 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19156 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19157 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19158 | else |
| 19159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19160 | echo "$as_me: failed program was:" >&5 |
| 19161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19162 | |
| 19163 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19164 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19165 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19167 | fi |
| 19168 | |
| 19169 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19170 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19171 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19172 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19173 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19174 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19175 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19176 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19177 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19179 | else |
| 19180 | cat >conftest.$ac_ext <<_ACEOF |
| 19181 | /* confdefs.h. */ |
| 19182 | _ACEOF |
| 19183 | cat confdefs.h >>conftest.$ac_ext |
| 19184 | cat >>conftest.$ac_ext <<_ACEOF |
| 19185 | /* end confdefs.h. */ |
| 19186 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19188 | #define lchflags innocuous_lchflags |
| 19189 | |
| 19190 | /* System header to define __stub macros and hopefully few prototypes, |
| 19191 | which can conflict with char lchflags (); below. |
| 19192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19193 | <limits.h> exists even on freestanding compilers. */ |
| 19194 | |
| 19195 | #ifdef __STDC__ |
| 19196 | # include <limits.h> |
| 19197 | #else |
| 19198 | # include <assert.h> |
| 19199 | #endif |
| 19200 | |
| 19201 | #undef lchflags |
| 19202 | |
| 19203 | /* Override any GCC internal prototype to avoid an error. |
| 19204 | Use char because int might match the return type of a GCC |
| 19205 | builtin and then its argument prototype would still apply. */ |
| 19206 | #ifdef __cplusplus |
| 19207 | extern "C" |
| 19208 | #endif |
| 19209 | char lchflags (); |
| 19210 | /* The GNU C library defines this for functions which it implements |
| 19211 | to always fail with ENOSYS. Some functions are actually named |
| 19212 | something starting with __ and the normal name is an alias. */ |
| 19213 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19214 | choke me |
| 19215 | #endif |
| 19216 | |
| 19217 | int |
| 19218 | main () |
| 19219 | { |
| 19220 | return lchflags (); |
| 19221 | ; |
| 19222 | return 0; |
| 19223 | } |
| 19224 | _ACEOF |
| 19225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19226 | if { (ac_try="$ac_link" |
| 19227 | case "(($ac_try" in |
| 19228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19229 | *) ac_try_echo=$ac_try;; |
| 19230 | esac |
| 19231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19232 | (eval "$ac_link") 2>conftest.er1 |
| 19233 | ac_status=$? |
| 19234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19235 | rm -f conftest.er1 |
| 19236 | cat conftest.err >&5 |
| 19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19238 | (exit $ac_status); } && { |
| 19239 | test -z "$ac_c_werror_flag" || |
| 19240 | test ! -s conftest.err |
| 19241 | } && test -s conftest$ac_exeext && |
| 19242 | $as_test_x conftest$ac_exeext; then |
| 19243 | ac_cv_func_lchflags=yes |
| 19244 | else |
| 19245 | echo "$as_me: failed program was:" >&5 |
| 19246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19247 | |
| 19248 | ac_cv_func_lchflags=no |
| 19249 | fi |
| 19250 | |
| 19251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19252 | conftest$ac_exeext conftest.$ac_ext |
| 19253 | fi |
| 19254 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19255 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19256 | if test $ac_cv_func_lchflags = yes; then |
| 19257 | ac_cv_have_lchflags="yes" |
| 19258 | else |
| 19259 | ac_cv_have_lchflags="no" |
| 19260 | fi |
| 19261 | |
| 19262 | fi |
| 19263 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19264 | |
| 19265 | cat >>confdefs.h <<\_ACEOF |
| 19266 | #define HAVE_LCHFLAGS 1 |
| 19267 | _ACEOF |
| 19268 | |
| 19269 | fi |
| 19270 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19271 | case $ac_sys_system/$ac_sys_release in |
| 19272 | Darwin/*) |
| 19273 | _CUR_CFLAGS="${CFLAGS}" |
| 19274 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19275 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19276 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19277 | ;; |
| 19278 | esac |
| 19279 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19280 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19281 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19282 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19284 | else |
| 19285 | ac_check_lib_save_LIBS=$LIBS |
| 19286 | LIBS="-lz $LIBS" |
| 19287 | cat >conftest.$ac_ext <<_ACEOF |
| 19288 | /* confdefs.h. */ |
| 19289 | _ACEOF |
| 19290 | cat confdefs.h >>conftest.$ac_ext |
| 19291 | cat >>conftest.$ac_ext <<_ACEOF |
| 19292 | /* end confdefs.h. */ |
| 19293 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19294 | /* Override any GCC internal prototype to avoid an error. |
| 19295 | Use char because int might match the return type of a GCC |
| 19296 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19297 | #ifdef __cplusplus |
| 19298 | extern "C" |
| 19299 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19300 | char inflateCopy (); |
| 19301 | int |
| 19302 | main () |
| 19303 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19304 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19305 | ; |
| 19306 | return 0; |
| 19307 | } |
| 19308 | _ACEOF |
| 19309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19310 | if { (ac_try="$ac_link" |
| 19311 | case "(($ac_try" in |
| 19312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19313 | *) ac_try_echo=$ac_try;; |
| 19314 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19316 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19317 | ac_status=$? |
| 19318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19319 | rm -f conftest.er1 |
| 19320 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19322 | (exit $ac_status); } && { |
| 19323 | test -z "$ac_c_werror_flag" || |
| 19324 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19325 | } && test -s conftest$ac_exeext && |
| 19326 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19327 | ac_cv_lib_z_inflateCopy=yes |
| 19328 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19329 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19331 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19332 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19333 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19334 | |
| 19335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19336 | conftest$ac_exeext conftest.$ac_ext |
| 19337 | LIBS=$ac_check_lib_save_LIBS |
| 19338 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19339 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19340 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19341 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19342 | |
| 19343 | cat >>confdefs.h <<\_ACEOF |
| 19344 | #define HAVE_ZLIB_COPY 1 |
| 19345 | _ACEOF |
| 19346 | |
| 19347 | fi |
| 19348 | |
| 19349 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19350 | case $ac_sys_system/$ac_sys_release in |
| 19351 | Darwin/*) |
| 19352 | CFLAGS="${_CUR_CFLAGS}" |
| 19353 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19354 | ;; |
| 19355 | esac |
| 19356 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19357 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19358 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19360 | /* confdefs.h. */ |
| 19361 | _ACEOF |
| 19362 | cat confdefs.h >>conftest.$ac_ext |
| 19363 | cat >>conftest.$ac_ext <<_ACEOF |
| 19364 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19365 | |
| 19366 | #include "confdefs.h" |
| 19367 | #include <netdb.h> |
| 19368 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19369 | int |
| 19370 | main () |
| 19371 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19372 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19373 | ; |
| 19374 | return 0; |
| 19375 | } |
| 19376 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19377 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19378 | if { (ac_try="$ac_link" |
| 19379 | case "(($ac_try" in |
| 19380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19381 | *) ac_try_echo=$ac_try;; |
| 19382 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19384 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19387 | rm -f conftest.er1 |
| 19388 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19390 | (exit $ac_status); } && { |
| 19391 | test -z "$ac_c_werror_flag" || |
| 19392 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19393 | } && test -s conftest$ac_exeext && |
| 19394 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19395 | |
| 19396 | cat >>confdefs.h <<\_ACEOF |
| 19397 | #define HAVE_HSTRERROR 1 |
| 19398 | _ACEOF |
| 19399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19400 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19401 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19402 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19403 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19407 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19408 | |
| 19409 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19410 | |
| 19411 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19412 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19413 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19414 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19415 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19417 | /* confdefs.h. */ |
| 19418 | _ACEOF |
| 19419 | cat confdefs.h >>conftest.$ac_ext |
| 19420 | cat >>conftest.$ac_ext <<_ACEOF |
| 19421 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19422 | |
| 19423 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19424 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19425 | #include <sys/socket.h> |
| 19426 | #include <netinet/in.h> |
| 19427 | #include <arpa/inet.h> |
| 19428 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19429 | int |
| 19430 | main () |
| 19431 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19432 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19433 | ; |
| 19434 | return 0; |
| 19435 | } |
| 19436 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19437 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19438 | if { (ac_try="$ac_link" |
| 19439 | case "(($ac_try" in |
| 19440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19441 | *) ac_try_echo=$ac_try;; |
| 19442 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19444 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19447 | rm -f conftest.er1 |
| 19448 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19450 | (exit $ac_status); } && { |
| 19451 | test -z "$ac_c_werror_flag" || |
| 19452 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19453 | } && test -s conftest$ac_exeext && |
| 19454 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19455 | |
| 19456 | cat >>confdefs.h <<\_ACEOF |
| 19457 | #define HAVE_INET_ATON 1 |
| 19458 | _ACEOF |
| 19459 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19460 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19461 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19462 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19465 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19466 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19467 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19468 | |
| 19469 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19470 | |
| 19471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19472 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19473 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19474 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19475 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19477 | /* confdefs.h. */ |
| 19478 | _ACEOF |
| 19479 | cat confdefs.h >>conftest.$ac_ext |
| 19480 | cat >>conftest.$ac_ext <<_ACEOF |
| 19481 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19482 | |
| 19483 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19484 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19485 | #include <sys/socket.h> |
| 19486 | #include <netinet/in.h> |
| 19487 | #include <arpa/inet.h> |
| 19488 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19489 | int |
| 19490 | main () |
| 19491 | { |
| 19492 | void* p = inet_pton |
| 19493 | ; |
| 19494 | return 0; |
| 19495 | } |
| 19496 | _ACEOF |
| 19497 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19498 | if { (ac_try="$ac_compile" |
| 19499 | case "(($ac_try" in |
| 19500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19501 | *) ac_try_echo=$ac_try;; |
| 19502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19504 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19507 | rm -f conftest.er1 |
| 19508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19510 | (exit $ac_status); } && { |
| 19511 | test -z "$ac_c_werror_flag" || |
| 19512 | test ! -s conftest.err |
| 19513 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19514 | |
| 19515 | cat >>confdefs.h <<\_ACEOF |
| 19516 | #define HAVE_INET_PTON 1 |
| 19517 | _ACEOF |
| 19518 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19519 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19520 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19521 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19524 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19525 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19526 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19527 | |
| 19528 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19529 | |
| 19530 | 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] | 19531 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19532 | # 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] | 19533 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19534 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19536 | /* confdefs.h. */ |
| 19537 | _ACEOF |
| 19538 | cat confdefs.h >>conftest.$ac_ext |
| 19539 | cat >>conftest.$ac_ext <<_ACEOF |
| 19540 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19541 | |
| 19542 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19543 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19544 | #ifdef HAVE_GRP_H |
| 19545 | #include <grp.h> |
| 19546 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19547 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19548 | int |
| 19549 | main () |
| 19550 | { |
| 19551 | void* p = setgroups |
| 19552 | ; |
| 19553 | return 0; |
| 19554 | } |
| 19555 | _ACEOF |
| 19556 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19557 | if { (ac_try="$ac_compile" |
| 19558 | case "(($ac_try" in |
| 19559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19560 | *) ac_try_echo=$ac_try;; |
| 19561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19563 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19566 | rm -f conftest.er1 |
| 19567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19569 | (exit $ac_status); } && { |
| 19570 | test -z "$ac_c_werror_flag" || |
| 19571 | test ! -s conftest.err |
| 19572 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19573 | |
| 19574 | cat >>confdefs.h <<\_ACEOF |
| 19575 | #define HAVE_SETGROUPS 1 |
| 19576 | _ACEOF |
| 19577 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19578 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19579 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19581 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19585 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19586 | |
| 19587 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19588 | |
| 19589 | 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] | 19590 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19591 | # check for openpty and forkpty |
| 19592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19593 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19594 | for ac_func in openpty |
| 19595 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19596 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19597 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19598 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19599 | 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] | 19600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19603 | /* confdefs.h. */ |
| 19604 | _ACEOF |
| 19605 | cat confdefs.h >>conftest.$ac_ext |
| 19606 | cat >>conftest.$ac_ext <<_ACEOF |
| 19607 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19608 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19610 | #define $ac_func innocuous_$ac_func |
| 19611 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19612 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19613 | which can conflict with char $ac_func (); below. |
| 19614 | 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] | 19615 | <limits.h> exists even on freestanding compilers. */ |
| 19616 | |
| 19617 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19618 | # include <limits.h> |
| 19619 | #else |
| 19620 | # include <assert.h> |
| 19621 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19622 | |
| 19623 | #undef $ac_func |
| 19624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19625 | /* Override any GCC internal prototype to avoid an error. |
| 19626 | Use char because int might match the return type of a GCC |
| 19627 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19628 | #ifdef __cplusplus |
| 19629 | extern "C" |
| 19630 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19632 | /* The GNU C library defines this for functions which it implements |
| 19633 | to always fail with ENOSYS. Some functions are actually named |
| 19634 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19635 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19636 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19637 | #endif |
| 19638 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19639 | int |
| 19640 | main () |
| 19641 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19642 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | ; |
| 19644 | return 0; |
| 19645 | } |
| 19646 | _ACEOF |
| 19647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19648 | if { (ac_try="$ac_link" |
| 19649 | case "(($ac_try" in |
| 19650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19651 | *) ac_try_echo=$ac_try;; |
| 19652 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19654 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19657 | rm -f conftest.er1 |
| 19658 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19660 | (exit $ac_status); } && { |
| 19661 | test -z "$ac_c_werror_flag" || |
| 19662 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | } && test -s conftest$ac_exeext && |
| 19664 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19665 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19666 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19667 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19669 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19670 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19671 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19672 | |
| 19673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19674 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19675 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19676 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19678 | echo "${ECHO_T}$ac_res" >&6; } |
| 19679 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19680 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19682 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19683 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19685 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19686 | 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] | 19687 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19690 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19691 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19693 | /* confdefs.h. */ |
| 19694 | _ACEOF |
| 19695 | cat confdefs.h >>conftest.$ac_ext |
| 19696 | cat >>conftest.$ac_ext <<_ACEOF |
| 19697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19698 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19699 | /* Override any GCC internal prototype to avoid an error. |
| 19700 | Use char because int might match the return type of a GCC |
| 19701 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19702 | #ifdef __cplusplus |
| 19703 | extern "C" |
| 19704 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19705 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | int |
| 19707 | main () |
| 19708 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19709 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19710 | ; |
| 19711 | return 0; |
| 19712 | } |
| 19713 | _ACEOF |
| 19714 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19715 | if { (ac_try="$ac_link" |
| 19716 | case "(($ac_try" in |
| 19717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19718 | *) ac_try_echo=$ac_try;; |
| 19719 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19721 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19724 | rm -f conftest.er1 |
| 19725 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19727 | (exit $ac_status); } && { |
| 19728 | test -z "$ac_c_werror_flag" || |
| 19729 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19730 | } && test -s conftest$ac_exeext && |
| 19731 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19732 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19737 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19738 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19739 | |
| 19740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19741 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19742 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19743 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19744 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19745 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19746 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19747 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19748 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19749 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19750 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19751 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19752 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19753 | 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] | 19754 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19756 | else |
| 19757 | ac_check_lib_save_LIBS=$LIBS |
| 19758 | LIBS="-lbsd $LIBS" |
| 19759 | cat >conftest.$ac_ext <<_ACEOF |
| 19760 | /* confdefs.h. */ |
| 19761 | _ACEOF |
| 19762 | cat confdefs.h >>conftest.$ac_ext |
| 19763 | cat >>conftest.$ac_ext <<_ACEOF |
| 19764 | /* end confdefs.h. */ |
| 19765 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19766 | /* Override any GCC internal prototype to avoid an error. |
| 19767 | Use char because int might match the return type of a GCC |
| 19768 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19769 | #ifdef __cplusplus |
| 19770 | extern "C" |
| 19771 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19772 | char openpty (); |
| 19773 | int |
| 19774 | main () |
| 19775 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19776 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19777 | ; |
| 19778 | return 0; |
| 19779 | } |
| 19780 | _ACEOF |
| 19781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19782 | if { (ac_try="$ac_link" |
| 19783 | case "(($ac_try" in |
| 19784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19785 | *) ac_try_echo=$ac_try;; |
| 19786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19788 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19789 | ac_status=$? |
| 19790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19791 | rm -f conftest.er1 |
| 19792 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19794 | (exit $ac_status); } && { |
| 19795 | test -z "$ac_c_werror_flag" || |
| 19796 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19797 | } && test -s conftest$ac_exeext && |
| 19798 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19799 | ac_cv_lib_bsd_openpty=yes |
| 19800 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19801 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19804 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19805 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19806 | |
| 19807 | 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] | 19808 | conftest$ac_exeext conftest.$ac_ext |
| 19809 | LIBS=$ac_check_lib_save_LIBS |
| 19810 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19811 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19812 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19813 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19814 | cat >>confdefs.h <<\_ACEOF |
| 19815 | #define HAVE_OPENPTY 1 |
| 19816 | _ACEOF |
| 19817 | LIBS="$LIBS -lbsd" |
| 19818 | fi |
| 19819 | |
| 19820 | |
| 19821 | fi |
| 19822 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19823 | |
| 19824 | fi |
| 19825 | done |
| 19826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19827 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19828 | for ac_func in forkpty |
| 19829 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19831 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19833 | 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] | 19834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19837 | /* confdefs.h. */ |
| 19838 | _ACEOF |
| 19839 | cat confdefs.h >>conftest.$ac_ext |
| 19840 | cat >>conftest.$ac_ext <<_ACEOF |
| 19841 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19844 | #define $ac_func innocuous_$ac_func |
| 19845 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19846 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19847 | which can conflict with char $ac_func (); below. |
| 19848 | 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] | 19849 | <limits.h> exists even on freestanding compilers. */ |
| 19850 | |
| 19851 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19852 | # include <limits.h> |
| 19853 | #else |
| 19854 | # include <assert.h> |
| 19855 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19856 | |
| 19857 | #undef $ac_func |
| 19858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19859 | /* Override any GCC internal prototype to avoid an error. |
| 19860 | Use char because int might match the return type of a GCC |
| 19861 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19862 | #ifdef __cplusplus |
| 19863 | extern "C" |
| 19864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19866 | /* The GNU C library defines this for functions which it implements |
| 19867 | to always fail with ENOSYS. Some functions are actually named |
| 19868 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19869 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19870 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19871 | #endif |
| 19872 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19873 | int |
| 19874 | main () |
| 19875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19876 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19877 | ; |
| 19878 | return 0; |
| 19879 | } |
| 19880 | _ACEOF |
| 19881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19882 | if { (ac_try="$ac_link" |
| 19883 | case "(($ac_try" in |
| 19884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19885 | *) ac_try_echo=$ac_try;; |
| 19886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19888 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19891 | rm -f conftest.er1 |
| 19892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19894 | (exit $ac_status); } && { |
| 19895 | test -z "$ac_c_werror_flag" || |
| 19896 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19897 | } && test -s conftest$ac_exeext && |
| 19898 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19899 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19904 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19906 | |
| 19907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19908 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19910 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19911 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19912 | echo "${ECHO_T}$ac_res" >&6; } |
| 19913 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19914 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19916 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19917 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19918 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19919 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19920 | 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] | 19921 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19924 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19925 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19927 | /* confdefs.h. */ |
| 19928 | _ACEOF |
| 19929 | cat confdefs.h >>conftest.$ac_ext |
| 19930 | cat >>conftest.$ac_ext <<_ACEOF |
| 19931 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19933 | /* Override any GCC internal prototype to avoid an error. |
| 19934 | Use char because int might match the return type of a GCC |
| 19935 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19936 | #ifdef __cplusplus |
| 19937 | extern "C" |
| 19938 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19939 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19940 | int |
| 19941 | main () |
| 19942 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19943 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19944 | ; |
| 19945 | return 0; |
| 19946 | } |
| 19947 | _ACEOF |
| 19948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19949 | if { (ac_try="$ac_link" |
| 19950 | case "(($ac_try" in |
| 19951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19952 | *) ac_try_echo=$ac_try;; |
| 19953 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19955 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19958 | rm -f conftest.er1 |
| 19959 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19961 | (exit $ac_status); } && { |
| 19962 | test -z "$ac_c_werror_flag" || |
| 19963 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19964 | } && test -s conftest$ac_exeext && |
| 19965 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19966 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19971 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19973 | |
| 19974 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19975 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19976 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19977 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19978 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19979 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 19980 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19981 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19982 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19983 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19984 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19985 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19986 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19987 | 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] | 19988 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19990 | else |
| 19991 | ac_check_lib_save_LIBS=$LIBS |
| 19992 | LIBS="-lbsd $LIBS" |
| 19993 | cat >conftest.$ac_ext <<_ACEOF |
| 19994 | /* confdefs.h. */ |
| 19995 | _ACEOF |
| 19996 | cat confdefs.h >>conftest.$ac_ext |
| 19997 | cat >>conftest.$ac_ext <<_ACEOF |
| 19998 | /* end confdefs.h. */ |
| 19999 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20000 | /* Override any GCC internal prototype to avoid an error. |
| 20001 | Use char because int might match the return type of a GCC |
| 20002 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20003 | #ifdef __cplusplus |
| 20004 | extern "C" |
| 20005 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20006 | char forkpty (); |
| 20007 | int |
| 20008 | main () |
| 20009 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20010 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20011 | ; |
| 20012 | return 0; |
| 20013 | } |
| 20014 | _ACEOF |
| 20015 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20016 | if { (ac_try="$ac_link" |
| 20017 | case "(($ac_try" in |
| 20018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20019 | *) ac_try_echo=$ac_try;; |
| 20020 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20022 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20023 | ac_status=$? |
| 20024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20025 | rm -f conftest.er1 |
| 20026 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20028 | (exit $ac_status); } && { |
| 20029 | test -z "$ac_c_werror_flag" || |
| 20030 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20031 | } && test -s conftest$ac_exeext && |
| 20032 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20033 | ac_cv_lib_bsd_forkpty=yes |
| 20034 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20035 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20037 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20038 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20039 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20040 | |
| 20041 | 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] | 20042 | conftest$ac_exeext conftest.$ac_ext |
| 20043 | LIBS=$ac_check_lib_save_LIBS |
| 20044 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20046 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20047 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20048 | cat >>confdefs.h <<\_ACEOF |
| 20049 | #define HAVE_FORKPTY 1 |
| 20050 | _ACEOF |
| 20051 | LIBS="$LIBS -lbsd" |
| 20052 | fi |
| 20053 | |
| 20054 | |
| 20055 | fi |
| 20056 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20057 | |
| 20058 | fi |
| 20059 | done |
| 20060 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20061 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20062 | # Stuff for expat. |
| 20063 | |
| 20064 | for ac_func in memmove |
| 20065 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20067 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20069 | 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] | 20070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20071 | else |
| 20072 | cat >conftest.$ac_ext <<_ACEOF |
| 20073 | /* confdefs.h. */ |
| 20074 | _ACEOF |
| 20075 | cat confdefs.h >>conftest.$ac_ext |
| 20076 | cat >>conftest.$ac_ext <<_ACEOF |
| 20077 | /* end confdefs.h. */ |
| 20078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20080 | #define $ac_func innocuous_$ac_func |
| 20081 | |
| 20082 | /* System header to define __stub macros and hopefully few prototypes, |
| 20083 | which can conflict with char $ac_func (); below. |
| 20084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20085 | <limits.h> exists even on freestanding compilers. */ |
| 20086 | |
| 20087 | #ifdef __STDC__ |
| 20088 | # include <limits.h> |
| 20089 | #else |
| 20090 | # include <assert.h> |
| 20091 | #endif |
| 20092 | |
| 20093 | #undef $ac_func |
| 20094 | |
| 20095 | /* Override any GCC internal prototype to avoid an error. |
| 20096 | Use char because int might match the return type of a GCC |
| 20097 | builtin and then its argument prototype would still apply. */ |
| 20098 | #ifdef __cplusplus |
| 20099 | extern "C" |
| 20100 | #endif |
| 20101 | char $ac_func (); |
| 20102 | /* The GNU C library defines this for functions which it implements |
| 20103 | to always fail with ENOSYS. Some functions are actually named |
| 20104 | something starting with __ and the normal name is an alias. */ |
| 20105 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20106 | choke me |
| 20107 | #endif |
| 20108 | |
| 20109 | int |
| 20110 | main () |
| 20111 | { |
| 20112 | return $ac_func (); |
| 20113 | ; |
| 20114 | return 0; |
| 20115 | } |
| 20116 | _ACEOF |
| 20117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20118 | if { (ac_try="$ac_link" |
| 20119 | case "(($ac_try" in |
| 20120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20121 | *) ac_try_echo=$ac_try;; |
| 20122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20124 | (eval "$ac_link") 2>conftest.er1 |
| 20125 | ac_status=$? |
| 20126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20127 | rm -f conftest.er1 |
| 20128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20130 | (exit $ac_status); } && { |
| 20131 | test -z "$ac_c_werror_flag" || |
| 20132 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20133 | } && test -s conftest$ac_exeext && |
| 20134 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20135 | eval "$as_ac_var=yes" |
| 20136 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20137 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20139 | |
| 20140 | eval "$as_ac_var=no" |
| 20141 | fi |
| 20142 | |
| 20143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20144 | conftest$ac_exeext conftest.$ac_ext |
| 20145 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20146 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20147 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20148 | echo "${ECHO_T}$ac_res" >&6; } |
| 20149 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20150 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20151 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20152 | _ACEOF |
| 20153 | |
| 20154 | fi |
| 20155 | done |
| 20156 | |
| 20157 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20158 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20159 | |
| 20160 | |
| 20161 | |
| 20162 | |
| 20163 | |
| 20164 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20165 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20166 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20168 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20170 | 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] | 20171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20174 | /* confdefs.h. */ |
| 20175 | _ACEOF |
| 20176 | cat confdefs.h >>conftest.$ac_ext |
| 20177 | cat >>conftest.$ac_ext <<_ACEOF |
| 20178 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20179 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20181 | #define $ac_func innocuous_$ac_func |
| 20182 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20183 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20184 | which can conflict with char $ac_func (); below. |
| 20185 | 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] | 20186 | <limits.h> exists even on freestanding compilers. */ |
| 20187 | |
| 20188 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20189 | # include <limits.h> |
| 20190 | #else |
| 20191 | # include <assert.h> |
| 20192 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20193 | |
| 20194 | #undef $ac_func |
| 20195 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20196 | /* Override any GCC internal prototype to avoid an error. |
| 20197 | Use char because int might match the return type of a GCC |
| 20198 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20199 | #ifdef __cplusplus |
| 20200 | extern "C" |
| 20201 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20202 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20203 | /* The GNU C library defines this for functions which it implements |
| 20204 | to always fail with ENOSYS. Some functions are actually named |
| 20205 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20207 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20208 | #endif |
| 20209 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20210 | int |
| 20211 | main () |
| 20212 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20213 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20214 | ; |
| 20215 | return 0; |
| 20216 | } |
| 20217 | _ACEOF |
| 20218 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20219 | if { (ac_try="$ac_link" |
| 20220 | case "(($ac_try" in |
| 20221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20222 | *) ac_try_echo=$ac_try;; |
| 20223 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20225 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20226 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20228 | rm -f conftest.er1 |
| 20229 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20231 | (exit $ac_status); } && { |
| 20232 | test -z "$ac_c_werror_flag" || |
| 20233 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20234 | } && test -s conftest$ac_exeext && |
| 20235 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20236 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20237 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20240 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20241 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20243 | |
| 20244 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20245 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20246 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20247 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20249 | echo "${ECHO_T}$ac_res" >&6; } |
| 20250 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20251 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20252 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20253 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20254 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20255 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20256 | done |
| 20257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20259 | |
| 20260 | |
| 20261 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20262 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20263 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20264 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20265 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20266 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20267 | 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] | 20268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20271 | /* confdefs.h. */ |
| 20272 | _ACEOF |
| 20273 | cat confdefs.h >>conftest.$ac_ext |
| 20274 | cat >>conftest.$ac_ext <<_ACEOF |
| 20275 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20278 | #define $ac_func innocuous_$ac_func |
| 20279 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20280 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20281 | which can conflict with char $ac_func (); below. |
| 20282 | 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] | 20283 | <limits.h> exists even on freestanding compilers. */ |
| 20284 | |
| 20285 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20286 | # include <limits.h> |
| 20287 | #else |
| 20288 | # include <assert.h> |
| 20289 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20290 | |
| 20291 | #undef $ac_func |
| 20292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20293 | /* Override any GCC internal prototype to avoid an error. |
| 20294 | Use char because int might match the return type of a GCC |
| 20295 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20296 | #ifdef __cplusplus |
| 20297 | extern "C" |
| 20298 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20299 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20300 | /* The GNU C library defines this for functions which it implements |
| 20301 | to always fail with ENOSYS. Some functions are actually named |
| 20302 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20303 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20304 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20305 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20306 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20307 | int |
| 20308 | main () |
| 20309 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20310 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20311 | ; |
| 20312 | return 0; |
| 20313 | } |
| 20314 | _ACEOF |
| 20315 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20316 | if { (ac_try="$ac_link" |
| 20317 | case "(($ac_try" in |
| 20318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20319 | *) ac_try_echo=$ac_try;; |
| 20320 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20322 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20323 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20325 | rm -f conftest.er1 |
| 20326 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20328 | (exit $ac_status); } && { |
| 20329 | test -z "$ac_c_werror_flag" || |
| 20330 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20331 | } && test -s conftest$ac_exeext && |
| 20332 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20333 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20334 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20337 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20338 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20339 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20340 | |
| 20341 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20342 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20343 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20344 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20345 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20346 | echo "${ECHO_T}$ac_res" >&6; } |
| 20347 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20348 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20349 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20350 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20351 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20352 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20353 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20354 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20355 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20356 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20357 | esac |
| 20358 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20359 | fi |
| 20360 | done |
| 20361 | |
| 20362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20363 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20364 | for ac_func in getpgrp |
| 20365 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20367 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20369 | 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] | 20370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20373 | /* confdefs.h. */ |
| 20374 | _ACEOF |
| 20375 | cat confdefs.h >>conftest.$ac_ext |
| 20376 | cat >>conftest.$ac_ext <<_ACEOF |
| 20377 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20380 | #define $ac_func innocuous_$ac_func |
| 20381 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20382 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20383 | which can conflict with char $ac_func (); below. |
| 20384 | 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] | 20385 | <limits.h> exists even on freestanding compilers. */ |
| 20386 | |
| 20387 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20388 | # include <limits.h> |
| 20389 | #else |
| 20390 | # include <assert.h> |
| 20391 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20392 | |
| 20393 | #undef $ac_func |
| 20394 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20395 | /* Override any GCC internal prototype to avoid an error. |
| 20396 | Use char because int might match the return type of a GCC |
| 20397 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20398 | #ifdef __cplusplus |
| 20399 | extern "C" |
| 20400 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20401 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20402 | /* The GNU C library defines this for functions which it implements |
| 20403 | to always fail with ENOSYS. Some functions are actually named |
| 20404 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20405 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20406 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20407 | #endif |
| 20408 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20409 | int |
| 20410 | main () |
| 20411 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20412 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20413 | ; |
| 20414 | return 0; |
| 20415 | } |
| 20416 | _ACEOF |
| 20417 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20418 | if { (ac_try="$ac_link" |
| 20419 | case "(($ac_try" in |
| 20420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20421 | *) ac_try_echo=$ac_try;; |
| 20422 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20424 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20427 | rm -f conftest.er1 |
| 20428 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20430 | (exit $ac_status); } && { |
| 20431 | test -z "$ac_c_werror_flag" || |
| 20432 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20433 | } && test -s conftest$ac_exeext && |
| 20434 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20435 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20436 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20439 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20440 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20441 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20442 | |
| 20443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20444 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20445 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20446 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20448 | echo "${ECHO_T}$ac_res" >&6; } |
| 20449 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20450 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20452 | _ACEOF |
| 20453 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20454 | /* confdefs.h. */ |
| 20455 | _ACEOF |
| 20456 | cat confdefs.h >>conftest.$ac_ext |
| 20457 | cat >>conftest.$ac_ext <<_ACEOF |
| 20458 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20459 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | int |
| 20461 | main () |
| 20462 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20463 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | ; |
| 20465 | return 0; |
| 20466 | } |
| 20467 | _ACEOF |
| 20468 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20469 | if { (ac_try="$ac_compile" |
| 20470 | case "(($ac_try" in |
| 20471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20472 | *) ac_try_echo=$ac_try;; |
| 20473 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20475 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20478 | rm -f conftest.er1 |
| 20479 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20481 | (exit $ac_status); } && { |
| 20482 | test -z "$ac_c_werror_flag" || |
| 20483 | test ! -s conftest.err |
| 20484 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | |
| 20486 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20487 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20488 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20490 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20491 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20494 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20495 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20497 | |
| 20498 | 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] | 20499 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20500 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20501 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20502 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20503 | |
| 20504 | for ac_func in setpgrp |
| 20505 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20507 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20509 | 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] | 20510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20512 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20513 | /* confdefs.h. */ |
| 20514 | _ACEOF |
| 20515 | cat confdefs.h >>conftest.$ac_ext |
| 20516 | cat >>conftest.$ac_ext <<_ACEOF |
| 20517 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20520 | #define $ac_func innocuous_$ac_func |
| 20521 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20522 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20523 | which can conflict with char $ac_func (); below. |
| 20524 | 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] | 20525 | <limits.h> exists even on freestanding compilers. */ |
| 20526 | |
| 20527 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20528 | # include <limits.h> |
| 20529 | #else |
| 20530 | # include <assert.h> |
| 20531 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20532 | |
| 20533 | #undef $ac_func |
| 20534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20535 | /* Override any GCC internal prototype to avoid an error. |
| 20536 | Use char because int might match the return type of a GCC |
| 20537 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20538 | #ifdef __cplusplus |
| 20539 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20540 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20541 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20542 | /* The GNU C library defines this for functions which it implements |
| 20543 | to always fail with ENOSYS. Some functions are actually named |
| 20544 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20545 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20546 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20547 | #endif |
| 20548 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20549 | int |
| 20550 | main () |
| 20551 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20552 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20553 | ; |
| 20554 | return 0; |
| 20555 | } |
| 20556 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20557 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20558 | if { (ac_try="$ac_link" |
| 20559 | case "(($ac_try" in |
| 20560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20561 | *) ac_try_echo=$ac_try;; |
| 20562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20564 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20567 | rm -f conftest.er1 |
| 20568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20570 | (exit $ac_status); } && { |
| 20571 | test -z "$ac_c_werror_flag" || |
| 20572 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20573 | } && test -s conftest$ac_exeext && |
| 20574 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20575 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20580 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20582 | |
| 20583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20584 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20585 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20586 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20588 | echo "${ECHO_T}$ac_res" >&6; } |
| 20589 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20590 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20591 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20592 | _ACEOF |
| 20593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20594 | /* confdefs.h. */ |
| 20595 | _ACEOF |
| 20596 | cat confdefs.h >>conftest.$ac_ext |
| 20597 | cat >>conftest.$ac_ext <<_ACEOF |
| 20598 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20599 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20600 | int |
| 20601 | main () |
| 20602 | { |
| 20603 | setpgrp(0,0); |
| 20604 | ; |
| 20605 | return 0; |
| 20606 | } |
| 20607 | _ACEOF |
| 20608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20609 | if { (ac_try="$ac_compile" |
| 20610 | case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20615 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20618 | rm -f conftest.er1 |
| 20619 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20621 | (exit $ac_status); } && { |
| 20622 | test -z "$ac_c_werror_flag" || |
| 20623 | test ! -s conftest.err |
| 20624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20625 | |
| 20626 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20627 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20628 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20629 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20630 | |
| 20631 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20634 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20635 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20637 | |
| 20638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20639 | |
| 20640 | fi |
| 20641 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20643 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20644 | for ac_func in gettimeofday |
| 20645 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20646 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20647 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20648 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20649 | 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] | 20650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20653 | /* confdefs.h. */ |
| 20654 | _ACEOF |
| 20655 | cat confdefs.h >>conftest.$ac_ext |
| 20656 | cat >>conftest.$ac_ext <<_ACEOF |
| 20657 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20658 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20659 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20660 | #define $ac_func innocuous_$ac_func |
| 20661 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20662 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20663 | which can conflict with char $ac_func (); below. |
| 20664 | 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] | 20665 | <limits.h> exists even on freestanding compilers. */ |
| 20666 | |
| 20667 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20668 | # include <limits.h> |
| 20669 | #else |
| 20670 | # include <assert.h> |
| 20671 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20672 | |
| 20673 | #undef $ac_func |
| 20674 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20675 | /* Override any GCC internal prototype to avoid an error. |
| 20676 | Use char because int might match the return type of a GCC |
| 20677 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20678 | #ifdef __cplusplus |
| 20679 | extern "C" |
| 20680 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20681 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20682 | /* The GNU C library defines this for functions which it implements |
| 20683 | to always fail with ENOSYS. Some functions are actually named |
| 20684 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20685 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20686 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20687 | #endif |
| 20688 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20689 | int |
| 20690 | main () |
| 20691 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20692 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20693 | ; |
| 20694 | return 0; |
| 20695 | } |
| 20696 | _ACEOF |
| 20697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20698 | if { (ac_try="$ac_link" |
| 20699 | case "(($ac_try" in |
| 20700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20701 | *) ac_try_echo=$ac_try;; |
| 20702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20704 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20707 | rm -f conftest.er1 |
| 20708 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20710 | (exit $ac_status); } && { |
| 20711 | test -z "$ac_c_werror_flag" || |
| 20712 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20713 | } && test -s conftest$ac_exeext && |
| 20714 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20715 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20716 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20719 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20720 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20722 | |
| 20723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20724 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20725 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20726 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20728 | echo "${ECHO_T}$ac_res" >&6; } |
| 20729 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20730 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20731 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20732 | _ACEOF |
| 20733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20734 | /* confdefs.h. */ |
| 20735 | _ACEOF |
| 20736 | cat confdefs.h >>conftest.$ac_ext |
| 20737 | cat >>conftest.$ac_ext <<_ACEOF |
| 20738 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20739 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | int |
| 20741 | main () |
| 20742 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20743 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20744 | ; |
| 20745 | return 0; |
| 20746 | } |
| 20747 | _ACEOF |
| 20748 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20749 | if { (ac_try="$ac_compile" |
| 20750 | case "(($ac_try" in |
| 20751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20752 | *) ac_try_echo=$ac_try;; |
| 20753 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20755 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20756 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20758 | rm -f conftest.er1 |
| 20759 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20761 | (exit $ac_status); } && { |
| 20762 | test -z "$ac_c_werror_flag" || |
| 20763 | test ! -s conftest.err |
| 20764 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20765 | : |
| 20766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20770 | |
| 20771 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20772 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20773 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20775 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20776 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20777 | |
| 20778 | 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] | 20779 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20780 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20781 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20782 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20783 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20784 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20785 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20787 | /* confdefs.h. */ |
| 20788 | _ACEOF |
| 20789 | cat confdefs.h >>conftest.$ac_ext |
| 20790 | cat >>conftest.$ac_ext <<_ACEOF |
| 20791 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20792 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20793 | #if defined(MAJOR_IN_MKDEV) |
| 20794 | #include <sys/mkdev.h> |
| 20795 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20796 | #include <sys/sysmacros.h> |
| 20797 | #else |
| 20798 | #include <sys/types.h> |
| 20799 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20800 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20801 | int |
| 20802 | main () |
| 20803 | { |
| 20804 | |
| 20805 | makedev(major(0),minor(0)); |
| 20806 | |
| 20807 | ; |
| 20808 | return 0; |
| 20809 | } |
| 20810 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20811 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20812 | if { (ac_try="$ac_link" |
| 20813 | case "(($ac_try" in |
| 20814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20815 | *) ac_try_echo=$ac_try;; |
| 20816 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20818 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20821 | rm -f conftest.er1 |
| 20822 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20824 | (exit $ac_status); } && { |
| 20825 | test -z "$ac_c_werror_flag" || |
| 20826 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20827 | } && test -s conftest$ac_exeext && |
| 20828 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20829 | |
| 20830 | |
| 20831 | cat >>confdefs.h <<\_ACEOF |
| 20832 | #define HAVE_DEVICE_MACROS 1 |
| 20833 | _ACEOF |
| 20834 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20835 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20836 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20837 | |
| 20838 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20841 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20842 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20843 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20844 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20845 | |
| 20846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20847 | |
| 20848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20849 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20850 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20851 | # 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] | 20852 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20853 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20854 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20855 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20856 | /* confdefs.h. */ |
| 20857 | _ACEOF |
| 20858 | cat confdefs.h >>conftest.$ac_ext |
| 20859 | cat >>conftest.$ac_ext <<_ACEOF |
| 20860 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20861 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20862 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20863 | #include <sys/socket.h> |
| 20864 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20865 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20867 | int |
| 20868 | main () |
| 20869 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20870 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20871 | ; |
| 20872 | return 0; |
| 20873 | } |
| 20874 | _ACEOF |
| 20875 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20876 | if { (ac_try="$ac_link" |
| 20877 | case "(($ac_try" in |
| 20878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20879 | *) ac_try_echo=$ac_try;; |
| 20880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20882 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20883 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20885 | rm -f conftest.er1 |
| 20886 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20888 | (exit $ac_status); } && { |
| 20889 | test -z "$ac_c_werror_flag" || |
| 20890 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20891 | } && test -s conftest$ac_exeext && |
| 20892 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20893 | have_getaddrinfo=yes |
| 20894 | else |
| 20895 | echo "$as_me: failed program was:" >&5 |
| 20896 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20897 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20898 | have_getaddrinfo=no |
| 20899 | fi |
| 20900 | |
| 20901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20902 | conftest$ac_exeext conftest.$ac_ext |
| 20903 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20904 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 20905 | if test $have_getaddrinfo = yes |
| 20906 | then |
| 20907 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20908 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20909 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20911 | else |
| 20912 | if test "$cross_compiling" = yes; then |
| 20913 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20916 | /* confdefs.h. */ |
| 20917 | _ACEOF |
| 20918 | cat confdefs.h >>conftest.$ac_ext |
| 20919 | cat >>conftest.$ac_ext <<_ACEOF |
| 20920 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20921 | |
| 20922 | #include <sys/types.h> |
| 20923 | #include <netdb.h> |
| 20924 | #include <string.h> |
| 20925 | #include <sys/socket.h> |
| 20926 | #include <netinet/in.h> |
| 20927 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20928 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20929 | { |
| 20930 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20931 | struct addrinfo hints, *ai, *aitop; |
| 20932 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20933 | |
| 20934 | for (passive = 0; passive <= 1; passive++) { |
| 20935 | memset(&hints, 0, sizeof(hints)); |
| 20936 | hints.ai_family = AF_UNSPEC; |
| 20937 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20938 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20939 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20940 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20941 | (void)gai_strerror(gaierr); |
| 20942 | goto bad; |
| 20943 | } |
| 20944 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20945 | if (ai->ai_addr == NULL || |
| 20946 | ai->ai_addrlen == 0 || |
| 20947 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20948 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20949 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20950 | goto bad; |
| 20951 | } |
| 20952 | switch (ai->ai_family) { |
| 20953 | case AF_INET: |
| 20954 | if (strcmp(strport, "54321") != 0) { |
| 20955 | goto bad; |
| 20956 | } |
| 20957 | if (passive) { |
| 20958 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20959 | goto bad; |
| 20960 | } |
| 20961 | } else { |
| 20962 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20963 | goto bad; |
| 20964 | } |
| 20965 | } |
| 20966 | inet4++; |
| 20967 | break; |
| 20968 | case AF_INET6: |
| 20969 | if (strcmp(strport, "54321") != 0) { |
| 20970 | goto bad; |
| 20971 | } |
| 20972 | if (passive) { |
| 20973 | if (strcmp(straddr, "::") != 0) { |
| 20974 | goto bad; |
| 20975 | } |
| 20976 | } else { |
| 20977 | if (strcmp(straddr, "::1") != 0) { |
| 20978 | goto bad; |
| 20979 | } |
| 20980 | } |
| 20981 | inet6++; |
| 20982 | break; |
| 20983 | case AF_UNSPEC: |
| 20984 | goto bad; |
| 20985 | break; |
| 20986 | default: |
| 20987 | /* another family support? */ |
| 20988 | break; |
| 20989 | } |
| 20990 | } |
| 20991 | } |
| 20992 | |
| 20993 | if (!(inet4 == 0 || inet4 == 2)) |
| 20994 | goto bad; |
| 20995 | if (!(inet6 == 0 || inet6 == 2)) |
| 20996 | goto bad; |
| 20997 | |
| 20998 | if (aitop) |
| 20999 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21000 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21001 | |
| 21002 | bad: |
| 21003 | if (aitop) |
| 21004 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21005 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21006 | } |
| 21007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21008 | _ACEOF |
| 21009 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21010 | if { (ac_try="$ac_link" |
| 21011 | case "(($ac_try" in |
| 21012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21013 | *) ac_try_echo=$ac_try;; |
| 21014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21016 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21017 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21020 | { (case "(($ac_try" in |
| 21021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21022 | *) ac_try_echo=$ac_try;; |
| 21023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21025 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21026 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21028 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21029 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21031 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21035 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21036 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21037 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21038 | 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] | 21039 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21040 | |
| 21041 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21042 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21043 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21044 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21045 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21046 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21047 | then |
| 21048 | if test $ipv6 = yes |
| 21049 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21050 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21051 | echo ' or you can specify "--disable-ipv6"'. |
| 21052 | exit 1 |
| 21053 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | |
| 21056 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21057 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21058 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21059 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21061 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21062 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21063 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21064 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21065 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21066 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21067 | 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] | 21068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21070 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21071 | /* confdefs.h. */ |
| 21072 | _ACEOF |
| 21073 | cat confdefs.h >>conftest.$ac_ext |
| 21074 | cat >>conftest.$ac_ext <<_ACEOF |
| 21075 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21076 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21077 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21078 | #define $ac_func innocuous_$ac_func |
| 21079 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21080 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21081 | which can conflict with char $ac_func (); below. |
| 21082 | 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] | 21083 | <limits.h> exists even on freestanding compilers. */ |
| 21084 | |
| 21085 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21086 | # include <limits.h> |
| 21087 | #else |
| 21088 | # include <assert.h> |
| 21089 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21090 | |
| 21091 | #undef $ac_func |
| 21092 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21093 | /* Override any GCC internal prototype to avoid an error. |
| 21094 | Use char because int might match the return type of a GCC |
| 21095 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21096 | #ifdef __cplusplus |
| 21097 | extern "C" |
| 21098 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21099 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21100 | /* The GNU C library defines this for functions which it implements |
| 21101 | to always fail with ENOSYS. Some functions are actually named |
| 21102 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21103 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21104 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21105 | #endif |
| 21106 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21107 | int |
| 21108 | main () |
| 21109 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21110 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21111 | ; |
| 21112 | return 0; |
| 21113 | } |
| 21114 | _ACEOF |
| 21115 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21116 | if { (ac_try="$ac_link" |
| 21117 | case "(($ac_try" in |
| 21118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21119 | *) ac_try_echo=$ac_try;; |
| 21120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21122 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21125 | rm -f conftest.er1 |
| 21126 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21128 | (exit $ac_status); } && { |
| 21129 | test -z "$ac_c_werror_flag" || |
| 21130 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21131 | } && test -s conftest$ac_exeext && |
| 21132 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21133 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21134 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21137 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21138 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21139 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21140 | |
| 21141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21142 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21143 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21144 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21145 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21146 | echo "${ECHO_T}$ac_res" >&6; } |
| 21147 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21148 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21150 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21151 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21152 | fi |
| 21153 | done |
| 21154 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21155 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21156 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21157 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21158 | 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] | 21159 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21163 | /* confdefs.h. */ |
| 21164 | _ACEOF |
| 21165 | cat confdefs.h >>conftest.$ac_ext |
| 21166 | cat >>conftest.$ac_ext <<_ACEOF |
| 21167 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21168 | #include <sys/types.h> |
| 21169 | #include <sys/time.h> |
| 21170 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21172 | int |
| 21173 | main () |
| 21174 | { |
| 21175 | if ((struct tm *) 0) |
| 21176 | return 0; |
| 21177 | ; |
| 21178 | return 0; |
| 21179 | } |
| 21180 | _ACEOF |
| 21181 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21182 | if { (ac_try="$ac_compile" |
| 21183 | case "(($ac_try" in |
| 21184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21185 | *) ac_try_echo=$ac_try;; |
| 21186 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21188 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21189 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21191 | rm -f conftest.er1 |
| 21192 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21194 | (exit $ac_status); } && { |
| 21195 | test -z "$ac_c_werror_flag" || |
| 21196 | test ! -s conftest.err |
| 21197 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21198 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21199 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21200 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21202 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21203 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21204 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21205 | |
| 21206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21207 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21208 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21209 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21210 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21211 | |
| 21212 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21213 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21214 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21215 | |
| 21216 | fi |
| 21217 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21218 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21219 | 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] | 21220 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21224 | /* confdefs.h. */ |
| 21225 | _ACEOF |
| 21226 | cat confdefs.h >>conftest.$ac_ext |
| 21227 | cat >>conftest.$ac_ext <<_ACEOF |
| 21228 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21229 | #include <sys/types.h> |
| 21230 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21232 | int |
| 21233 | main () |
| 21234 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21235 | struct tm tm; |
| 21236 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21237 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21238 | ; |
| 21239 | return 0; |
| 21240 | } |
| 21241 | _ACEOF |
| 21242 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21243 | if { (ac_try="$ac_compile" |
| 21244 | case "(($ac_try" in |
| 21245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21246 | *) ac_try_echo=$ac_try;; |
| 21247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21249 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21250 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21252 | rm -f conftest.er1 |
| 21253 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21255 | (exit $ac_status); } && { |
| 21256 | test -z "$ac_c_werror_flag" || |
| 21257 | test ! -s conftest.err |
| 21258 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21259 | ac_cv_struct_tm=time.h |
| 21260 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21264 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21266 | |
| 21267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21268 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21269 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21270 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21271 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21272 | |
| 21273 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21274 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21275 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21276 | |
| 21277 | fi |
| 21278 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21279 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21280 | 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] | 21281 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21285 | /* confdefs.h. */ |
| 21286 | _ACEOF |
| 21287 | cat confdefs.h >>conftest.$ac_ext |
| 21288 | cat >>conftest.$ac_ext <<_ACEOF |
| 21289 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21290 | #include <sys/types.h> |
| 21291 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21292 | |
| 21293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21294 | int |
| 21295 | main () |
| 21296 | { |
| 21297 | static struct tm ac_aggr; |
| 21298 | if (ac_aggr.tm_zone) |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21312 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21321 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21322 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21327 | /* confdefs.h. */ |
| 21328 | _ACEOF |
| 21329 | cat confdefs.h >>conftest.$ac_ext |
| 21330 | cat >>conftest.$ac_ext <<_ACEOF |
| 21331 | /* end confdefs.h. */ |
| 21332 | #include <sys/types.h> |
| 21333 | #include <$ac_cv_struct_tm> |
| 21334 | |
| 21335 | |
| 21336 | int |
| 21337 | main () |
| 21338 | { |
| 21339 | static struct tm ac_aggr; |
| 21340 | if (sizeof ac_aggr.tm_zone) |
| 21341 | return 0; |
| 21342 | ; |
| 21343 | return 0; |
| 21344 | } |
| 21345 | _ACEOF |
| 21346 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21347 | if { (ac_try="$ac_compile" |
| 21348 | case "(($ac_try" in |
| 21349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21350 | *) ac_try_echo=$ac_try;; |
| 21351 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21353 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21356 | rm -f conftest.er1 |
| 21357 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21359 | (exit $ac_status); } && { |
| 21360 | test -z "$ac_c_werror_flag" || |
| 21361 | test ! -s conftest.err |
| 21362 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21363 | ac_cv_member_struct_tm_tm_zone=yes |
| 21364 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21368 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21369 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21370 | |
| 21371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21372 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21373 | |
| 21374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21375 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21376 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21377 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21378 | 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] | 21379 | |
| 21380 | cat >>confdefs.h <<_ACEOF |
| 21381 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21382 | _ACEOF |
| 21383 | |
| 21384 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21385 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21387 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21388 | |
| 21389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21390 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21391 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21392 | |
| 21393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21394 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21395 | 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] | 21396 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21398 | else |
| 21399 | cat >conftest.$ac_ext <<_ACEOF |
| 21400 | /* confdefs.h. */ |
| 21401 | _ACEOF |
| 21402 | cat confdefs.h >>conftest.$ac_ext |
| 21403 | cat >>conftest.$ac_ext <<_ACEOF |
| 21404 | /* end confdefs.h. */ |
| 21405 | #include <time.h> |
| 21406 | |
| 21407 | int |
| 21408 | main () |
| 21409 | { |
| 21410 | #ifndef tzname |
| 21411 | (void) tzname; |
| 21412 | #endif |
| 21413 | |
| 21414 | ; |
| 21415 | return 0; |
| 21416 | } |
| 21417 | _ACEOF |
| 21418 | rm -f conftest.$ac_objext |
| 21419 | if { (ac_try="$ac_compile" |
| 21420 | case "(($ac_try" in |
| 21421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21422 | *) ac_try_echo=$ac_try;; |
| 21423 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21425 | (eval "$ac_compile") 2>conftest.er1 |
| 21426 | ac_status=$? |
| 21427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21428 | rm -f conftest.er1 |
| 21429 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21431 | (exit $ac_status); } && { |
| 21432 | test -z "$ac_c_werror_flag" || |
| 21433 | test ! -s conftest.err |
| 21434 | } && test -s conftest.$ac_objext; then |
| 21435 | ac_cv_have_decl_tzname=yes |
| 21436 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21437 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21439 | |
| 21440 | ac_cv_have_decl_tzname=no |
| 21441 | fi |
| 21442 | |
| 21443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21444 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21445 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21446 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21447 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21448 | |
| 21449 | cat >>confdefs.h <<_ACEOF |
| 21450 | #define HAVE_DECL_TZNAME 1 |
| 21451 | _ACEOF |
| 21452 | |
| 21453 | |
| 21454 | else |
| 21455 | cat >>confdefs.h <<_ACEOF |
| 21456 | #define HAVE_DECL_TZNAME 0 |
| 21457 | _ACEOF |
| 21458 | |
| 21459 | |
| 21460 | fi |
| 21461 | |
| 21462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21463 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21464 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21465 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21469 | /* confdefs.h. */ |
| 21470 | _ACEOF |
| 21471 | cat confdefs.h >>conftest.$ac_ext |
| 21472 | cat >>conftest.$ac_ext <<_ACEOF |
| 21473 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21474 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21475 | #if !HAVE_DECL_TZNAME |
| 21476 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21477 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21479 | int |
| 21480 | main () |
| 21481 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21482 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21483 | ; |
| 21484 | return 0; |
| 21485 | } |
| 21486 | _ACEOF |
| 21487 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21488 | if { (ac_try="$ac_link" |
| 21489 | case "(($ac_try" in |
| 21490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21491 | *) ac_try_echo=$ac_try;; |
| 21492 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21494 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21497 | rm -f conftest.er1 |
| 21498 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21500 | (exit $ac_status); } && { |
| 21501 | test -z "$ac_c_werror_flag" || |
| 21502 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21503 | } && test -s conftest$ac_exeext && |
| 21504 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21505 | ac_cv_var_tzname=yes |
| 21506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21509 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21510 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21511 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21512 | |
| 21513 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21514 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21515 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21516 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21517 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21518 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21519 | |
| 21520 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21521 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21522 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21523 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21524 | fi |
| 21525 | fi |
| 21526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21527 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21528 | 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] | 21529 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21531 | else |
| 21532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21533 | /* confdefs.h. */ |
| 21534 | _ACEOF |
| 21535 | cat confdefs.h >>conftest.$ac_ext |
| 21536 | cat >>conftest.$ac_ext <<_ACEOF |
| 21537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21538 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21539 | int |
| 21540 | main () |
| 21541 | { |
| 21542 | static struct stat ac_aggr; |
| 21543 | if (ac_aggr.st_rdev) |
| 21544 | return 0; |
| 21545 | ; |
| 21546 | return 0; |
| 21547 | } |
| 21548 | _ACEOF |
| 21549 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21550 | if { (ac_try="$ac_compile" |
| 21551 | case "(($ac_try" in |
| 21552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21553 | *) ac_try_echo=$ac_try;; |
| 21554 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21556 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21559 | rm -f conftest.er1 |
| 21560 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21562 | (exit $ac_status); } && { |
| 21563 | test -z "$ac_c_werror_flag" || |
| 21564 | test ! -s conftest.err |
| 21565 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21566 | ac_cv_member_struct_stat_st_rdev=yes |
| 21567 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21572 | /* confdefs.h. */ |
| 21573 | _ACEOF |
| 21574 | cat confdefs.h >>conftest.$ac_ext |
| 21575 | cat >>conftest.$ac_ext <<_ACEOF |
| 21576 | /* end confdefs.h. */ |
| 21577 | $ac_includes_default |
| 21578 | int |
| 21579 | main () |
| 21580 | { |
| 21581 | static struct stat ac_aggr; |
| 21582 | if (sizeof ac_aggr.st_rdev) |
| 21583 | return 0; |
| 21584 | ; |
| 21585 | return 0; |
| 21586 | } |
| 21587 | _ACEOF |
| 21588 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21589 | if { (ac_try="$ac_compile" |
| 21590 | case "(($ac_try" in |
| 21591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21592 | *) ac_try_echo=$ac_try;; |
| 21593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21595 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21598 | rm -f conftest.er1 |
| 21599 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21601 | (exit $ac_status); } && { |
| 21602 | test -z "$ac_c_werror_flag" || |
| 21603 | test ! -s conftest.err |
| 21604 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21605 | ac_cv_member_struct_stat_st_rdev=yes |
| 21606 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21610 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21612 | |
| 21613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21614 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21615 | |
| 21616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21617 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21618 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21619 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21620 | 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] | 21621 | |
| 21622 | cat >>confdefs.h <<_ACEOF |
| 21623 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21624 | _ACEOF |
| 21625 | |
| 21626 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21627 | fi |
| 21628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21629 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21630 | 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] | 21631 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21635 | /* confdefs.h. */ |
| 21636 | _ACEOF |
| 21637 | cat confdefs.h >>conftest.$ac_ext |
| 21638 | cat >>conftest.$ac_ext <<_ACEOF |
| 21639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21641 | int |
| 21642 | main () |
| 21643 | { |
| 21644 | static struct stat ac_aggr; |
| 21645 | if (ac_aggr.st_blksize) |
| 21646 | return 0; |
| 21647 | ; |
| 21648 | return 0; |
| 21649 | } |
| 21650 | _ACEOF |
| 21651 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21652 | if { (ac_try="$ac_compile" |
| 21653 | case "(($ac_try" in |
| 21654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21655 | *) ac_try_echo=$ac_try;; |
| 21656 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21658 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21659 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21661 | rm -f conftest.er1 |
| 21662 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21664 | (exit $ac_status); } && { |
| 21665 | test -z "$ac_c_werror_flag" || |
| 21666 | test ! -s conftest.err |
| 21667 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21668 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21669 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21672 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21674 | /* confdefs.h. */ |
| 21675 | _ACEOF |
| 21676 | cat confdefs.h >>conftest.$ac_ext |
| 21677 | cat >>conftest.$ac_ext <<_ACEOF |
| 21678 | /* end confdefs.h. */ |
| 21679 | $ac_includes_default |
| 21680 | int |
| 21681 | main () |
| 21682 | { |
| 21683 | static struct stat ac_aggr; |
| 21684 | if (sizeof ac_aggr.st_blksize) |
| 21685 | return 0; |
| 21686 | ; |
| 21687 | return 0; |
| 21688 | } |
| 21689 | _ACEOF |
| 21690 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21691 | if { (ac_try="$ac_compile" |
| 21692 | case "(($ac_try" in |
| 21693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21694 | *) ac_try_echo=$ac_try;; |
| 21695 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21697 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21700 | rm -f conftest.er1 |
| 21701 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21703 | (exit $ac_status); } && { |
| 21704 | test -z "$ac_c_werror_flag" || |
| 21705 | test ! -s conftest.err |
| 21706 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21707 | ac_cv_member_struct_stat_st_blksize=yes |
| 21708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21712 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21714 | |
| 21715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21717 | |
| 21718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21719 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21720 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21721 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21722 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21724 | cat >>confdefs.h <<_ACEOF |
| 21725 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21726 | _ACEOF |
| 21727 | |
| 21728 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21729 | fi |
| 21730 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21731 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21732 | 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] | 21733 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21735 | else |
| 21736 | cat >conftest.$ac_ext <<_ACEOF |
| 21737 | /* confdefs.h. */ |
| 21738 | _ACEOF |
| 21739 | cat confdefs.h >>conftest.$ac_ext |
| 21740 | cat >>conftest.$ac_ext <<_ACEOF |
| 21741 | /* end confdefs.h. */ |
| 21742 | $ac_includes_default |
| 21743 | int |
| 21744 | main () |
| 21745 | { |
| 21746 | static struct stat ac_aggr; |
| 21747 | if (ac_aggr.st_flags) |
| 21748 | return 0; |
| 21749 | ; |
| 21750 | return 0; |
| 21751 | } |
| 21752 | _ACEOF |
| 21753 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21754 | if { (ac_try="$ac_compile" |
| 21755 | case "(($ac_try" in |
| 21756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21757 | *) ac_try_echo=$ac_try;; |
| 21758 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21760 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21761 | ac_status=$? |
| 21762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21763 | rm -f conftest.er1 |
| 21764 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21766 | (exit $ac_status); } && { |
| 21767 | test -z "$ac_c_werror_flag" || |
| 21768 | test ! -s conftest.err |
| 21769 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21770 | ac_cv_member_struct_stat_st_flags=yes |
| 21771 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21772 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21774 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21775 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21776 | /* confdefs.h. */ |
| 21777 | _ACEOF |
| 21778 | cat confdefs.h >>conftest.$ac_ext |
| 21779 | cat >>conftest.$ac_ext <<_ACEOF |
| 21780 | /* end confdefs.h. */ |
| 21781 | $ac_includes_default |
| 21782 | int |
| 21783 | main () |
| 21784 | { |
| 21785 | static struct stat ac_aggr; |
| 21786 | if (sizeof ac_aggr.st_flags) |
| 21787 | return 0; |
| 21788 | ; |
| 21789 | return 0; |
| 21790 | } |
| 21791 | _ACEOF |
| 21792 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21793 | if { (ac_try="$ac_compile" |
| 21794 | case "(($ac_try" in |
| 21795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21796 | *) ac_try_echo=$ac_try;; |
| 21797 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21799 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21800 | ac_status=$? |
| 21801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21802 | rm -f conftest.er1 |
| 21803 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21805 | (exit $ac_status); } && { |
| 21806 | test -z "$ac_c_werror_flag" || |
| 21807 | test ! -s conftest.err |
| 21808 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21809 | ac_cv_member_struct_stat_st_flags=yes |
| 21810 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21811 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21814 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21815 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21816 | |
| 21817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21818 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21819 | |
| 21820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21821 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21822 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21823 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21824 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21825 | |
| 21826 | cat >>confdefs.h <<_ACEOF |
| 21827 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21828 | _ACEOF |
| 21829 | |
| 21830 | |
| 21831 | fi |
| 21832 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21833 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21834 | 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] | 21835 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21837 | else |
| 21838 | cat >conftest.$ac_ext <<_ACEOF |
| 21839 | /* confdefs.h. */ |
| 21840 | _ACEOF |
| 21841 | cat confdefs.h >>conftest.$ac_ext |
| 21842 | cat >>conftest.$ac_ext <<_ACEOF |
| 21843 | /* end confdefs.h. */ |
| 21844 | $ac_includes_default |
| 21845 | int |
| 21846 | main () |
| 21847 | { |
| 21848 | static struct stat ac_aggr; |
| 21849 | if (ac_aggr.st_gen) |
| 21850 | return 0; |
| 21851 | ; |
| 21852 | return 0; |
| 21853 | } |
| 21854 | _ACEOF |
| 21855 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21856 | if { (ac_try="$ac_compile" |
| 21857 | case "(($ac_try" in |
| 21858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21859 | *) ac_try_echo=$ac_try;; |
| 21860 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21862 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21863 | ac_status=$? |
| 21864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21865 | rm -f conftest.er1 |
| 21866 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21868 | (exit $ac_status); } && { |
| 21869 | test -z "$ac_c_werror_flag" || |
| 21870 | test ! -s conftest.err |
| 21871 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21872 | ac_cv_member_struct_stat_st_gen=yes |
| 21873 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21874 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21877 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21878 | /* confdefs.h. */ |
| 21879 | _ACEOF |
| 21880 | cat confdefs.h >>conftest.$ac_ext |
| 21881 | cat >>conftest.$ac_ext <<_ACEOF |
| 21882 | /* end confdefs.h. */ |
| 21883 | $ac_includes_default |
| 21884 | int |
| 21885 | main () |
| 21886 | { |
| 21887 | static struct stat ac_aggr; |
| 21888 | if (sizeof ac_aggr.st_gen) |
| 21889 | return 0; |
| 21890 | ; |
| 21891 | return 0; |
| 21892 | } |
| 21893 | _ACEOF |
| 21894 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21895 | if { (ac_try="$ac_compile" |
| 21896 | case "(($ac_try" in |
| 21897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21898 | *) ac_try_echo=$ac_try;; |
| 21899 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21901 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21902 | ac_status=$? |
| 21903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21904 | rm -f conftest.er1 |
| 21905 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21907 | (exit $ac_status); } && { |
| 21908 | test -z "$ac_c_werror_flag" || |
| 21909 | test ! -s conftest.err |
| 21910 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21911 | ac_cv_member_struct_stat_st_gen=yes |
| 21912 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21913 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21915 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21916 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21918 | |
| 21919 | 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] | 21920 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21921 | |
| 21922 | 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] | 21923 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21924 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21925 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21926 | 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] | 21927 | |
| 21928 | cat >>confdefs.h <<_ACEOF |
| 21929 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21930 | _ACEOF |
| 21931 | |
| 21932 | |
| 21933 | fi |
| 21934 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21935 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21936 | 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] | 21937 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21939 | else |
| 21940 | cat >conftest.$ac_ext <<_ACEOF |
| 21941 | /* confdefs.h. */ |
| 21942 | _ACEOF |
| 21943 | cat confdefs.h >>conftest.$ac_ext |
| 21944 | cat >>conftest.$ac_ext <<_ACEOF |
| 21945 | /* end confdefs.h. */ |
| 21946 | $ac_includes_default |
| 21947 | int |
| 21948 | main () |
| 21949 | { |
| 21950 | static struct stat ac_aggr; |
| 21951 | if (ac_aggr.st_birthtime) |
| 21952 | return 0; |
| 21953 | ; |
| 21954 | return 0; |
| 21955 | } |
| 21956 | _ACEOF |
| 21957 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21958 | if { (ac_try="$ac_compile" |
| 21959 | case "(($ac_try" in |
| 21960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21961 | *) ac_try_echo=$ac_try;; |
| 21962 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21964 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21965 | ac_status=$? |
| 21966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21967 | rm -f conftest.er1 |
| 21968 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21970 | (exit $ac_status); } && { |
| 21971 | test -z "$ac_c_werror_flag" || |
| 21972 | test ! -s conftest.err |
| 21973 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21974 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21975 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21976 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21979 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21980 | /* confdefs.h. */ |
| 21981 | _ACEOF |
| 21982 | cat confdefs.h >>conftest.$ac_ext |
| 21983 | cat >>conftest.$ac_ext <<_ACEOF |
| 21984 | /* end confdefs.h. */ |
| 21985 | $ac_includes_default |
| 21986 | int |
| 21987 | main () |
| 21988 | { |
| 21989 | static struct stat ac_aggr; |
| 21990 | if (sizeof ac_aggr.st_birthtime) |
| 21991 | return 0; |
| 21992 | ; |
| 21993 | return 0; |
| 21994 | } |
| 21995 | _ACEOF |
| 21996 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21997 | if { (ac_try="$ac_compile" |
| 21998 | case "(($ac_try" in |
| 21999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22000 | *) ac_try_echo=$ac_try;; |
| 22001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22004 | ac_status=$? |
| 22005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22006 | rm -f conftest.er1 |
| 22007 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22009 | (exit $ac_status); } && { |
| 22010 | test -z "$ac_c_werror_flag" || |
| 22011 | test ! -s conftest.err |
| 22012 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22013 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22014 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22015 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22017 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22018 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22019 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22020 | |
| 22021 | 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] | 22022 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22023 | |
| 22024 | 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] | 22025 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22026 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22027 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22028 | 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] | 22029 | |
| 22030 | cat >>confdefs.h <<_ACEOF |
| 22031 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22032 | _ACEOF |
| 22033 | |
| 22034 | |
| 22035 | fi |
| 22036 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22037 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22038 | 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] | 22039 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22043 | /* confdefs.h. */ |
| 22044 | _ACEOF |
| 22045 | cat confdefs.h >>conftest.$ac_ext |
| 22046 | cat >>conftest.$ac_ext <<_ACEOF |
| 22047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22048 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22049 | int |
| 22050 | main () |
| 22051 | { |
| 22052 | static struct stat ac_aggr; |
| 22053 | if (ac_aggr.st_blocks) |
| 22054 | return 0; |
| 22055 | ; |
| 22056 | return 0; |
| 22057 | } |
| 22058 | _ACEOF |
| 22059 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22060 | if { (ac_try="$ac_compile" |
| 22061 | case "(($ac_try" in |
| 22062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22063 | *) ac_try_echo=$ac_try;; |
| 22064 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22066 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22069 | rm -f conftest.er1 |
| 22070 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22072 | (exit $ac_status); } && { |
| 22073 | test -z "$ac_c_werror_flag" || |
| 22074 | test ! -s conftest.err |
| 22075 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22076 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22077 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22082 | /* confdefs.h. */ |
| 22083 | _ACEOF |
| 22084 | cat confdefs.h >>conftest.$ac_ext |
| 22085 | cat >>conftest.$ac_ext <<_ACEOF |
| 22086 | /* end confdefs.h. */ |
| 22087 | $ac_includes_default |
| 22088 | int |
| 22089 | main () |
| 22090 | { |
| 22091 | static struct stat ac_aggr; |
| 22092 | if (sizeof ac_aggr.st_blocks) |
| 22093 | return 0; |
| 22094 | ; |
| 22095 | return 0; |
| 22096 | } |
| 22097 | _ACEOF |
| 22098 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22099 | if { (ac_try="$ac_compile" |
| 22100 | case "(($ac_try" in |
| 22101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22102 | *) ac_try_echo=$ac_try;; |
| 22103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22105 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22108 | rm -f conftest.er1 |
| 22109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22111 | (exit $ac_status); } && { |
| 22112 | test -z "$ac_c_werror_flag" || |
| 22113 | test ! -s conftest.err |
| 22114 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22115 | ac_cv_member_struct_stat_st_blocks=yes |
| 22116 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22120 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22121 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22122 | |
| 22123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22124 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22125 | |
| 22126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22128 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22129 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22130 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22132 | cat >>confdefs.h <<_ACEOF |
| 22133 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22134 | _ACEOF |
| 22135 | |
| 22136 | |
| 22137 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22138 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22139 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22140 | |
| 22141 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22142 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22143 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22144 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22145 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22146 | esac |
| 22147 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22148 | fi |
| 22149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22151 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22152 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22153 | 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] | 22154 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22158 | /* confdefs.h. */ |
| 22159 | _ACEOF |
| 22160 | cat confdefs.h >>conftest.$ac_ext |
| 22161 | cat >>conftest.$ac_ext <<_ACEOF |
| 22162 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22163 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22164 | int |
| 22165 | main () |
| 22166 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22167 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22168 | ; |
| 22169 | return 0; |
| 22170 | } |
| 22171 | _ACEOF |
| 22172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22173 | if { (ac_try="$ac_compile" |
| 22174 | case "(($ac_try" in |
| 22175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22176 | *) ac_try_echo=$ac_try;; |
| 22177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22182 | rm -f conftest.er1 |
| 22183 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22185 | (exit $ac_status); } && { |
| 22186 | test -z "$ac_c_werror_flag" || |
| 22187 | test ! -s conftest.err |
| 22188 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22189 | ac_cv_header_time_altzone=yes |
| 22190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22194 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22195 | fi |
| 22196 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22198 | fi |
| 22199 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22200 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22201 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22202 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22203 | |
| 22204 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22205 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22206 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22207 | |
| 22208 | fi |
| 22209 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22210 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22211 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22212 | 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] | 22213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22214 | /* confdefs.h. */ |
| 22215 | _ACEOF |
| 22216 | cat confdefs.h >>conftest.$ac_ext |
| 22217 | cat >>conftest.$ac_ext <<_ACEOF |
| 22218 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22219 | |
| 22220 | #include <sys/types.h> |
| 22221 | #include <sys/select.h> |
| 22222 | #include <sys/time.h> |
| 22223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22224 | int |
| 22225 | main () |
| 22226 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22227 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22228 | ; |
| 22229 | return 0; |
| 22230 | } |
| 22231 | _ACEOF |
| 22232 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22233 | if { (ac_try="$ac_compile" |
| 22234 | case "(($ac_try" in |
| 22235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22236 | *) ac_try_echo=$ac_try;; |
| 22237 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22242 | rm -f conftest.er1 |
| 22243 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22245 | (exit $ac_status); } && { |
| 22246 | test -z "$ac_c_werror_flag" || |
| 22247 | test ! -s conftest.err |
| 22248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22249 | |
| 22250 | |
| 22251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22252 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22253 | _ACEOF |
| 22254 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22255 | was_it_defined=yes |
| 22256 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22257 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22260 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22261 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22262 | fi |
| 22263 | |
| 22264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22265 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22266 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22267 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22268 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22269 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22270 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22274 | /* confdefs.h. */ |
| 22275 | _ACEOF |
| 22276 | cat confdefs.h >>conftest.$ac_ext |
| 22277 | cat >>conftest.$ac_ext <<_ACEOF |
| 22278 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22279 | |
| 22280 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22281 | int |
| 22282 | main () |
| 22283 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22284 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22285 | ; |
| 22286 | return 0; |
| 22287 | } |
| 22288 | _ACEOF |
| 22289 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22290 | if { (ac_try="$ac_compile" |
| 22291 | case "(($ac_try" in |
| 22292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22293 | *) ac_try_echo=$ac_try;; |
| 22294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22296 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22297 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22299 | rm -f conftest.er1 |
| 22300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22302 | (exit $ac_status); } && { |
| 22303 | test -z "$ac_c_werror_flag" || |
| 22304 | test ! -s conftest.err |
| 22305 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22306 | ac_cv_struct_addrinfo=yes |
| 22307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22311 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22312 | fi |
| 22313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22315 | fi |
| 22316 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22317 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22318 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22319 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22320 | |
| 22321 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22322 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22324 | |
| 22325 | fi |
| 22326 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22327 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22328 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22329 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22333 | /* confdefs.h. */ |
| 22334 | _ACEOF |
| 22335 | cat confdefs.h >>conftest.$ac_ext |
| 22336 | cat >>conftest.$ac_ext <<_ACEOF |
| 22337 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22338 | |
| 22339 | # include <sys/types.h> |
| 22340 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22341 | int |
| 22342 | main () |
| 22343 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22344 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22345 | ; |
| 22346 | return 0; |
| 22347 | } |
| 22348 | _ACEOF |
| 22349 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22350 | if { (ac_try="$ac_compile" |
| 22351 | case "(($ac_try" in |
| 22352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22353 | *) ac_try_echo=$ac_try;; |
| 22354 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22356 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22357 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22359 | rm -f conftest.er1 |
| 22360 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22362 | (exit $ac_status); } && { |
| 22363 | test -z "$ac_c_werror_flag" || |
| 22364 | test ! -s conftest.err |
| 22365 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22366 | ac_cv_struct_sockaddr_storage=yes |
| 22367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22371 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22372 | fi |
| 22373 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22375 | fi |
| 22376 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22377 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22378 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22379 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22380 | |
| 22381 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22382 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22383 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22384 | |
| 22385 | fi |
| 22386 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22387 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22389 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22390 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22391 | 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] | 22392 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22396 | /* confdefs.h. */ |
| 22397 | _ACEOF |
| 22398 | cat confdefs.h >>conftest.$ac_ext |
| 22399 | cat >>conftest.$ac_ext <<_ACEOF |
| 22400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22401 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22402 | int |
| 22403 | main () |
| 22404 | { |
| 22405 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22406 | test_array [0] = 0 |
| 22407 | |
| 22408 | ; |
| 22409 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22410 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22411 | _ACEOF |
| 22412 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22413 | if { (ac_try="$ac_compile" |
| 22414 | case "(($ac_try" in |
| 22415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22416 | *) ac_try_echo=$ac_try;; |
| 22417 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22419 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22420 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22422 | rm -f conftest.er1 |
| 22423 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22425 | (exit $ac_status); } && { |
| 22426 | test -z "$ac_c_werror_flag" || |
| 22427 | test ! -s conftest.err |
| 22428 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22429 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22430 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22431 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22433 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22434 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22436 | |
| 22437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22438 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22439 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22440 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22441 | 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] | 22442 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22443 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22444 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22445 | |
| 22446 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22447 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22448 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22449 | 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] | 22450 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22452 | else |
| 22453 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22454 | /* confdefs.h. */ |
| 22455 | _ACEOF |
| 22456 | cat confdefs.h >>conftest.$ac_ext |
| 22457 | cat >>conftest.$ac_ext <<_ACEOF |
| 22458 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22460 | int |
| 22461 | main () |
| 22462 | { |
| 22463 | /* FIXME: Include the comments suggested by Paul. */ |
| 22464 | #ifndef __cplusplus |
| 22465 | /* Ultrix mips cc rejects this. */ |
| 22466 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22467 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22468 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22469 | char const *const *pcpcc; |
| 22470 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22471 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22472 | struct point {int x, y;}; |
| 22473 | static struct point const zero = {0,0}; |
| 22474 | /* AIX XL C 1.02.0.0 rejects this. |
| 22475 | It does not let you subtract one const X* pointer from another in |
| 22476 | an arm of an if-expression whose if-part is not a constant |
| 22477 | expression */ |
| 22478 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22479 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22480 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22481 | ++pcpcc; |
| 22482 | ppc = (char**) pcpcc; |
| 22483 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22484 | { /* SCO 3.2v4 cc rejects this. */ |
| 22485 | char *t; |
| 22486 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22488 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22489 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22490 | } |
| 22491 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22492 | int x[] = {25, 17}; |
| 22493 | const int *foo = &x[0]; |
| 22494 | ++foo; |
| 22495 | } |
| 22496 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22497 | typedef const int *iptr; |
| 22498 | iptr p = 0; |
| 22499 | ++p; |
| 22500 | } |
| 22501 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22502 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22503 | struct s { int j; const int *ap[3]; }; |
| 22504 | struct s *b; b->j = 5; |
| 22505 | } |
| 22506 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22507 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22508 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22509 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22510 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22511 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22513 | ; |
| 22514 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22515 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22516 | _ACEOF |
| 22517 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22518 | if { (ac_try="$ac_compile" |
| 22519 | case "(($ac_try" in |
| 22520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22521 | *) ac_try_echo=$ac_try;; |
| 22522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22527 | rm -f conftest.er1 |
| 22528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22530 | (exit $ac_status); } && { |
| 22531 | test -z "$ac_c_werror_flag" || |
| 22532 | test ! -s conftest.err |
| 22533 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22534 | ac_cv_c_const=yes |
| 22535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22538 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22539 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22540 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22541 | |
| 22542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22543 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22544 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22545 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22546 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22547 | |
| 22548 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22549 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22550 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22551 | |
| 22552 | fi |
| 22553 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22554 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22555 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22556 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22557 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22558 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22559 | /* confdefs.h. */ |
| 22560 | _ACEOF |
| 22561 | cat confdefs.h >>conftest.$ac_ext |
| 22562 | cat >>conftest.$ac_ext <<_ACEOF |
| 22563 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22565 | int |
| 22566 | main () |
| 22567 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22568 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22569 | ; |
| 22570 | return 0; |
| 22571 | } |
| 22572 | _ACEOF |
| 22573 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22574 | if { (ac_try="$ac_compile" |
| 22575 | case "(($ac_try" in |
| 22576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22577 | *) ac_try_echo=$ac_try;; |
| 22578 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22580 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22581 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22583 | rm -f conftest.er1 |
| 22584 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22586 | (exit $ac_status); } && { |
| 22587 | test -z "$ac_c_werror_flag" || |
| 22588 | test ! -s conftest.err |
| 22589 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22590 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22591 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22595 | |
| 22596 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22597 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22598 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22599 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22600 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22602 | |
| 22603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22604 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22605 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22606 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22607 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22608 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22609 | 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] | 22610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22611 | /* confdefs.h. */ |
| 22612 | _ACEOF |
| 22613 | cat confdefs.h >>conftest.$ac_ext |
| 22614 | cat >>conftest.$ac_ext <<_ACEOF |
| 22615 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22617 | int |
| 22618 | main () |
| 22619 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22620 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22621 | ; |
| 22622 | return 0; |
| 22623 | } |
| 22624 | _ACEOF |
| 22625 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22626 | if { (ac_try="$ac_compile" |
| 22627 | case "(($ac_try" in |
| 22628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22629 | *) ac_try_echo=$ac_try;; |
| 22630 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22632 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22635 | rm -f conftest.er1 |
| 22636 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22638 | (exit $ac_status); } && { |
| 22639 | test -z "$ac_c_werror_flag" || |
| 22640 | test ! -s conftest.err |
| 22641 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22642 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22643 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22647 | |
| 22648 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22649 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22650 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22651 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22652 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22653 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22654 | |
| 22655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22656 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22657 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22658 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22659 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22660 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22661 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22663 | /* confdefs.h. */ |
| 22664 | _ACEOF |
| 22665 | cat confdefs.h >>conftest.$ac_ext |
| 22666 | cat >>conftest.$ac_ext <<_ACEOF |
| 22667 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22668 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22669 | int |
| 22670 | main () |
| 22671 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22672 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22673 | ; |
| 22674 | return 0; |
| 22675 | } |
| 22676 | _ACEOF |
| 22677 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22678 | if { (ac_try="$ac_compile" |
| 22679 | case "(($ac_try" in |
| 22680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22681 | *) ac_try_echo=$ac_try;; |
| 22682 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22684 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22685 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22687 | rm -f conftest.er1 |
| 22688 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22690 | (exit $ac_status); } && { |
| 22691 | test -z "$ac_c_werror_flag" || |
| 22692 | test ! -s conftest.err |
| 22693 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | |
| 22695 | |
| 22696 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22697 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22698 | _ACEOF |
| 22699 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22700 | have_prototypes=yes |
| 22701 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22702 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22705 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22706 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22707 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22708 | |
| 22709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22710 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22711 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22712 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22713 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22714 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22715 | 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] | 22716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22717 | /* confdefs.h. */ |
| 22718 | _ACEOF |
| 22719 | cat confdefs.h >>conftest.$ac_ext |
| 22720 | cat >>conftest.$ac_ext <<_ACEOF |
| 22721 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22722 | |
| 22723 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22724 | int foo(int x, ...) { |
| 22725 | va_list va; |
| 22726 | va_start(va, x); |
| 22727 | va_arg(va, int); |
| 22728 | va_arg(va, char *); |
| 22729 | va_arg(va, double); |
| 22730 | return 0; |
| 22731 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22733 | int |
| 22734 | main () |
| 22735 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22736 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22737 | ; |
| 22738 | return 0; |
| 22739 | } |
| 22740 | _ACEOF |
| 22741 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22742 | if { (ac_try="$ac_compile" |
| 22743 | case "(($ac_try" in |
| 22744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22745 | *) ac_try_echo=$ac_try;; |
| 22746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22748 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22751 | rm -f conftest.er1 |
| 22752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22754 | (exit $ac_status); } && { |
| 22755 | test -z "$ac_c_werror_flag" || |
| 22756 | test ! -s conftest.err |
| 22757 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22758 | |
| 22759 | |
| 22760 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22761 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22762 | _ACEOF |
| 22763 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22764 | works=yes |
| 22765 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22770 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22771 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22772 | |
| 22773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22774 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22775 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22776 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22777 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22778 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22779 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22780 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22781 | /* confdefs.h. */ |
| 22782 | _ACEOF |
| 22783 | cat confdefs.h >>conftest.$ac_ext |
| 22784 | cat >>conftest.$ac_ext <<_ACEOF |
| 22785 | /* end confdefs.h. */ |
| 22786 | |
| 22787 | #include <sys/types.h> |
| 22788 | #include <sys/socket.h> |
| 22789 | |
| 22790 | int |
| 22791 | main () |
| 22792 | { |
| 22793 | void *x=socketpair |
| 22794 | ; |
| 22795 | return 0; |
| 22796 | } |
| 22797 | _ACEOF |
| 22798 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22799 | if { (ac_try="$ac_compile" |
| 22800 | case "(($ac_try" in |
| 22801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22802 | *) ac_try_echo=$ac_try;; |
| 22803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22808 | rm -f conftest.er1 |
| 22809 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22811 | (exit $ac_status); } && { |
| 22812 | test -z "$ac_c_werror_flag" || |
| 22813 | test ! -s conftest.err |
| 22814 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22815 | |
| 22816 | cat >>confdefs.h <<\_ACEOF |
| 22817 | #define HAVE_SOCKETPAIR 1 |
| 22818 | _ACEOF |
| 22819 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22820 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22821 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22822 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22823 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22826 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22827 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22828 | |
| 22829 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22830 | |
| 22831 | 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] | 22832 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22833 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22834 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22835 | 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] | 22836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22837 | /* confdefs.h. */ |
| 22838 | _ACEOF |
| 22839 | cat confdefs.h >>conftest.$ac_ext |
| 22840 | cat >>conftest.$ac_ext <<_ACEOF |
| 22841 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22842 | #include <sys/types.h> |
| 22843 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22844 | int |
| 22845 | main () |
| 22846 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22847 | struct sockaddr x; |
| 22848 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22849 | ; |
| 22850 | return 0; |
| 22851 | } |
| 22852 | _ACEOF |
| 22853 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22854 | if { (ac_try="$ac_compile" |
| 22855 | case "(($ac_try" in |
| 22856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22857 | *) ac_try_echo=$ac_try;; |
| 22858 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22860 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22863 | rm -f conftest.er1 |
| 22864 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22866 | (exit $ac_status); } && { |
| 22867 | test -z "$ac_c_werror_flag" || |
| 22868 | test ! -s conftest.err |
| 22869 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22870 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22871 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22872 | |
| 22873 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22874 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22875 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22876 | |
| 22877 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22878 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22882 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22883 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22884 | |
| 22885 | 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] | 22886 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22887 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22888 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22889 | 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] | 22890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22891 | /* confdefs.h. */ |
| 22892 | _ACEOF |
| 22893 | cat confdefs.h >>conftest.$ac_ext |
| 22894 | cat >>conftest.$ac_ext <<_ACEOF |
| 22895 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22896 | |
| 22897 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22898 | #include <stdarg.h> |
| 22899 | #else |
| 22900 | #include <varargs.h> |
| 22901 | #endif |
| 22902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22903 | int |
| 22904 | main () |
| 22905 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22906 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22907 | ; |
| 22908 | return 0; |
| 22909 | } |
| 22910 | _ACEOF |
| 22911 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22912 | if { (ac_try="$ac_compile" |
| 22913 | case "(($ac_try" in |
| 22914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22915 | *) ac_try_echo=$ac_try;; |
| 22916 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22918 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22921 | rm -f conftest.er1 |
| 22922 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22924 | (exit $ac_status); } && { |
| 22925 | test -z "$ac_c_werror_flag" || |
| 22926 | test ! -s conftest.err |
| 22927 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22928 | : |
| 22929 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22933 | |
| 22934 | |
| 22935 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22936 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22937 | _ACEOF |
| 22938 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22939 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22940 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22941 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22942 | |
| 22943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22944 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22945 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22946 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22947 | # 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] | 22948 | |
| 22949 | |
| 22950 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22951 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22952 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22953 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22956 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22957 | /* confdefs.h. */ |
| 22958 | _ACEOF |
| 22959 | cat confdefs.h >>conftest.$ac_ext |
| 22960 | cat >>conftest.$ac_ext <<_ACEOF |
| 22961 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22962 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22964 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22965 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22966 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22967 | which can conflict with char gethostbyname_r (); below. |
| 22968 | 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] | 22969 | <limits.h> exists even on freestanding compilers. */ |
| 22970 | |
| 22971 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22972 | # include <limits.h> |
| 22973 | #else |
| 22974 | # include <assert.h> |
| 22975 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22976 | |
| 22977 | #undef gethostbyname_r |
| 22978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22979 | /* Override any GCC internal prototype to avoid an error. |
| 22980 | Use char because int might match the return type of a GCC |
| 22981 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22982 | #ifdef __cplusplus |
| 22983 | extern "C" |
| 22984 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22985 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22986 | /* The GNU C library defines this for functions which it implements |
| 22987 | to always fail with ENOSYS. Some functions are actually named |
| 22988 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22989 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22990 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22991 | #endif |
| 22992 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22993 | int |
| 22994 | main () |
| 22995 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22996 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22997 | ; |
| 22998 | return 0; |
| 22999 | } |
| 23000 | _ACEOF |
| 23001 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23002 | if { (ac_try="$ac_link" |
| 23003 | case "(($ac_try" in |
| 23004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23005 | *) ac_try_echo=$ac_try;; |
| 23006 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23008 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23009 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23011 | rm -f conftest.er1 |
| 23012 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23014 | (exit $ac_status); } && { |
| 23015 | test -z "$ac_c_werror_flag" || |
| 23016 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23017 | } && test -s conftest$ac_exeext && |
| 23018 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23019 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23020 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23024 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23025 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23026 | |
| 23027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23028 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23029 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23030 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23031 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23032 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23034 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23035 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23036 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23038 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23039 | 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] | 23040 | OLD_CFLAGS=$CFLAGS |
| 23041 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23043 | /* confdefs.h. */ |
| 23044 | _ACEOF |
| 23045 | cat confdefs.h >>conftest.$ac_ext |
| 23046 | cat >>conftest.$ac_ext <<_ACEOF |
| 23047 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23048 | |
| 23049 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23051 | int |
| 23052 | main () |
| 23053 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23054 | |
| 23055 | char *name; |
| 23056 | struct hostent *he, *res; |
| 23057 | char buffer[2048]; |
| 23058 | int buflen = 2048; |
| 23059 | int h_errnop; |
| 23060 | |
| 23061 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23062 | |
| 23063 | ; |
| 23064 | return 0; |
| 23065 | } |
| 23066 | _ACEOF |
| 23067 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23068 | if { (ac_try="$ac_compile" |
| 23069 | case "(($ac_try" in |
| 23070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23071 | *) ac_try_echo=$ac_try;; |
| 23072 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23074 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23075 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23077 | rm -f conftest.er1 |
| 23078 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23080 | (exit $ac_status); } && { |
| 23081 | test -z "$ac_c_werror_flag" || |
| 23082 | test ! -s conftest.err |
| 23083 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23084 | |
| 23085 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23086 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23087 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23089 | |
| 23090 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23091 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23092 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23094 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23095 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23096 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23101 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23103 | echo "${ECHO_T}no" >&6; } |
| 23104 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23105 | 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] | 23106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23107 | /* confdefs.h. */ |
| 23108 | _ACEOF |
| 23109 | cat confdefs.h >>conftest.$ac_ext |
| 23110 | cat >>conftest.$ac_ext <<_ACEOF |
| 23111 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23112 | |
| 23113 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23115 | int |
| 23116 | main () |
| 23117 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23118 | |
| 23119 | char *name; |
| 23120 | struct hostent *he; |
| 23121 | char buffer[2048]; |
| 23122 | int buflen = 2048; |
| 23123 | int h_errnop; |
| 23124 | |
| 23125 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23126 | |
| 23127 | ; |
| 23128 | return 0; |
| 23129 | } |
| 23130 | _ACEOF |
| 23131 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23132 | if { (ac_try="$ac_compile" |
| 23133 | case "(($ac_try" in |
| 23134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23135 | *) ac_try_echo=$ac_try;; |
| 23136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23138 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23141 | rm -f conftest.er1 |
| 23142 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23144 | (exit $ac_status); } && { |
| 23145 | test -z "$ac_c_werror_flag" || |
| 23146 | test ! -s conftest.err |
| 23147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23148 | |
| 23149 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23150 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23151 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23153 | |
| 23154 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23155 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23156 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23157 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23158 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23159 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23160 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23161 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23165 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23166 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23167 | echo "${ECHO_T}no" >&6; } |
| 23168 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23169 | 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] | 23170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23171 | /* confdefs.h. */ |
| 23172 | _ACEOF |
| 23173 | cat confdefs.h >>conftest.$ac_ext |
| 23174 | cat >>conftest.$ac_ext <<_ACEOF |
| 23175 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23176 | |
| 23177 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23179 | int |
| 23180 | main () |
| 23181 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23182 | |
| 23183 | char *name; |
| 23184 | struct hostent *he; |
| 23185 | struct hostent_data data; |
| 23186 | |
| 23187 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23188 | |
| 23189 | ; |
| 23190 | return 0; |
| 23191 | } |
| 23192 | _ACEOF |
| 23193 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23194 | if { (ac_try="$ac_compile" |
| 23195 | case "(($ac_try" in |
| 23196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23197 | *) ac_try_echo=$ac_try;; |
| 23198 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23201 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23203 | rm -f conftest.er1 |
| 23204 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23206 | (exit $ac_status); } && { |
| 23207 | test -z "$ac_c_werror_flag" || |
| 23208 | test ! -s conftest.err |
| 23209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23210 | |
| 23211 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23212 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23213 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23215 | |
| 23216 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23217 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23218 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23219 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23220 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23221 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23222 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23227 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23228 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23229 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23230 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23231 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23232 | |
| 23233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23234 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23235 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23236 | |
| 23237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23238 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23240 | |
| 23241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23242 | CFLAGS=$OLD_CFLAGS |
| 23243 | |
| 23244 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23246 | |
| 23247 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23248 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23249 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23250 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23251 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23252 | 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] | 23253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23255 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23256 | /* confdefs.h. */ |
| 23257 | _ACEOF |
| 23258 | cat confdefs.h >>conftest.$ac_ext |
| 23259 | cat >>conftest.$ac_ext <<_ACEOF |
| 23260 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23261 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23263 | #define $ac_func innocuous_$ac_func |
| 23264 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23265 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23266 | which can conflict with char $ac_func (); below. |
| 23267 | 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] | 23268 | <limits.h> exists even on freestanding compilers. */ |
| 23269 | |
| 23270 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23271 | # include <limits.h> |
| 23272 | #else |
| 23273 | # include <assert.h> |
| 23274 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23275 | |
| 23276 | #undef $ac_func |
| 23277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23278 | /* Override any GCC internal prototype to avoid an error. |
| 23279 | Use char because int might match the return type of a GCC |
| 23280 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | #ifdef __cplusplus |
| 23282 | extern "C" |
| 23283 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23285 | /* The GNU C library defines this for functions which it implements |
| 23286 | to always fail with ENOSYS. Some functions are actually named |
| 23287 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23288 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23289 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23290 | #endif |
| 23291 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23292 | int |
| 23293 | main () |
| 23294 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23295 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23296 | ; |
| 23297 | return 0; |
| 23298 | } |
| 23299 | _ACEOF |
| 23300 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23301 | if { (ac_try="$ac_link" |
| 23302 | case "(($ac_try" in |
| 23303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23304 | *) ac_try_echo=$ac_try;; |
| 23305 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23307 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23308 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23310 | rm -f conftest.er1 |
| 23311 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23313 | (exit $ac_status); } && { |
| 23314 | test -z "$ac_c_werror_flag" || |
| 23315 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23316 | } && test -s conftest$ac_exeext && |
| 23317 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23318 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23319 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23320 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23322 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23323 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23324 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23325 | |
| 23326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23327 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23328 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23329 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23331 | echo "${ECHO_T}$ac_res" >&6; } |
| 23332 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23333 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23335 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23336 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23337 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23338 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23339 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23340 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23341 | fi |
| 23342 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23343 | |
| 23344 | |
| 23345 | |
| 23346 | |
| 23347 | |
| 23348 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23349 | # checks for system services |
| 23350 | # (none yet) |
| 23351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23352 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23353 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23354 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23355 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23359 | /* confdefs.h. */ |
| 23360 | _ACEOF |
| 23361 | cat confdefs.h >>conftest.$ac_ext |
| 23362 | cat >>conftest.$ac_ext <<_ACEOF |
| 23363 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23364 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23365 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23366 | #define __fpu_control innocuous___fpu_control |
| 23367 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23368 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23369 | which can conflict with char __fpu_control (); below. |
| 23370 | 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] | 23371 | <limits.h> exists even on freestanding compilers. */ |
| 23372 | |
| 23373 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23374 | # include <limits.h> |
| 23375 | #else |
| 23376 | # include <assert.h> |
| 23377 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23378 | |
| 23379 | #undef __fpu_control |
| 23380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23381 | /* Override any GCC internal prototype to avoid an error. |
| 23382 | Use char because int might match the return type of a GCC |
| 23383 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23384 | #ifdef __cplusplus |
| 23385 | extern "C" |
| 23386 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23387 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23388 | /* The GNU C library defines this for functions which it implements |
| 23389 | to always fail with ENOSYS. Some functions are actually named |
| 23390 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23391 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23392 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23393 | #endif |
| 23394 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23395 | int |
| 23396 | main () |
| 23397 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23398 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23399 | ; |
| 23400 | return 0; |
| 23401 | } |
| 23402 | _ACEOF |
| 23403 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23404 | if { (ac_try="$ac_link" |
| 23405 | case "(($ac_try" in |
| 23406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23407 | *) ac_try_echo=$ac_try;; |
| 23408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23410 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23413 | rm -f conftest.er1 |
| 23414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23416 | (exit $ac_status); } && { |
| 23417 | test -z "$ac_c_werror_flag" || |
| 23418 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23419 | } && test -s conftest$ac_exeext && |
| 23420 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23421 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23422 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23426 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23427 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23428 | |
| 23429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23430 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23431 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23432 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23433 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23434 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23435 | : |
| 23436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23437 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23438 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23439 | 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] | 23440 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23443 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23444 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23445 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23446 | /* confdefs.h. */ |
| 23447 | _ACEOF |
| 23448 | cat confdefs.h >>conftest.$ac_ext |
| 23449 | cat >>conftest.$ac_ext <<_ACEOF |
| 23450 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23451 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23452 | /* Override any GCC internal prototype to avoid an error. |
| 23453 | Use char because int might match the return type of a GCC |
| 23454 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23455 | #ifdef __cplusplus |
| 23456 | extern "C" |
| 23457 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23458 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23459 | int |
| 23460 | main () |
| 23461 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23462 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23463 | ; |
| 23464 | return 0; |
| 23465 | } |
| 23466 | _ACEOF |
| 23467 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23468 | if { (ac_try="$ac_link" |
| 23469 | case "(($ac_try" in |
| 23470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23471 | *) ac_try_echo=$ac_try;; |
| 23472 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23474 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23475 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23477 | rm -f conftest.er1 |
| 23478 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23480 | (exit $ac_status); } && { |
| 23481 | test -z "$ac_c_werror_flag" || |
| 23482 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23483 | } && test -s conftest$ac_exeext && |
| 23484 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23485 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23486 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23487 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23489 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23490 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23492 | |
| 23493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23494 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23495 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23496 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23497 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23498 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23499 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23500 | cat >>confdefs.h <<_ACEOF |
| 23501 | #define HAVE_LIBIEEE 1 |
| 23502 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23503 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23504 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23505 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23506 | fi |
| 23507 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23508 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23509 | fi |
| 23510 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23511 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23512 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23513 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23514 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23516 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23517 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23518 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23519 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23520 | then |
| 23521 | |
| 23522 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23523 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23524 | _ACEOF |
| 23525 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23526 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23527 | echo "${ECHO_T}yes" >&6; } |
| 23528 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23529 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23530 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23532 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23533 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23534 | fi |
| 23535 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23536 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23537 | # check for --with-libm=... |
| 23538 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23539 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23540 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23541 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23542 | *) LIBM=-lm |
| 23543 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23544 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23545 | 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] | 23546 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23547 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23548 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23549 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23550 | if test "$withval" = no |
| 23551 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23552 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23553 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23554 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23555 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23556 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23557 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23558 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23559 | 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] | 23560 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23561 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23562 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23563 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23564 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23565 | fi |
| 23566 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23567 | |
| 23568 | # check for --with-libc=... |
| 23569 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23570 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23571 | 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] | 23572 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23573 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23574 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23575 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23576 | if test "$withval" = no |
| 23577 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23578 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23579 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23580 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23581 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23582 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23583 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23584 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23585 | 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] | 23586 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23587 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23588 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23589 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23590 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23591 | fi |
| 23592 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23593 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23594 | # ************************************************** |
| 23595 | # * Check for various properties of floating point * |
| 23596 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23597 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23598 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23599 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23600 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23602 | else |
| 23603 | |
| 23604 | if test "$cross_compiling" = yes; then |
| 23605 | ac_cv_little_endian_double=no |
| 23606 | else |
| 23607 | cat >conftest.$ac_ext <<_ACEOF |
| 23608 | /* confdefs.h. */ |
| 23609 | _ACEOF |
| 23610 | cat confdefs.h >>conftest.$ac_ext |
| 23611 | cat >>conftest.$ac_ext <<_ACEOF |
| 23612 | /* end confdefs.h. */ |
| 23613 | |
| 23614 | #include <string.h> |
| 23615 | int main() { |
| 23616 | double x = 9006104071832581.0; |
| 23617 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23618 | return 0; |
| 23619 | else |
| 23620 | return 1; |
| 23621 | } |
| 23622 | |
| 23623 | _ACEOF |
| 23624 | rm -f conftest$ac_exeext |
| 23625 | if { (ac_try="$ac_link" |
| 23626 | case "(($ac_try" in |
| 23627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23628 | *) ac_try_echo=$ac_try;; |
| 23629 | esac |
| 23630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23631 | (eval "$ac_link") 2>&5 |
| 23632 | ac_status=$? |
| 23633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23635 | { (case "(($ac_try" in |
| 23636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23637 | *) ac_try_echo=$ac_try;; |
| 23638 | esac |
| 23639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23640 | (eval "$ac_try") 2>&5 |
| 23641 | ac_status=$? |
| 23642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23643 | (exit $ac_status); }; }; then |
| 23644 | ac_cv_little_endian_double=yes |
| 23645 | else |
| 23646 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23647 | echo "$as_me: failed program was:" >&5 |
| 23648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23649 | |
| 23650 | ( exit $ac_status ) |
| 23651 | ac_cv_little_endian_double=no |
| 23652 | fi |
| 23653 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23654 | fi |
| 23655 | |
| 23656 | |
| 23657 | fi |
| 23658 | |
| 23659 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23660 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23661 | if test "$ac_cv_little_endian_double" = yes |
| 23662 | then |
| 23663 | |
| 23664 | cat >>confdefs.h <<\_ACEOF |
| 23665 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23666 | _ACEOF |
| 23667 | |
| 23668 | fi |
| 23669 | |
| 23670 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23671 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23672 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23674 | else |
| 23675 | |
| 23676 | if test "$cross_compiling" = yes; then |
| 23677 | ac_cv_big_endian_double=no |
| 23678 | else |
| 23679 | cat >conftest.$ac_ext <<_ACEOF |
| 23680 | /* confdefs.h. */ |
| 23681 | _ACEOF |
| 23682 | cat confdefs.h >>conftest.$ac_ext |
| 23683 | cat >>conftest.$ac_ext <<_ACEOF |
| 23684 | /* end confdefs.h. */ |
| 23685 | |
| 23686 | #include <string.h> |
| 23687 | int main() { |
| 23688 | double x = 9006104071832581.0; |
| 23689 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23690 | return 0; |
| 23691 | else |
| 23692 | return 1; |
| 23693 | } |
| 23694 | |
| 23695 | _ACEOF |
| 23696 | rm -f conftest$ac_exeext |
| 23697 | if { (ac_try="$ac_link" |
| 23698 | case "(($ac_try" in |
| 23699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23700 | *) ac_try_echo=$ac_try;; |
| 23701 | esac |
| 23702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23703 | (eval "$ac_link") 2>&5 |
| 23704 | ac_status=$? |
| 23705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23707 | { (case "(($ac_try" in |
| 23708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23709 | *) ac_try_echo=$ac_try;; |
| 23710 | esac |
| 23711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23712 | (eval "$ac_try") 2>&5 |
| 23713 | ac_status=$? |
| 23714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23715 | (exit $ac_status); }; }; then |
| 23716 | ac_cv_big_endian_double=yes |
| 23717 | else |
| 23718 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23719 | echo "$as_me: failed program was:" >&5 |
| 23720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23721 | |
| 23722 | ( exit $ac_status ) |
| 23723 | ac_cv_big_endian_double=no |
| 23724 | fi |
| 23725 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23726 | fi |
| 23727 | |
| 23728 | |
| 23729 | fi |
| 23730 | |
| 23731 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23732 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23733 | if test "$ac_cv_big_endian_double" = yes |
| 23734 | then |
| 23735 | |
| 23736 | cat >>confdefs.h <<\_ACEOF |
| 23737 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23738 | _ACEOF |
| 23739 | |
| 23740 | fi |
| 23741 | |
| 23742 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23743 | # While Python doesn't currently have full support for these platforms |
| 23744 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23745 | # conversions work. |
| 23746 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23747 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23748 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23750 | else |
| 23751 | |
| 23752 | if test "$cross_compiling" = yes; then |
| 23753 | ac_cv_mixed_endian_double=no |
| 23754 | else |
| 23755 | cat >conftest.$ac_ext <<_ACEOF |
| 23756 | /* confdefs.h. */ |
| 23757 | _ACEOF |
| 23758 | cat confdefs.h >>conftest.$ac_ext |
| 23759 | cat >>conftest.$ac_ext <<_ACEOF |
| 23760 | /* end confdefs.h. */ |
| 23761 | |
| 23762 | #include <string.h> |
| 23763 | int main() { |
| 23764 | double x = 9006104071832581.0; |
| 23765 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23766 | return 0; |
| 23767 | else |
| 23768 | return 1; |
| 23769 | } |
| 23770 | |
| 23771 | _ACEOF |
| 23772 | rm -f conftest$ac_exeext |
| 23773 | if { (ac_try="$ac_link" |
| 23774 | case "(($ac_try" in |
| 23775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23776 | *) ac_try_echo=$ac_try;; |
| 23777 | esac |
| 23778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23779 | (eval "$ac_link") 2>&5 |
| 23780 | ac_status=$? |
| 23781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23783 | { (case "(($ac_try" in |
| 23784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23785 | *) ac_try_echo=$ac_try;; |
| 23786 | esac |
| 23787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23788 | (eval "$ac_try") 2>&5 |
| 23789 | ac_status=$? |
| 23790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23791 | (exit $ac_status); }; }; then |
| 23792 | ac_cv_mixed_endian_double=yes |
| 23793 | else |
| 23794 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23795 | echo "$as_me: failed program was:" >&5 |
| 23796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23797 | |
| 23798 | ( exit $ac_status ) |
| 23799 | ac_cv_mixed_endian_double=no |
| 23800 | fi |
| 23801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23802 | fi |
| 23803 | |
| 23804 | |
| 23805 | fi |
| 23806 | |
| 23807 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 23808 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 23809 | if test "$ac_cv_mixed_endian_double" = yes |
| 23810 | then |
| 23811 | |
| 23812 | cat >>confdefs.h <<\_ACEOF |
| 23813 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 23814 | _ACEOF |
| 23815 | |
| 23816 | fi |
| 23817 | |
| 23818 | # The short float repr introduced in Python 3.1 requires the |
| 23819 | # correctly-rounded string <-> double conversion functions from |
| 23820 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 23821 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23822 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23823 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23824 | |
| 23825 | # This inline assembler syntax may also work for suncc and icc, |
| 23826 | # so we try it on all platforms. |
| 23827 | |
| 23828 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23829 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23830 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23831 | /* confdefs.h. */ |
| 23832 | _ACEOF |
| 23833 | cat confdefs.h >>conftest.$ac_ext |
| 23834 | cat >>conftest.$ac_ext <<_ACEOF |
| 23835 | /* end confdefs.h. */ |
| 23836 | |
| 23837 | int |
| 23838 | main () |
| 23839 | { |
| 23840 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23841 | unsigned short cw; |
| 23842 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 23843 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23844 | |
| 23845 | ; |
| 23846 | return 0; |
| 23847 | } |
| 23848 | _ACEOF |
| 23849 | rm -f conftest.$ac_objext |
| 23850 | if { (ac_try="$ac_compile" |
| 23851 | case "(($ac_try" in |
| 23852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23853 | *) ac_try_echo=$ac_try;; |
| 23854 | esac |
| 23855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23856 | (eval "$ac_compile") 2>conftest.er1 |
| 23857 | ac_status=$? |
| 23858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23859 | rm -f conftest.er1 |
| 23860 | cat conftest.err >&5 |
| 23861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23862 | (exit $ac_status); } && { |
| 23863 | test -z "$ac_c_werror_flag" || |
| 23864 | test ! -s conftest.err |
| 23865 | } && test -s conftest.$ac_objext; then |
| 23866 | have_gcc_asm_for_x87=yes |
| 23867 | else |
| 23868 | echo "$as_me: failed program was:" >&5 |
| 23869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23870 | |
| 23871 | have_gcc_asm_for_x87=no |
| 23872 | fi |
| 23873 | |
| 23874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23875 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23876 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23877 | if test "$have_gcc_asm_for_x87" = yes |
| 23878 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23879 | |
| 23880 | cat >>confdefs.h <<\_ACEOF |
| 23881 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 23882 | _ACEOF |
| 23883 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23884 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23885 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23886 | # Detect whether system arithmetic is subject to x87-style double |
| 23887 | # rounding issues. The result of this test has little meaning on non |
| 23888 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23889 | # mode is round-to-nearest and double rounding issues are present, and |
| 23890 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23891 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23892 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 23893 | # $BASECFLAGS may affect the result |
| 23894 | ac_save_cc="$CC" |
| 23895 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23896 | if test "$cross_compiling" = yes; then |
| 23897 | ac_cv_x87_double_rounding=no |
| 23898 | else |
| 23899 | cat >conftest.$ac_ext <<_ACEOF |
| 23900 | /* confdefs.h. */ |
| 23901 | _ACEOF |
| 23902 | cat confdefs.h >>conftest.$ac_ext |
| 23903 | cat >>conftest.$ac_ext <<_ACEOF |
| 23904 | /* end confdefs.h. */ |
| 23905 | |
| 23906 | #include <stdlib.h> |
| 23907 | #include <math.h> |
| 23908 | int main() { |
| 23909 | volatile double x, y, z; |
| 23910 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23911 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23912 | y = 1./x; |
| 23913 | if (y != 1.) |
| 23914 | exit(0); |
| 23915 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23916 | x = 1e16; |
| 23917 | y = 2.99999; |
| 23918 | z = x + y; |
| 23919 | if (z != 1e16+4.) |
| 23920 | exit(0); |
| 23921 | /* both tests show evidence of double rounding */ |
| 23922 | exit(1); |
| 23923 | } |
| 23924 | |
| 23925 | _ACEOF |
| 23926 | rm -f conftest$ac_exeext |
| 23927 | if { (ac_try="$ac_link" |
| 23928 | case "(($ac_try" in |
| 23929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23930 | *) ac_try_echo=$ac_try;; |
| 23931 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23933 | (eval "$ac_link") 2>&5 |
| 23934 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23937 | { (case "(($ac_try" in |
| 23938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23939 | *) ac_try_echo=$ac_try;; |
| 23940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23942 | (eval "$ac_try") 2>&5 |
| 23943 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23945 | (exit $ac_status); }; }; then |
| 23946 | ac_cv_x87_double_rounding=no |
| 23947 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23948 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23949 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23951 | |
| 23952 | ( exit $ac_status ) |
| 23953 | ac_cv_x87_double_rounding=yes |
| 23954 | fi |
| 23955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23956 | fi |
| 23957 | |
| 23958 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 23959 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23960 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23961 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23962 | if test "$ac_cv_x87_double_rounding" = yes |
| 23963 | then |
| 23964 | |
| 23965 | cat >>confdefs.h <<\_ACEOF |
| 23966 | #define X87_DOUBLE_ROUNDING 1 |
| 23967 | _ACEOF |
| 23968 | |
| 23969 | fi |
| 23970 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23971 | # ************************************ |
| 23972 | # * Check for mathematical functions * |
| 23973 | # ************************************ |
| 23974 | |
| 23975 | LIBS_SAVE=$LIBS |
| 23976 | LIBS="$LIBS $LIBM" |
| 23977 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23978 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23979 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23980 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23981 | 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] | 23982 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23984 | else |
| 23985 | |
| 23986 | if test "$cross_compiling" = yes; then |
| 23987 | ac_cv_tanh_preserves_zero_sign=no |
| 23988 | else |
| 23989 | cat >conftest.$ac_ext <<_ACEOF |
| 23990 | /* confdefs.h. */ |
| 23991 | _ACEOF |
| 23992 | cat confdefs.h >>conftest.$ac_ext |
| 23993 | cat >>conftest.$ac_ext <<_ACEOF |
| 23994 | /* end confdefs.h. */ |
| 23995 | |
| 23996 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23997 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23998 | int main() { |
| 23999 | /* return 0 if either negative zeros don't exist |
| 24000 | on this platform or if negative zeros exist |
| 24001 | and tanh(-0.) == -0. */ |
| 24002 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24003 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24004 | else exit(1); |
| 24005 | } |
| 24006 | |
| 24007 | _ACEOF |
| 24008 | rm -f conftest$ac_exeext |
| 24009 | if { (ac_try="$ac_link" |
| 24010 | case "(($ac_try" in |
| 24011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24012 | *) ac_try_echo=$ac_try;; |
| 24013 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24015 | (eval "$ac_link") 2>&5 |
| 24016 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24019 | { (case "(($ac_try" in |
| 24020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24021 | *) ac_try_echo=$ac_try;; |
| 24022 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24024 | (eval "$ac_try") 2>&5 |
| 24025 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24027 | (exit $ac_status); }; }; then |
| 24028 | ac_cv_tanh_preserves_zero_sign=yes |
| 24029 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24030 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24031 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24033 | |
| 24034 | ( exit $ac_status ) |
| 24035 | ac_cv_tanh_preserves_zero_sign=no |
| 24036 | fi |
| 24037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24038 | fi |
| 24039 | |
| 24040 | |
| 24041 | fi |
| 24042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24043 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24044 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24045 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24046 | then |
| 24047 | |
| 24048 | cat >>confdefs.h <<\_ACEOF |
| 24049 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24050 | _ACEOF |
| 24051 | |
| 24052 | fi |
| 24053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24054 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24055 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24056 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24057 | |
| 24058 | |
| 24059 | |
| 24060 | |
| 24061 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24062 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24063 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24064 | do |
| 24065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24066 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24068 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24070 | else |
| 24071 | cat >conftest.$ac_ext <<_ACEOF |
| 24072 | /* confdefs.h. */ |
| 24073 | _ACEOF |
| 24074 | cat confdefs.h >>conftest.$ac_ext |
| 24075 | cat >>conftest.$ac_ext <<_ACEOF |
| 24076 | /* end confdefs.h. */ |
| 24077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24079 | #define $ac_func innocuous_$ac_func |
| 24080 | |
| 24081 | /* System header to define __stub macros and hopefully few prototypes, |
| 24082 | which can conflict with char $ac_func (); below. |
| 24083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24084 | <limits.h> exists even on freestanding compilers. */ |
| 24085 | |
| 24086 | #ifdef __STDC__ |
| 24087 | # include <limits.h> |
| 24088 | #else |
| 24089 | # include <assert.h> |
| 24090 | #endif |
| 24091 | |
| 24092 | #undef $ac_func |
| 24093 | |
| 24094 | /* Override any GCC internal prototype to avoid an error. |
| 24095 | Use char because int might match the return type of a GCC |
| 24096 | builtin and then its argument prototype would still apply. */ |
| 24097 | #ifdef __cplusplus |
| 24098 | extern "C" |
| 24099 | #endif |
| 24100 | char $ac_func (); |
| 24101 | /* The GNU C library defines this for functions which it implements |
| 24102 | to always fail with ENOSYS. Some functions are actually named |
| 24103 | something starting with __ and the normal name is an alias. */ |
| 24104 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24105 | choke me |
| 24106 | #endif |
| 24107 | |
| 24108 | int |
| 24109 | main () |
| 24110 | { |
| 24111 | return $ac_func (); |
| 24112 | ; |
| 24113 | return 0; |
| 24114 | } |
| 24115 | _ACEOF |
| 24116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24117 | if { (ac_try="$ac_link" |
| 24118 | case "(($ac_try" in |
| 24119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24120 | *) ac_try_echo=$ac_try;; |
| 24121 | esac |
| 24122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24123 | (eval "$ac_link") 2>conftest.er1 |
| 24124 | ac_status=$? |
| 24125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24126 | rm -f conftest.er1 |
| 24127 | cat conftest.err >&5 |
| 24128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24129 | (exit $ac_status); } && { |
| 24130 | test -z "$ac_c_werror_flag" || |
| 24131 | test ! -s conftest.err |
| 24132 | } && test -s conftest$ac_exeext && |
| 24133 | $as_test_x conftest$ac_exeext; then |
| 24134 | eval "$as_ac_var=yes" |
| 24135 | else |
| 24136 | echo "$as_me: failed program was:" >&5 |
| 24137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24138 | |
| 24139 | eval "$as_ac_var=no" |
| 24140 | fi |
| 24141 | |
| 24142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24143 | conftest$ac_exeext conftest.$ac_ext |
| 24144 | fi |
| 24145 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24147 | echo "${ECHO_T}$ac_res" >&6; } |
| 24148 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24149 | cat >>confdefs.h <<_ACEOF |
| 24150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24151 | _ACEOF |
| 24152 | |
| 24153 | fi |
| 24154 | done |
| 24155 | |
| 24156 | |
| 24157 | |
| 24158 | |
| 24159 | |
| 24160 | |
| 24161 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24162 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24163 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24164 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24165 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24166 | 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] | 24167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24168 | else |
| 24169 | cat >conftest.$ac_ext <<_ACEOF |
| 24170 | /* confdefs.h. */ |
| 24171 | _ACEOF |
| 24172 | cat confdefs.h >>conftest.$ac_ext |
| 24173 | cat >>conftest.$ac_ext <<_ACEOF |
| 24174 | /* end confdefs.h. */ |
| 24175 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24176 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24177 | #define $ac_func innocuous_$ac_func |
| 24178 | |
| 24179 | /* System header to define __stub macros and hopefully few prototypes, |
| 24180 | which can conflict with char $ac_func (); below. |
| 24181 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24182 | <limits.h> exists even on freestanding compilers. */ |
| 24183 | |
| 24184 | #ifdef __STDC__ |
| 24185 | # include <limits.h> |
| 24186 | #else |
| 24187 | # include <assert.h> |
| 24188 | #endif |
| 24189 | |
| 24190 | #undef $ac_func |
| 24191 | |
| 24192 | /* Override any GCC internal prototype to avoid an error. |
| 24193 | Use char because int might match the return type of a GCC |
| 24194 | builtin and then its argument prototype would still apply. */ |
| 24195 | #ifdef __cplusplus |
| 24196 | extern "C" |
| 24197 | #endif |
| 24198 | char $ac_func (); |
| 24199 | /* The GNU C library defines this for functions which it implements |
| 24200 | to always fail with ENOSYS. Some functions are actually named |
| 24201 | something starting with __ and the normal name is an alias. */ |
| 24202 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24203 | choke me |
| 24204 | #endif |
| 24205 | |
| 24206 | int |
| 24207 | main () |
| 24208 | { |
| 24209 | return $ac_func (); |
| 24210 | ; |
| 24211 | return 0; |
| 24212 | } |
| 24213 | _ACEOF |
| 24214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24215 | if { (ac_try="$ac_link" |
| 24216 | case "(($ac_try" in |
| 24217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24218 | *) ac_try_echo=$ac_try;; |
| 24219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24221 | (eval "$ac_link") 2>conftest.er1 |
| 24222 | ac_status=$? |
| 24223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24224 | rm -f conftest.er1 |
| 24225 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24227 | (exit $ac_status); } && { |
| 24228 | test -z "$ac_c_werror_flag" || |
| 24229 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24230 | } && test -s conftest$ac_exeext && |
| 24231 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24232 | eval "$as_ac_var=yes" |
| 24233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24234 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24236 | |
| 24237 | eval "$as_ac_var=no" |
| 24238 | fi |
| 24239 | |
| 24240 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24241 | conftest$ac_exeext conftest.$ac_ext |
| 24242 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24243 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24244 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24245 | echo "${ECHO_T}$ac_res" >&6; } |
| 24246 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24247 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24249 | _ACEOF |
| 24250 | |
| 24251 | fi |
| 24252 | done |
| 24253 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24254 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24255 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24256 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24258 | else |
| 24259 | cat >conftest.$ac_ext <<_ACEOF |
| 24260 | /* confdefs.h. */ |
| 24261 | _ACEOF |
| 24262 | cat confdefs.h >>conftest.$ac_ext |
| 24263 | cat >>conftest.$ac_ext <<_ACEOF |
| 24264 | /* end confdefs.h. */ |
| 24265 | #include <math.h> |
| 24266 | |
| 24267 | int |
| 24268 | main () |
| 24269 | { |
| 24270 | #ifndef isinf |
| 24271 | (void) isinf; |
| 24272 | #endif |
| 24273 | |
| 24274 | ; |
| 24275 | return 0; |
| 24276 | } |
| 24277 | _ACEOF |
| 24278 | rm -f conftest.$ac_objext |
| 24279 | if { (ac_try="$ac_compile" |
| 24280 | case "(($ac_try" in |
| 24281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24282 | *) ac_try_echo=$ac_try;; |
| 24283 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24285 | (eval "$ac_compile") 2>conftest.er1 |
| 24286 | ac_status=$? |
| 24287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24288 | rm -f conftest.er1 |
| 24289 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24291 | (exit $ac_status); } && { |
| 24292 | test -z "$ac_c_werror_flag" || |
| 24293 | test ! -s conftest.err |
| 24294 | } && test -s conftest.$ac_objext; then |
| 24295 | ac_cv_have_decl_isinf=yes |
| 24296 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24297 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24299 | |
| 24300 | ac_cv_have_decl_isinf=no |
| 24301 | fi |
| 24302 | |
| 24303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24304 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24305 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24306 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24307 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24308 | |
| 24309 | cat >>confdefs.h <<_ACEOF |
| 24310 | #define HAVE_DECL_ISINF 1 |
| 24311 | _ACEOF |
| 24312 | |
| 24313 | |
| 24314 | else |
| 24315 | cat >>confdefs.h <<_ACEOF |
| 24316 | #define HAVE_DECL_ISINF 0 |
| 24317 | _ACEOF |
| 24318 | |
| 24319 | |
| 24320 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24321 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24322 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24323 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24325 | else |
| 24326 | cat >conftest.$ac_ext <<_ACEOF |
| 24327 | /* confdefs.h. */ |
| 24328 | _ACEOF |
| 24329 | cat confdefs.h >>conftest.$ac_ext |
| 24330 | cat >>conftest.$ac_ext <<_ACEOF |
| 24331 | /* end confdefs.h. */ |
| 24332 | #include <math.h> |
| 24333 | |
| 24334 | int |
| 24335 | main () |
| 24336 | { |
| 24337 | #ifndef isnan |
| 24338 | (void) isnan; |
| 24339 | #endif |
| 24340 | |
| 24341 | ; |
| 24342 | return 0; |
| 24343 | } |
| 24344 | _ACEOF |
| 24345 | rm -f conftest.$ac_objext |
| 24346 | if { (ac_try="$ac_compile" |
| 24347 | case "(($ac_try" in |
| 24348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24349 | *) ac_try_echo=$ac_try;; |
| 24350 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24352 | (eval "$ac_compile") 2>conftest.er1 |
| 24353 | ac_status=$? |
| 24354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24355 | rm -f conftest.er1 |
| 24356 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24358 | (exit $ac_status); } && { |
| 24359 | test -z "$ac_c_werror_flag" || |
| 24360 | test ! -s conftest.err |
| 24361 | } && test -s conftest.$ac_objext; then |
| 24362 | ac_cv_have_decl_isnan=yes |
| 24363 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24364 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24366 | |
| 24367 | ac_cv_have_decl_isnan=no |
| 24368 | fi |
| 24369 | |
| 24370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24371 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24372 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24373 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24374 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24375 | |
| 24376 | cat >>confdefs.h <<_ACEOF |
| 24377 | #define HAVE_DECL_ISNAN 1 |
| 24378 | _ACEOF |
| 24379 | |
| 24380 | |
| 24381 | else |
| 24382 | cat >>confdefs.h <<_ACEOF |
| 24383 | #define HAVE_DECL_ISNAN 0 |
| 24384 | _ACEOF |
| 24385 | |
| 24386 | |
| 24387 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24388 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24389 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24390 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24392 | else |
| 24393 | cat >conftest.$ac_ext <<_ACEOF |
| 24394 | /* confdefs.h. */ |
| 24395 | _ACEOF |
| 24396 | cat confdefs.h >>conftest.$ac_ext |
| 24397 | cat >>conftest.$ac_ext <<_ACEOF |
| 24398 | /* end confdefs.h. */ |
| 24399 | #include <math.h> |
| 24400 | |
| 24401 | int |
| 24402 | main () |
| 24403 | { |
| 24404 | #ifndef isfinite |
| 24405 | (void) isfinite; |
| 24406 | #endif |
| 24407 | |
| 24408 | ; |
| 24409 | return 0; |
| 24410 | } |
| 24411 | _ACEOF |
| 24412 | rm -f conftest.$ac_objext |
| 24413 | if { (ac_try="$ac_compile" |
| 24414 | case "(($ac_try" in |
| 24415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24416 | *) ac_try_echo=$ac_try;; |
| 24417 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24419 | (eval "$ac_compile") 2>conftest.er1 |
| 24420 | ac_status=$? |
| 24421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24422 | rm -f conftest.er1 |
| 24423 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24425 | (exit $ac_status); } && { |
| 24426 | test -z "$ac_c_werror_flag" || |
| 24427 | test ! -s conftest.err |
| 24428 | } && test -s conftest.$ac_objext; then |
| 24429 | ac_cv_have_decl_isfinite=yes |
| 24430 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24431 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24433 | |
| 24434 | ac_cv_have_decl_isfinite=no |
| 24435 | fi |
| 24436 | |
| 24437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24438 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24439 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24440 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24441 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24442 | |
| 24443 | cat >>confdefs.h <<_ACEOF |
| 24444 | #define HAVE_DECL_ISFINITE 1 |
| 24445 | _ACEOF |
| 24446 | |
| 24447 | |
| 24448 | else |
| 24449 | cat >>confdefs.h <<_ACEOF |
| 24450 | #define HAVE_DECL_ISFINITE 0 |
| 24451 | _ACEOF |
| 24452 | |
| 24453 | |
| 24454 | fi |
| 24455 | |
| 24456 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24457 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24458 | LIBS=$LIBS_SAVE |
| 24459 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24460 | # For multiprocessing module, check that sem_open |
| 24461 | # actually works. For FreeBSD versions <= 7.2, |
| 24462 | # the kernel module that provides POSIX semaphores |
| 24463 | # isn't loaded by default, so an attempt to call |
| 24464 | # sem_open results in a 'Signal 12' error. |
| 24465 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24466 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24467 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24469 | else |
| 24470 | if test "$cross_compiling" = yes; then |
| 24471 | ac_cv_posix_semaphores_enabled=yes |
| 24472 | else |
| 24473 | cat >conftest.$ac_ext <<_ACEOF |
| 24474 | /* confdefs.h. */ |
| 24475 | _ACEOF |
| 24476 | cat confdefs.h >>conftest.$ac_ext |
| 24477 | cat >>conftest.$ac_ext <<_ACEOF |
| 24478 | /* end confdefs.h. */ |
| 24479 | |
| 24480 | #include <unistd.h> |
| 24481 | #include <fcntl.h> |
| 24482 | #include <stdio.h> |
| 24483 | #include <semaphore.h> |
| 24484 | #include <sys/stat.h> |
| 24485 | |
| 24486 | int main(void) { |
| 24487 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24488 | if (a == SEM_FAILED) { |
| 24489 | perror("sem_open"); |
| 24490 | return 1; |
| 24491 | } |
| 24492 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24493 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24494 | return 0; |
| 24495 | } |
| 24496 | |
| 24497 | _ACEOF |
| 24498 | rm -f conftest$ac_exeext |
| 24499 | if { (ac_try="$ac_link" |
| 24500 | case "(($ac_try" in |
| 24501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24502 | *) ac_try_echo=$ac_try;; |
| 24503 | esac |
| 24504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24505 | (eval "$ac_link") 2>&5 |
| 24506 | ac_status=$? |
| 24507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24509 | { (case "(($ac_try" in |
| 24510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24511 | *) ac_try_echo=$ac_try;; |
| 24512 | esac |
| 24513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24514 | (eval "$ac_try") 2>&5 |
| 24515 | ac_status=$? |
| 24516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24517 | (exit $ac_status); }; }; then |
| 24518 | ac_cv_posix_semaphores_enabled=yes |
| 24519 | else |
| 24520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24521 | echo "$as_me: failed program was:" >&5 |
| 24522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24523 | |
| 24524 | ( exit $ac_status ) |
| 24525 | ac_cv_posix_semaphores_enabled=no |
| 24526 | fi |
| 24527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24528 | fi |
| 24529 | |
| 24530 | |
| 24531 | |
| 24532 | fi |
| 24533 | |
| 24534 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24535 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24536 | if test $ac_cv_posix_semaphores_enabled = no |
| 24537 | then |
| 24538 | |
| 24539 | cat >>confdefs.h <<\_ACEOF |
| 24540 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24541 | _ACEOF |
| 24542 | |
| 24543 | fi |
| 24544 | |
| 24545 | # Multiprocessing check for broken sem_getvalue |
| 24546 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24547 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24548 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24550 | else |
| 24551 | if test "$cross_compiling" = yes; then |
| 24552 | ac_cv_broken_sem_getvalue=yes |
| 24553 | else |
| 24554 | cat >conftest.$ac_ext <<_ACEOF |
| 24555 | /* confdefs.h. */ |
| 24556 | _ACEOF |
| 24557 | cat confdefs.h >>conftest.$ac_ext |
| 24558 | cat >>conftest.$ac_ext <<_ACEOF |
| 24559 | /* end confdefs.h. */ |
| 24560 | |
| 24561 | #include <unistd.h> |
| 24562 | #include <fcntl.h> |
| 24563 | #include <stdio.h> |
| 24564 | #include <semaphore.h> |
| 24565 | #include <sys/stat.h> |
| 24566 | |
| 24567 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24568 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24569 | int count; |
| 24570 | int res; |
| 24571 | if(a==SEM_FAILED){ |
| 24572 | perror("sem_open"); |
| 24573 | return 1; |
| 24574 | |
| 24575 | } |
| 24576 | res = sem_getvalue(a, &count); |
| 24577 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24578 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24579 | return res==-1 ? 1 : 0; |
| 24580 | } |
| 24581 | |
| 24582 | _ACEOF |
| 24583 | rm -f conftest$ac_exeext |
| 24584 | if { (ac_try="$ac_link" |
| 24585 | case "(($ac_try" in |
| 24586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24587 | *) ac_try_echo=$ac_try;; |
| 24588 | esac |
| 24589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24590 | (eval "$ac_link") 2>&5 |
| 24591 | ac_status=$? |
| 24592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24594 | { (case "(($ac_try" in |
| 24595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24596 | *) ac_try_echo=$ac_try;; |
| 24597 | esac |
| 24598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24599 | (eval "$ac_try") 2>&5 |
| 24600 | ac_status=$? |
| 24601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24602 | (exit $ac_status); }; }; then |
| 24603 | ac_cv_broken_sem_getvalue=no |
| 24604 | else |
| 24605 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24606 | echo "$as_me: failed program was:" >&5 |
| 24607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24608 | |
| 24609 | ( exit $ac_status ) |
| 24610 | ac_cv_broken_sem_getvalue=yes |
| 24611 | fi |
| 24612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24613 | fi |
| 24614 | |
| 24615 | |
| 24616 | |
| 24617 | fi |
| 24618 | |
| 24619 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24620 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24621 | if test $ac_cv_broken_sem_getvalue = yes |
| 24622 | then |
| 24623 | |
| 24624 | cat >>confdefs.h <<\_ACEOF |
| 24625 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24626 | _ACEOF |
| 24627 | |
| 24628 | fi |
| 24629 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24630 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24631 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24632 | 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] | 24633 | # Check whether --enable-big-digits was given. |
| 24634 | if test "${enable_big_digits+set}" = set; then |
| 24635 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24636 | yes) |
| 24637 | enable_big_digits=30 ;; |
| 24638 | no) |
| 24639 | enable_big_digits=15 ;; |
| 24640 | 15|30) |
| 24641 | ;; |
| 24642 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24643 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24644 | 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] | 24645 | { (exit 1); exit 1; }; } ;; |
| 24646 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24647 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24648 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24649 | |
| 24650 | cat >>confdefs.h <<_ACEOF |
| 24651 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24652 | _ACEOF |
| 24653 | |
| 24654 | |
| 24655 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24656 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24657 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24658 | fi |
| 24659 | |
| 24660 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24661 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24662 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24663 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24664 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24665 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24667 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24668 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24669 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24671 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24672 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24673 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24675 | /* confdefs.h. */ |
| 24676 | _ACEOF |
| 24677 | cat confdefs.h >>conftest.$ac_ext |
| 24678 | cat >>conftest.$ac_ext <<_ACEOF |
| 24679 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24680 | $ac_includes_default |
| 24681 | #include <wchar.h> |
| 24682 | _ACEOF |
| 24683 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24684 | if { (ac_try="$ac_compile" |
| 24685 | case "(($ac_try" in |
| 24686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24687 | *) ac_try_echo=$ac_try;; |
| 24688 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24690 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24693 | rm -f conftest.er1 |
| 24694 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24696 | (exit $ac_status); } && { |
| 24697 | test -z "$ac_c_werror_flag" || |
| 24698 | test ! -s conftest.err |
| 24699 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24700 | ac_header_compiler=yes |
| 24701 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24704 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24705 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24706 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24707 | |
| 24708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24709 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24710 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24711 | |
| 24712 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24713 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24714 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24716 | /* confdefs.h. */ |
| 24717 | _ACEOF |
| 24718 | cat confdefs.h >>conftest.$ac_ext |
| 24719 | cat >>conftest.$ac_ext <<_ACEOF |
| 24720 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24721 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24722 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24723 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24724 | case "(($ac_try" in |
| 24725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24726 | *) ac_try_echo=$ac_try;; |
| 24727 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24730 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24731 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24732 | rm -f conftest.er1 |
| 24733 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24735 | (exit $ac_status); } >/dev/null && { |
| 24736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24737 | test ! -s conftest.err |
| 24738 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24739 | ac_header_preproc=yes |
| 24740 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24741 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24744 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24745 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24747 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24748 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24749 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24750 | |
| 24751 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24753 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24754 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24755 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24756 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24757 | 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] | 24758 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24759 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24760 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24761 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24762 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24763 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24764 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24765 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24766 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24767 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24768 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24769 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24770 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24771 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24772 | 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] | 24773 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24774 | ## -------------------------------------- ## |
| 24775 | ## Report this to http://bugs.python.org/ ## |
| 24776 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24777 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24778 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24779 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24780 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24781 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24782 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24783 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24785 | else |
| 24786 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24787 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24788 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24789 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24790 | |
| 24791 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24792 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24793 | |
| 24794 | |
| 24795 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24796 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24797 | _ACEOF |
| 24798 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24799 | wchar_h="yes" |
| 24800 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24802 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24803 | |
| 24804 | fi |
| 24805 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24807 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24808 | # determine wchar_t size |
| 24809 | if test "$wchar_h" = yes |
| 24810 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24811 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 24812 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 24813 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 24814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24815 | else |
| 24816 | cat >conftest.$ac_ext <<_ACEOF |
| 24817 | /* confdefs.h. */ |
| 24818 | _ACEOF |
| 24819 | cat confdefs.h >>conftest.$ac_ext |
| 24820 | cat >>conftest.$ac_ext <<_ACEOF |
| 24821 | /* end confdefs.h. */ |
| 24822 | #include <wchar.h> |
| 24823 | |
| 24824 | typedef wchar_t ac__type_new_; |
| 24825 | int |
| 24826 | main () |
| 24827 | { |
| 24828 | if ((ac__type_new_ *) 0) |
| 24829 | return 0; |
| 24830 | if (sizeof (ac__type_new_)) |
| 24831 | return 0; |
| 24832 | ; |
| 24833 | return 0; |
| 24834 | } |
| 24835 | _ACEOF |
| 24836 | rm -f conftest.$ac_objext |
| 24837 | if { (ac_try="$ac_compile" |
| 24838 | case "(($ac_try" in |
| 24839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24840 | *) ac_try_echo=$ac_try;; |
| 24841 | esac |
| 24842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24843 | (eval "$ac_compile") 2>conftest.er1 |
| 24844 | ac_status=$? |
| 24845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24846 | rm -f conftest.er1 |
| 24847 | cat conftest.err >&5 |
| 24848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24849 | (exit $ac_status); } && { |
| 24850 | test -z "$ac_c_werror_flag" || |
| 24851 | test ! -s conftest.err |
| 24852 | } && test -s conftest.$ac_objext; then |
| 24853 | ac_cv_type_wchar_t=yes |
| 24854 | else |
| 24855 | echo "$as_me: failed program was:" >&5 |
| 24856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24857 | |
| 24858 | ac_cv_type_wchar_t=no |
| 24859 | fi |
| 24860 | |
| 24861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24862 | fi |
| 24863 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 24864 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 24865 | |
| 24866 | # 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] | 24867 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24868 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24869 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24870 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 24871 | 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] | 24872 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24875 | if test "$cross_compiling" = yes; then |
| 24876 | # Depending upon the size, compute the lo and hi bounds. |
| 24877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24878 | /* confdefs.h. */ |
| 24879 | _ACEOF |
| 24880 | cat confdefs.h >>conftest.$ac_ext |
| 24881 | cat >>conftest.$ac_ext <<_ACEOF |
| 24882 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24883 | #include <wchar.h> |
| 24884 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24885 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24886 | int |
| 24887 | main () |
| 24888 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24889 | 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] | 24890 | test_array [0] = 0 |
| 24891 | |
| 24892 | ; |
| 24893 | return 0; |
| 24894 | } |
| 24895 | _ACEOF |
| 24896 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24897 | if { (ac_try="$ac_compile" |
| 24898 | case "(($ac_try" in |
| 24899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24900 | *) ac_try_echo=$ac_try;; |
| 24901 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24903 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24904 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24906 | rm -f conftest.er1 |
| 24907 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24909 | (exit $ac_status); } && { |
| 24910 | test -z "$ac_c_werror_flag" || |
| 24911 | test ! -s conftest.err |
| 24912 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24913 | ac_lo=0 ac_mid=0 |
| 24914 | while :; do |
| 24915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24916 | /* confdefs.h. */ |
| 24917 | _ACEOF |
| 24918 | cat confdefs.h >>conftest.$ac_ext |
| 24919 | cat >>conftest.$ac_ext <<_ACEOF |
| 24920 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24921 | #include <wchar.h> |
| 24922 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24923 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24924 | int |
| 24925 | main () |
| 24926 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24927 | 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] | 24928 | test_array [0] = 0 |
| 24929 | |
| 24930 | ; |
| 24931 | return 0; |
| 24932 | } |
| 24933 | _ACEOF |
| 24934 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24935 | if { (ac_try="$ac_compile" |
| 24936 | case "(($ac_try" in |
| 24937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24938 | *) ac_try_echo=$ac_try;; |
| 24939 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24941 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24944 | rm -f conftest.er1 |
| 24945 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24947 | (exit $ac_status); } && { |
| 24948 | test -z "$ac_c_werror_flag" || |
| 24949 | test ! -s conftest.err |
| 24950 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24951 | ac_hi=$ac_mid; break |
| 24952 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24955 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24956 | ac_lo=`expr $ac_mid + 1` |
| 24957 | if test $ac_lo -le $ac_mid; then |
| 24958 | ac_lo= ac_hi= |
| 24959 | break |
| 24960 | fi |
| 24961 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24962 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24963 | |
| 24964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24965 | done |
| 24966 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24971 | /* confdefs.h. */ |
| 24972 | _ACEOF |
| 24973 | cat confdefs.h >>conftest.$ac_ext |
| 24974 | cat >>conftest.$ac_ext <<_ACEOF |
| 24975 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24976 | #include <wchar.h> |
| 24977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24978 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24979 | int |
| 24980 | main () |
| 24981 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24982 | 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] | 24983 | test_array [0] = 0 |
| 24984 | |
| 24985 | ; |
| 24986 | return 0; |
| 24987 | } |
| 24988 | _ACEOF |
| 24989 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24990 | if { (ac_try="$ac_compile" |
| 24991 | case "(($ac_try" in |
| 24992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24993 | *) ac_try_echo=$ac_try;; |
| 24994 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24996 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24997 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24999 | rm -f conftest.er1 |
| 25000 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25002 | (exit $ac_status); } && { |
| 25003 | test -z "$ac_c_werror_flag" || |
| 25004 | test ! -s conftest.err |
| 25005 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25006 | ac_hi=-1 ac_mid=-1 |
| 25007 | while :; do |
| 25008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25009 | /* confdefs.h. */ |
| 25010 | _ACEOF |
| 25011 | cat confdefs.h >>conftest.$ac_ext |
| 25012 | cat >>conftest.$ac_ext <<_ACEOF |
| 25013 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25014 | #include <wchar.h> |
| 25015 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25016 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25017 | int |
| 25018 | main () |
| 25019 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25020 | 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] | 25021 | test_array [0] = 0 |
| 25022 | |
| 25023 | ; |
| 25024 | return 0; |
| 25025 | } |
| 25026 | _ACEOF |
| 25027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25028 | if { (ac_try="$ac_compile" |
| 25029 | case "(($ac_try" in |
| 25030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25031 | *) ac_try_echo=$ac_try;; |
| 25032 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25037 | rm -f conftest.er1 |
| 25038 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25040 | (exit $ac_status); } && { |
| 25041 | test -z "$ac_c_werror_flag" || |
| 25042 | test ! -s conftest.err |
| 25043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25044 | ac_lo=$ac_mid; break |
| 25045 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25049 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25050 | if test $ac_mid -le $ac_hi; then |
| 25051 | ac_lo= ac_hi= |
| 25052 | break |
| 25053 | fi |
| 25054 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25055 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25056 | |
| 25057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25058 | done |
| 25059 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25060 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25062 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25063 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25064 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25065 | |
| 25066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25067 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25068 | |
| 25069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25070 | # Binary search between lo and hi bounds. |
| 25071 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25072 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25073 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25074 | /* confdefs.h. */ |
| 25075 | _ACEOF |
| 25076 | cat confdefs.h >>conftest.$ac_ext |
| 25077 | cat >>conftest.$ac_ext <<_ACEOF |
| 25078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25079 | #include <wchar.h> |
| 25080 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25081 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25082 | int |
| 25083 | main () |
| 25084 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25085 | 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] | 25086 | test_array [0] = 0 |
| 25087 | |
| 25088 | ; |
| 25089 | return 0; |
| 25090 | } |
| 25091 | _ACEOF |
| 25092 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25093 | if { (ac_try="$ac_compile" |
| 25094 | case "(($ac_try" in |
| 25095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25096 | *) ac_try_echo=$ac_try;; |
| 25097 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25099 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25100 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25102 | rm -f conftest.er1 |
| 25103 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25105 | (exit $ac_status); } && { |
| 25106 | test -z "$ac_c_werror_flag" || |
| 25107 | test ! -s conftest.err |
| 25108 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25109 | ac_hi=$ac_mid |
| 25110 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25111 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25113 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25114 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25115 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25116 | |
| 25117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25118 | done |
| 25119 | case $ac_lo in |
| 25120 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25121 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25122 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25123 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25124 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25125 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25126 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25127 | else |
| 25128 | ac_cv_sizeof_wchar_t=0 |
| 25129 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25130 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25133 | /* confdefs.h. */ |
| 25134 | _ACEOF |
| 25135 | cat confdefs.h >>conftest.$ac_ext |
| 25136 | cat >>conftest.$ac_ext <<_ACEOF |
| 25137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25138 | #include <wchar.h> |
| 25139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25140 | typedef wchar_t ac__type_sizeof_; |
| 25141 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25142 | 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] | 25143 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25144 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25145 | int |
| 25146 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25147 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25148 | |
| 25149 | FILE *f = fopen ("conftest.val", "w"); |
| 25150 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25151 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25152 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25153 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25154 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25155 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25156 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25157 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25158 | } |
| 25159 | else |
| 25160 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25161 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25162 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25163 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25164 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25165 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25166 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25167 | |
| 25168 | ; |
| 25169 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25170 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25171 | _ACEOF |
| 25172 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25173 | if { (ac_try="$ac_link" |
| 25174 | case "(($ac_try" in |
| 25175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25176 | *) ac_try_echo=$ac_try;; |
| 25177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25179 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25180 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25182 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25183 | { (case "(($ac_try" in |
| 25184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25185 | *) ac_try_echo=$ac_try;; |
| 25186 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25188 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25189 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25191 | (exit $ac_status); }; }; then |
| 25192 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25193 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25194 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25198 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25199 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25200 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25201 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25202 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25203 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25204 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25205 | else |
| 25206 | ac_cv_sizeof_wchar_t=0 |
| 25207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25208 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25209 | 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] | 25210 | fi |
| 25211 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25212 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25213 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25214 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25215 | |
| 25216 | |
| 25217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25218 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25219 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25220 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25221 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25222 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25223 | fi |
| 25224 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25225 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25226 | 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] | 25227 | have_ucs4_tcl=no |
| 25228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25229 | /* confdefs.h. */ |
| 25230 | _ACEOF |
| 25231 | cat confdefs.h >>conftest.$ac_ext |
| 25232 | cat >>conftest.$ac_ext <<_ACEOF |
| 25233 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25234 | |
| 25235 | #include <tcl.h> |
| 25236 | #if TCL_UTF_MAX != 6 |
| 25237 | # error "NOT UCS4_TCL" |
| 25238 | #endif |
| 25239 | int |
| 25240 | main () |
| 25241 | { |
| 25242 | |
| 25243 | ; |
| 25244 | return 0; |
| 25245 | } |
| 25246 | _ACEOF |
| 25247 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25248 | if { (ac_try="$ac_compile" |
| 25249 | case "(($ac_try" in |
| 25250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25251 | *) ac_try_echo=$ac_try;; |
| 25252 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25254 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25257 | rm -f conftest.er1 |
| 25258 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25260 | (exit $ac_status); } && { |
| 25261 | test -z "$ac_c_werror_flag" || |
| 25262 | test ! -s conftest.err |
| 25263 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25264 | |
| 25265 | |
| 25266 | cat >>confdefs.h <<\_ACEOF |
| 25267 | #define HAVE_UCS4_TCL 1 |
| 25268 | _ACEOF |
| 25269 | |
| 25270 | have_ucs4_tcl=yes |
| 25271 | |
| 25272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25275 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25276 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25278 | |
| 25279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25280 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25281 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25282 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25283 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25284 | if test "$wchar_h" = yes |
| 25285 | then |
| 25286 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25287 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25288 | 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] | 25289 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25291 | else |
| 25292 | |
| 25293 | if test "$cross_compiling" = yes; then |
| 25294 | ac_cv_wchar_t_signed=yes |
| 25295 | else |
| 25296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25297 | /* confdefs.h. */ |
| 25298 | _ACEOF |
| 25299 | cat confdefs.h >>conftest.$ac_ext |
| 25300 | cat >>conftest.$ac_ext <<_ACEOF |
| 25301 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25302 | |
| 25303 | #include <wchar.h> |
| 25304 | int main() |
| 25305 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25306 | /* Success: exit code 0 */ |
| 25307 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25308 | } |
| 25309 | |
| 25310 | _ACEOF |
| 25311 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25312 | if { (ac_try="$ac_link" |
| 25313 | case "(($ac_try" in |
| 25314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25315 | *) ac_try_echo=$ac_try;; |
| 25316 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25318 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25319 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25322 | { (case "(($ac_try" in |
| 25323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25324 | *) ac_try_echo=$ac_try;; |
| 25325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25327 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25328 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25330 | (exit $ac_status); }; }; then |
| 25331 | ac_cv_wchar_t_signed=yes |
| 25332 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25333 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25336 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25337 | ( exit $ac_status ) |
| 25338 | ac_cv_wchar_t_signed=no |
| 25339 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25340 | 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] | 25341 | fi |
| 25342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25343 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25344 | fi |
| 25345 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25346 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25347 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25348 | fi |
| 25349 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25350 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25351 | 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] | 25352 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25353 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25354 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25355 | else |
| 25356 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25357 | fi |
| 25358 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25359 | |
| 25360 | if test $enable_unicode = yes |
| 25361 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25362 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25363 | case "$have_ucs4_tcl" in |
| 25364 | yes) enable_unicode="ucs4" |
| 25365 | ;; |
| 25366 | *) enable_unicode="ucs2" |
| 25367 | ;; |
| 25368 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25369 | fi |
| 25370 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25371 | |
| 25372 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25373 | case "$enable_unicode" in |
| 25374 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25375 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25376 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25377 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25378 | |
| 25379 | ;; |
| 25380 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25381 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25382 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25383 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25384 | |
| 25385 | ;; |
| 25386 | esac |
| 25387 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25389 | |
| 25390 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25391 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25392 | if test "$enable_unicode" = "no" |
| 25393 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25394 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25395 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25396 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25397 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25398 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25399 | |
| 25400 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25401 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25402 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25403 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25404 | |
| 25405 | # wchar_t is only usable if it maps to an unsigned type |
| 25406 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25407 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25408 | then |
| 25409 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25411 | cat >>confdefs.h <<\_ACEOF |
| 25412 | #define HAVE_USABLE_WCHAR_T 1 |
| 25413 | _ACEOF |
| 25414 | |
| 25415 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25416 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25417 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25418 | |
| 25419 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25420 | then |
| 25421 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25422 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25423 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25424 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25425 | |
| 25426 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25427 | then |
| 25428 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25429 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25430 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25431 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25432 | |
| 25433 | else |
| 25434 | PY_UNICODE_TYPE="no type found" |
| 25435 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25436 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25437 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25438 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25439 | |
| 25440 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25441 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25442 | 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] | 25443 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25445 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25446 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25448 | /* confdefs.h. */ |
| 25449 | _ACEOF |
| 25450 | cat confdefs.h >>conftest.$ac_ext |
| 25451 | cat >>conftest.$ac_ext <<_ACEOF |
| 25452 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25453 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25454 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25456 | int |
| 25457 | main () |
| 25458 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25459 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25460 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25461 | bogus endian macros |
| 25462 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25463 | |
| 25464 | ; |
| 25465 | return 0; |
| 25466 | } |
| 25467 | _ACEOF |
| 25468 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25469 | if { (ac_try="$ac_compile" |
| 25470 | case "(($ac_try" in |
| 25471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25472 | *) ac_try_echo=$ac_try;; |
| 25473 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25475 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25478 | rm -f conftest.er1 |
| 25479 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25481 | (exit $ac_status); } && { |
| 25482 | test -z "$ac_c_werror_flag" || |
| 25483 | test ! -s conftest.err |
| 25484 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25485 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25486 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25487 | /* confdefs.h. */ |
| 25488 | _ACEOF |
| 25489 | cat confdefs.h >>conftest.$ac_ext |
| 25490 | cat >>conftest.$ac_ext <<_ACEOF |
| 25491 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25492 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25493 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25495 | int |
| 25496 | main () |
| 25497 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25498 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25499 | not big endian |
| 25500 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25501 | |
| 25502 | ; |
| 25503 | return 0; |
| 25504 | } |
| 25505 | _ACEOF |
| 25506 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25507 | if { (ac_try="$ac_compile" |
| 25508 | case "(($ac_try" in |
| 25509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25510 | *) ac_try_echo=$ac_try;; |
| 25511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25516 | rm -f conftest.er1 |
| 25517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25519 | (exit $ac_status); } && { |
| 25520 | test -z "$ac_c_werror_flag" || |
| 25521 | test ! -s conftest.err |
| 25522 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25523 | ac_cv_c_bigendian=yes |
| 25524 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25528 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25529 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25530 | |
| 25531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25532 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25535 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25536 | # It does not; compile a test program. |
| 25537 | if test "$cross_compiling" = yes; then |
| 25538 | # try to guess the endianness by grepping values into an object file |
| 25539 | ac_cv_c_bigendian=unknown |
| 25540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25541 | /* confdefs.h. */ |
| 25542 | _ACEOF |
| 25543 | cat confdefs.h >>conftest.$ac_ext |
| 25544 | cat >>conftest.$ac_ext <<_ACEOF |
| 25545 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25546 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25547 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25548 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25549 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25550 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25551 | 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] | 25552 | int |
| 25553 | main () |
| 25554 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25555 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25556 | ; |
| 25557 | return 0; |
| 25558 | } |
| 25559 | _ACEOF |
| 25560 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25561 | if { (ac_try="$ac_compile" |
| 25562 | case "(($ac_try" in |
| 25563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25564 | *) ac_try_echo=$ac_try;; |
| 25565 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25567 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25568 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25570 | rm -f conftest.er1 |
| 25571 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25573 | (exit $ac_status); } && { |
| 25574 | test -z "$ac_c_werror_flag" || |
| 25575 | test ! -s conftest.err |
| 25576 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25577 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25578 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25579 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25580 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25581 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25582 | ac_cv_c_bigendian=no |
| 25583 | else |
| 25584 | # finding both strings is unlikely to happen, but who knows? |
| 25585 | ac_cv_c_bigendian=unknown |
| 25586 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25587 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25588 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25591 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25593 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25594 | |
| 25595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25596 | else |
| 25597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25598 | /* confdefs.h. */ |
| 25599 | _ACEOF |
| 25600 | cat confdefs.h >>conftest.$ac_ext |
| 25601 | cat >>conftest.$ac_ext <<_ACEOF |
| 25602 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25603 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25604 | int |
| 25605 | main () |
| 25606 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25607 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25608 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25609 | union |
| 25610 | { |
| 25611 | long int l; |
| 25612 | char c[sizeof (long int)]; |
| 25613 | } u; |
| 25614 | u.l = 1; |
| 25615 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25616 | |
| 25617 | ; |
| 25618 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25619 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25620 | _ACEOF |
| 25621 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25622 | if { (ac_try="$ac_link" |
| 25623 | case "(($ac_try" in |
| 25624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25625 | *) ac_try_echo=$ac_try;; |
| 25626 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25628 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25629 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25631 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25632 | { (case "(($ac_try" in |
| 25633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25634 | *) ac_try_echo=$ac_try;; |
| 25635 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25637 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25638 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25640 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25641 | ac_cv_c_bigendian=no |
| 25642 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25643 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25647 | ( exit $ac_status ) |
| 25648 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25649 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25650 | 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] | 25651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25652 | |
| 25653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25654 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25655 | |
| 25656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25657 | fi |
| 25658 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25659 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25660 | case $ac_cv_c_bigendian in |
| 25661 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25662 | |
| 25663 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25664 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25665 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25666 | ;; |
| 25667 | no) |
| 25668 | ;; |
| 25669 | *) |
| 25670 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25671 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25672 | echo "$as_me: error: unknown endianness |
| 25673 | 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] | 25674 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25675 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25676 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25677 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25678 | # Check whether right shifting a negative integer extends the sign bit |
| 25679 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25680 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25681 | 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] | 25682 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25685 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25686 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25687 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25690 | /* confdefs.h. */ |
| 25691 | _ACEOF |
| 25692 | cat confdefs.h >>conftest.$ac_ext |
| 25693 | cat >>conftest.$ac_ext <<_ACEOF |
| 25694 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25695 | |
| 25696 | int main() |
| 25697 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25698 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25699 | } |
| 25700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25701 | _ACEOF |
| 25702 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25703 | if { (ac_try="$ac_link" |
| 25704 | case "(($ac_try" in |
| 25705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25706 | *) ac_try_echo=$ac_try;; |
| 25707 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25709 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25710 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25713 | { (case "(($ac_try" in |
| 25714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25715 | *) ac_try_echo=$ac_try;; |
| 25716 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25718 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25719 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25721 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25722 | ac_cv_rshift_extends_sign=yes |
| 25723 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25724 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25728 | ( exit $ac_status ) |
| 25729 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25730 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25731 | 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] | 25732 | fi |
| 25733 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25734 | |
| 25735 | fi |
| 25736 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25737 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25738 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25739 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25740 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25741 | |
| 25742 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25743 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25744 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25745 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25746 | fi |
| 25747 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25748 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25749 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25750 | 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] | 25751 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25754 | |
| 25755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25756 | /* confdefs.h. */ |
| 25757 | _ACEOF |
| 25758 | cat confdefs.h >>conftest.$ac_ext |
| 25759 | cat >>conftest.$ac_ext <<_ACEOF |
| 25760 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25761 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25762 | int |
| 25763 | main () |
| 25764 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25765 | |
| 25766 | FILE *f = fopen("/dev/null", "r"); |
| 25767 | flockfile(f); |
| 25768 | getc_unlocked(f); |
| 25769 | funlockfile(f); |
| 25770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25771 | ; |
| 25772 | return 0; |
| 25773 | } |
| 25774 | _ACEOF |
| 25775 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25776 | if { (ac_try="$ac_link" |
| 25777 | case "(($ac_try" in |
| 25778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25779 | *) ac_try_echo=$ac_try;; |
| 25780 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25782 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25783 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25785 | rm -f conftest.er1 |
| 25786 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25788 | (exit $ac_status); } && { |
| 25789 | test -z "$ac_c_werror_flag" || |
| 25790 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25791 | } && test -s conftest$ac_exeext && |
| 25792 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25793 | ac_cv_have_getc_unlocked=yes |
| 25794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25798 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25799 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25800 | |
| 25801 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25802 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25803 | fi |
| 25804 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25805 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 25806 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25807 | if test "$ac_cv_have_getc_unlocked" = yes |
| 25808 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25809 | |
| 25810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25811 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25812 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25813 | |
| 25814 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25815 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25816 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25817 | # save the value of LIBS so we don't actually link Python with readline |
| 25818 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25819 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25820 | # On some systems we need to link readline to a termcap compatible |
| 25821 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 25822 | # with setup.py. |
| 25823 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25824 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 25825 | 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] | 25826 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 25827 | if test -z "$py_libtermcap"; then |
| 25828 | READLINE_LIBS="-lreadline" |
| 25829 | else |
| 25830 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 25831 | fi |
| 25832 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 25833 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25834 | /* confdefs.h. */ |
| 25835 | _ACEOF |
| 25836 | cat confdefs.h >>conftest.$ac_ext |
| 25837 | cat >>conftest.$ac_ext <<_ACEOF |
| 25838 | /* end confdefs.h. */ |
| 25839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25840 | /* Override any GCC internal prototype to avoid an error. |
| 25841 | Use char because int might match the return type of a GCC |
| 25842 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25843 | #ifdef __cplusplus |
| 25844 | extern "C" |
| 25845 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25846 | char readline (); |
| 25847 | int |
| 25848 | main () |
| 25849 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25850 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25851 | ; |
| 25852 | return 0; |
| 25853 | } |
| 25854 | _ACEOF |
| 25855 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25856 | if { (ac_try="$ac_link" |
| 25857 | case "(($ac_try" in |
| 25858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25859 | *) ac_try_echo=$ac_try;; |
| 25860 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25862 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25863 | ac_status=$? |
| 25864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25865 | rm -f conftest.er1 |
| 25866 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25868 | (exit $ac_status); } && { |
| 25869 | test -z "$ac_c_werror_flag" || |
| 25870 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25871 | } && test -s conftest$ac_exeext && |
| 25872 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25873 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25874 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25875 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25877 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25878 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25879 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25880 | |
| 25881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25882 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25883 | if test $py_cv_lib_readline = yes; then |
| 25884 | break |
| 25885 | fi |
| 25886 | done |
| 25887 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 25888 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 25889 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25890 | { echo "$as_me:$LINENO: result: none" >&5 |
| 25891 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25892 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25893 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 25894 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25895 | |
| 25896 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25897 | #define HAVE_LIBREADLINE 1 |
| 25898 | _ACEOF |
| 25899 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25900 | fi |
| 25901 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25902 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25903 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 25904 | 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] | 25905 | 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] | 25906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25907 | else |
| 25908 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25909 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25910 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25911 | /* confdefs.h. */ |
| 25912 | _ACEOF |
| 25913 | cat confdefs.h >>conftest.$ac_ext |
| 25914 | cat >>conftest.$ac_ext <<_ACEOF |
| 25915 | /* end confdefs.h. */ |
| 25916 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25917 | /* Override any GCC internal prototype to avoid an error. |
| 25918 | Use char because int might match the return type of a GCC |
| 25919 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25920 | #ifdef __cplusplus |
| 25921 | extern "C" |
| 25922 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25923 | char rl_callback_handler_install (); |
| 25924 | int |
| 25925 | main () |
| 25926 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25927 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25928 | ; |
| 25929 | return 0; |
| 25930 | } |
| 25931 | _ACEOF |
| 25932 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25933 | if { (ac_try="$ac_link" |
| 25934 | case "(($ac_try" in |
| 25935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25936 | *) ac_try_echo=$ac_try;; |
| 25937 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25939 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25940 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25942 | rm -f conftest.er1 |
| 25943 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25945 | (exit $ac_status); } && { |
| 25946 | test -z "$ac_c_werror_flag" || |
| 25947 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25948 | } && test -s conftest$ac_exeext && |
| 25949 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25950 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 25951 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25952 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25954 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25955 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25956 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25957 | |
| 25958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25959 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25960 | LIBS=$ac_check_lib_save_LIBS |
| 25961 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25962 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25963 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25964 | 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] | 25965 | |
| 25966 | cat >>confdefs.h <<\_ACEOF |
| 25967 | #define HAVE_RL_CALLBACK 1 |
| 25968 | _ACEOF |
| 25969 | |
| 25970 | fi |
| 25971 | |
| 25972 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25973 | # check for readline 2.2 |
| 25974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25975 | /* confdefs.h. */ |
| 25976 | _ACEOF |
| 25977 | cat confdefs.h >>conftest.$ac_ext |
| 25978 | cat >>conftest.$ac_ext <<_ACEOF |
| 25979 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25980 | #include <readline/readline.h> |
| 25981 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25982 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25983 | case "(($ac_try" in |
| 25984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25985 | *) ac_try_echo=$ac_try;; |
| 25986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25989 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25990 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25991 | rm -f conftest.er1 |
| 25992 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25994 | (exit $ac_status); } >/dev/null && { |
| 25995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25996 | test ! -s conftest.err |
| 25997 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25998 | have_readline=yes |
| 25999 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26002 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26003 | have_readline=no |
| 26004 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26005 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26006 | rm -f conftest.err conftest.$ac_ext |
| 26007 | if test $have_readline = yes |
| 26008 | then |
| 26009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26010 | /* confdefs.h. */ |
| 26011 | _ACEOF |
| 26012 | cat confdefs.h >>conftest.$ac_ext |
| 26013 | cat >>conftest.$ac_ext <<_ACEOF |
| 26014 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26015 | #include <readline/readline.h> |
| 26016 | |
| 26017 | _ACEOF |
| 26018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26019 | $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] | 26020 | |
| 26021 | cat >>confdefs.h <<\_ACEOF |
| 26022 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26023 | _ACEOF |
| 26024 | |
| 26025 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 26026 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26027 | |
| 26028 | cat >conftest.$ac_ext <<_ACEOF |
| 26029 | /* confdefs.h. */ |
| 26030 | _ACEOF |
| 26031 | cat confdefs.h >>conftest.$ac_ext |
| 26032 | cat >>conftest.$ac_ext <<_ACEOF |
| 26033 | /* end confdefs.h. */ |
| 26034 | #include <readline/readline.h> |
| 26035 | |
| 26036 | _ACEOF |
| 26037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26038 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26039 | |
| 26040 | cat >>confdefs.h <<\_ACEOF |
| 26041 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26042 | _ACEOF |
| 26043 | |
| 26044 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 26045 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26046 | |
| 26047 | fi |
| 26048 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26049 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26050 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26051 | 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] | 26052 | 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] | 26053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26055 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26056 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26058 | /* confdefs.h. */ |
| 26059 | _ACEOF |
| 26060 | cat confdefs.h >>conftest.$ac_ext |
| 26061 | cat >>conftest.$ac_ext <<_ACEOF |
| 26062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26064 | /* Override any GCC internal prototype to avoid an error. |
| 26065 | Use char because int might match the return type of a GCC |
| 26066 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26067 | #ifdef __cplusplus |
| 26068 | extern "C" |
| 26069 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26070 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26071 | int |
| 26072 | main () |
| 26073 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26074 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26075 | ; |
| 26076 | return 0; |
| 26077 | } |
| 26078 | _ACEOF |
| 26079 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26080 | if { (ac_try="$ac_link" |
| 26081 | case "(($ac_try" in |
| 26082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26083 | *) ac_try_echo=$ac_try;; |
| 26084 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26086 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26089 | rm -f conftest.er1 |
| 26090 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26092 | (exit $ac_status); } && { |
| 26093 | test -z "$ac_c_werror_flag" || |
| 26094 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26095 | } && test -s conftest$ac_exeext && |
| 26096 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26097 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26098 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26099 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26102 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26103 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26104 | |
| 26105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26106 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26107 | LIBS=$ac_check_lib_save_LIBS |
| 26108 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26109 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26110 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26111 | 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] | 26112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26113 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26114 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26115 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26116 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26117 | fi |
| 26118 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26119 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26120 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26121 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26122 | 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] | 26123 | 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] | 26124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26125 | else |
| 26126 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26127 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26128 | cat >conftest.$ac_ext <<_ACEOF |
| 26129 | /* confdefs.h. */ |
| 26130 | _ACEOF |
| 26131 | cat confdefs.h >>conftest.$ac_ext |
| 26132 | cat >>conftest.$ac_ext <<_ACEOF |
| 26133 | /* end confdefs.h. */ |
| 26134 | |
| 26135 | /* Override any GCC internal prototype to avoid an error. |
| 26136 | Use char because int might match the return type of a GCC |
| 26137 | builtin and then its argument prototype would still apply. */ |
| 26138 | #ifdef __cplusplus |
| 26139 | extern "C" |
| 26140 | #endif |
| 26141 | char rl_completion_display_matches_hook (); |
| 26142 | int |
| 26143 | main () |
| 26144 | { |
| 26145 | return rl_completion_display_matches_hook (); |
| 26146 | ; |
| 26147 | return 0; |
| 26148 | } |
| 26149 | _ACEOF |
| 26150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26151 | if { (ac_try="$ac_link" |
| 26152 | case "(($ac_try" in |
| 26153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26154 | *) ac_try_echo=$ac_try;; |
| 26155 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26157 | (eval "$ac_link") 2>conftest.er1 |
| 26158 | ac_status=$? |
| 26159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26160 | rm -f conftest.er1 |
| 26161 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26163 | (exit $ac_status); } && { |
| 26164 | test -z "$ac_c_werror_flag" || |
| 26165 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26166 | } && test -s conftest$ac_exeext && |
| 26167 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26168 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26170 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26172 | |
| 26173 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26174 | fi |
| 26175 | |
| 26176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26177 | conftest$ac_exeext conftest.$ac_ext |
| 26178 | LIBS=$ac_check_lib_save_LIBS |
| 26179 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26180 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26181 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26182 | 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] | 26183 | |
| 26184 | cat >>confdefs.h <<\_ACEOF |
| 26185 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26186 | _ACEOF |
| 26187 | |
| 26188 | fi |
| 26189 | |
| 26190 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26191 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26192 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26193 | 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] | 26194 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26197 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26198 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26200 | /* confdefs.h. */ |
| 26201 | _ACEOF |
| 26202 | cat confdefs.h >>conftest.$ac_ext |
| 26203 | cat >>conftest.$ac_ext <<_ACEOF |
| 26204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26206 | /* Override any GCC internal prototype to avoid an error. |
| 26207 | Use char because int might match the return type of a GCC |
| 26208 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26209 | #ifdef __cplusplus |
| 26210 | extern "C" |
| 26211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26212 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26213 | int |
| 26214 | main () |
| 26215 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26216 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26217 | ; |
| 26218 | return 0; |
| 26219 | } |
| 26220 | _ACEOF |
| 26221 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26222 | if { (ac_try="$ac_link" |
| 26223 | case "(($ac_try" in |
| 26224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26225 | *) ac_try_echo=$ac_try;; |
| 26226 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26228 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26231 | rm -f conftest.er1 |
| 26232 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26234 | (exit $ac_status); } && { |
| 26235 | test -z "$ac_c_werror_flag" || |
| 26236 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26237 | } && test -s conftest$ac_exeext && |
| 26238 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26239 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26240 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26241 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26244 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26245 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26246 | |
| 26247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26248 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26249 | LIBS=$ac_check_lib_save_LIBS |
| 26250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26251 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26252 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26253 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26255 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26256 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26257 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26258 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26259 | fi |
| 26260 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26261 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26262 | # also in readline 4.2 |
| 26263 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26264 | /* confdefs.h. */ |
| 26265 | _ACEOF |
| 26266 | cat confdefs.h >>conftest.$ac_ext |
| 26267 | cat >>conftest.$ac_ext <<_ACEOF |
| 26268 | /* end confdefs.h. */ |
| 26269 | #include <readline/readline.h> |
| 26270 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26271 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26272 | case "(($ac_try" in |
| 26273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26274 | *) ac_try_echo=$ac_try;; |
| 26275 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26277 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26278 | ac_status=$? |
| 26279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26280 | rm -f conftest.er1 |
| 26281 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26283 | (exit $ac_status); } >/dev/null && { |
| 26284 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26285 | test ! -s conftest.err |
| 26286 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26287 | have_readline=yes |
| 26288 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26289 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26291 | |
| 26292 | have_readline=no |
| 26293 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26294 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26295 | rm -f conftest.err conftest.$ac_ext |
| 26296 | if test $have_readline = yes |
| 26297 | then |
| 26298 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26299 | /* confdefs.h. */ |
| 26300 | _ACEOF |
| 26301 | cat confdefs.h >>conftest.$ac_ext |
| 26302 | cat >>conftest.$ac_ext <<_ACEOF |
| 26303 | /* end confdefs.h. */ |
| 26304 | #include <readline/readline.h> |
| 26305 | |
| 26306 | _ACEOF |
| 26307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26308 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26309 | |
| 26310 | cat >>confdefs.h <<\_ACEOF |
| 26311 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26312 | _ACEOF |
| 26313 | |
| 26314 | fi |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 26315 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26316 | |
| 26317 | fi |
| 26318 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26319 | # End of readline checks: restore LIBS |
| 26320 | LIBS=$LIBS_no_readline |
| 26321 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26322 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26323 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26324 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26327 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26328 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26329 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26332 | /* confdefs.h. */ |
| 26333 | _ACEOF |
| 26334 | cat confdefs.h >>conftest.$ac_ext |
| 26335 | cat >>conftest.$ac_ext <<_ACEOF |
| 26336 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26337 | |
| 26338 | int main() |
| 26339 | { |
| 26340 | int val1 = nice(1); |
| 26341 | if (val1 != -1 && val1 == nice(2)) |
| 26342 | exit(0); |
| 26343 | exit(1); |
| 26344 | } |
| 26345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26346 | _ACEOF |
| 26347 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26348 | if { (ac_try="$ac_link" |
| 26349 | case "(($ac_try" in |
| 26350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26351 | *) ac_try_echo=$ac_try;; |
| 26352 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26354 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26355 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26358 | { (case "(($ac_try" in |
| 26359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26360 | *) ac_try_echo=$ac_try;; |
| 26361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26363 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26364 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26366 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26367 | ac_cv_broken_nice=yes |
| 26368 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26369 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26370 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26373 | ( exit $ac_status ) |
| 26374 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26375 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26376 | 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] | 26377 | fi |
| 26378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26379 | |
| 26380 | fi |
| 26381 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26382 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26383 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26384 | if test "$ac_cv_broken_nice" = yes |
| 26385 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26386 | |
| 26387 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26388 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26389 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26390 | |
| 26391 | fi |
| 26392 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26393 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26394 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26395 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26397 | else |
| 26398 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26399 | ac_cv_broken_poll=no |
| 26400 | else |
| 26401 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26402 | /* confdefs.h. */ |
| 26403 | _ACEOF |
| 26404 | cat confdefs.h >>conftest.$ac_ext |
| 26405 | cat >>conftest.$ac_ext <<_ACEOF |
| 26406 | /* end confdefs.h. */ |
| 26407 | |
| 26408 | #include <poll.h> |
| 26409 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26410 | int main() |
| 26411 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26412 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26413 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26414 | |
| 26415 | close (42); |
| 26416 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26417 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26418 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26419 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26420 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26421 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26422 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26423 | return 1; |
| 26424 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26425 | |
| 26426 | _ACEOF |
| 26427 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26428 | if { (ac_try="$ac_link" |
| 26429 | case "(($ac_try" in |
| 26430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26431 | *) ac_try_echo=$ac_try;; |
| 26432 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26434 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26435 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26437 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26438 | { (case "(($ac_try" in |
| 26439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26440 | *) ac_try_echo=$ac_try;; |
| 26441 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26443 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26444 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26446 | (exit $ac_status); }; }; then |
| 26447 | ac_cv_broken_poll=yes |
| 26448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26450 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26452 | |
| 26453 | ( exit $ac_status ) |
| 26454 | ac_cv_broken_poll=no |
| 26455 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26456 | 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] | 26457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26458 | |
| 26459 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26460 | fi |
| 26461 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26462 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26463 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26464 | if test "$ac_cv_broken_poll" = yes |
| 26465 | then |
| 26466 | |
| 26467 | cat >>confdefs.h <<\_ACEOF |
| 26468 | #define HAVE_BROKEN_POLL 1 |
| 26469 | _ACEOF |
| 26470 | |
| 26471 | fi |
| 26472 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26473 | # 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] | 26474 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26475 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26476 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26477 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26478 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26480 | else |
| 26481 | cat >conftest.$ac_ext <<_ACEOF |
| 26482 | /* confdefs.h. */ |
| 26483 | _ACEOF |
| 26484 | cat confdefs.h >>conftest.$ac_ext |
| 26485 | cat >>conftest.$ac_ext <<_ACEOF |
| 26486 | /* end confdefs.h. */ |
| 26487 | #include <sys/types.h> |
| 26488 | #include <$ac_cv_struct_tm> |
| 26489 | |
| 26490 | |
| 26491 | int |
| 26492 | main () |
| 26493 | { |
| 26494 | static struct tm ac_aggr; |
| 26495 | if (ac_aggr.tm_zone) |
| 26496 | return 0; |
| 26497 | ; |
| 26498 | return 0; |
| 26499 | } |
| 26500 | _ACEOF |
| 26501 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26502 | if { (ac_try="$ac_compile" |
| 26503 | case "(($ac_try" in |
| 26504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26505 | *) ac_try_echo=$ac_try;; |
| 26506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26508 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26509 | ac_status=$? |
| 26510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26511 | rm -f conftest.er1 |
| 26512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26514 | (exit $ac_status); } && { |
| 26515 | test -z "$ac_c_werror_flag" || |
| 26516 | test ! -s conftest.err |
| 26517 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26518 | ac_cv_member_struct_tm_tm_zone=yes |
| 26519 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26520 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26523 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26524 | /* confdefs.h. */ |
| 26525 | _ACEOF |
| 26526 | cat confdefs.h >>conftest.$ac_ext |
| 26527 | cat >>conftest.$ac_ext <<_ACEOF |
| 26528 | /* end confdefs.h. */ |
| 26529 | #include <sys/types.h> |
| 26530 | #include <$ac_cv_struct_tm> |
| 26531 | |
| 26532 | |
| 26533 | int |
| 26534 | main () |
| 26535 | { |
| 26536 | static struct tm ac_aggr; |
| 26537 | if (sizeof ac_aggr.tm_zone) |
| 26538 | return 0; |
| 26539 | ; |
| 26540 | return 0; |
| 26541 | } |
| 26542 | _ACEOF |
| 26543 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26544 | if { (ac_try="$ac_compile" |
| 26545 | case "(($ac_try" in |
| 26546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26547 | *) ac_try_echo=$ac_try;; |
| 26548 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26550 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26551 | ac_status=$? |
| 26552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26553 | rm -f conftest.er1 |
| 26554 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26556 | (exit $ac_status); } && { |
| 26557 | test -z "$ac_c_werror_flag" || |
| 26558 | test ! -s conftest.err |
| 26559 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26560 | ac_cv_member_struct_tm_tm_zone=yes |
| 26561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26562 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26565 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26567 | |
| 26568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26570 | |
| 26571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26572 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26573 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26574 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26575 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26576 | |
| 26577 | cat >>confdefs.h <<_ACEOF |
| 26578 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26579 | _ACEOF |
| 26580 | |
| 26581 | |
| 26582 | fi |
| 26583 | |
| 26584 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26585 | |
| 26586 | cat >>confdefs.h <<\_ACEOF |
| 26587 | #define HAVE_TM_ZONE 1 |
| 26588 | _ACEOF |
| 26589 | |
| 26590 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26591 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26592 | 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] | 26593 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26595 | else |
| 26596 | cat >conftest.$ac_ext <<_ACEOF |
| 26597 | /* confdefs.h. */ |
| 26598 | _ACEOF |
| 26599 | cat confdefs.h >>conftest.$ac_ext |
| 26600 | cat >>conftest.$ac_ext <<_ACEOF |
| 26601 | /* end confdefs.h. */ |
| 26602 | #include <time.h> |
| 26603 | |
| 26604 | int |
| 26605 | main () |
| 26606 | { |
| 26607 | #ifndef tzname |
| 26608 | (void) tzname; |
| 26609 | #endif |
| 26610 | |
| 26611 | ; |
| 26612 | return 0; |
| 26613 | } |
| 26614 | _ACEOF |
| 26615 | rm -f conftest.$ac_objext |
| 26616 | if { (ac_try="$ac_compile" |
| 26617 | case "(($ac_try" in |
| 26618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26619 | *) ac_try_echo=$ac_try;; |
| 26620 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26622 | (eval "$ac_compile") 2>conftest.er1 |
| 26623 | ac_status=$? |
| 26624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26625 | rm -f conftest.er1 |
| 26626 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26628 | (exit $ac_status); } && { |
| 26629 | test -z "$ac_c_werror_flag" || |
| 26630 | test ! -s conftest.err |
| 26631 | } && test -s conftest.$ac_objext; then |
| 26632 | ac_cv_have_decl_tzname=yes |
| 26633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26634 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26636 | |
| 26637 | ac_cv_have_decl_tzname=no |
| 26638 | fi |
| 26639 | |
| 26640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26641 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26642 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26643 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26644 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26645 | |
| 26646 | cat >>confdefs.h <<_ACEOF |
| 26647 | #define HAVE_DECL_TZNAME 1 |
| 26648 | _ACEOF |
| 26649 | |
| 26650 | |
| 26651 | else |
| 26652 | cat >>confdefs.h <<_ACEOF |
| 26653 | #define HAVE_DECL_TZNAME 0 |
| 26654 | _ACEOF |
| 26655 | |
| 26656 | |
| 26657 | fi |
| 26658 | |
| 26659 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26660 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26661 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26662 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26664 | else |
| 26665 | cat >conftest.$ac_ext <<_ACEOF |
| 26666 | /* confdefs.h. */ |
| 26667 | _ACEOF |
| 26668 | cat confdefs.h >>conftest.$ac_ext |
| 26669 | cat >>conftest.$ac_ext <<_ACEOF |
| 26670 | /* end confdefs.h. */ |
| 26671 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26672 | #if !HAVE_DECL_TZNAME |
| 26673 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26674 | #endif |
| 26675 | |
| 26676 | int |
| 26677 | main () |
| 26678 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26679 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26680 | ; |
| 26681 | return 0; |
| 26682 | } |
| 26683 | _ACEOF |
| 26684 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26685 | if { (ac_try="$ac_link" |
| 26686 | case "(($ac_try" in |
| 26687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26688 | *) ac_try_echo=$ac_try;; |
| 26689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26691 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26692 | ac_status=$? |
| 26693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26694 | rm -f conftest.er1 |
| 26695 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26697 | (exit $ac_status); } && { |
| 26698 | test -z "$ac_c_werror_flag" || |
| 26699 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26700 | } && test -s conftest$ac_exeext && |
| 26701 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26702 | ac_cv_var_tzname=yes |
| 26703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26704 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26707 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26708 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26709 | |
| 26710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26711 | conftest$ac_exeext conftest.$ac_ext |
| 26712 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26713 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26714 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26715 | if test $ac_cv_var_tzname = yes; then |
| 26716 | |
| 26717 | cat >>confdefs.h <<\_ACEOF |
| 26718 | #define HAVE_TZNAME 1 |
| 26719 | _ACEOF |
| 26720 | |
| 26721 | fi |
| 26722 | fi |
| 26723 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26724 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26725 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26726 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26727 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26728 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26730 | else |
| 26731 | |
| 26732 | if test "$cross_compiling" = yes; then |
| 26733 | ac_cv_working_tzset=no |
| 26734 | else |
| 26735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26736 | /* confdefs.h. */ |
| 26737 | _ACEOF |
| 26738 | cat confdefs.h >>conftest.$ac_ext |
| 26739 | cat >>conftest.$ac_ext <<_ACEOF |
| 26740 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26741 | |
| 26742 | #include <stdlib.h> |
| 26743 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26744 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26745 | |
| 26746 | #if HAVE_TZNAME |
| 26747 | extern char *tzname[]; |
| 26748 | #endif |
| 26749 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26750 | int main() |
| 26751 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26752 | /* Note that we need to ensure that not only does tzset(3) |
| 26753 | do 'something' with localtime, but it works as documented |
| 26754 | 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] | 26755 | This includes making sure that tzname is set properly if |
| 26756 | tm->tm_zone does not exist since it is the alternative way |
| 26757 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26758 | |
| 26759 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26760 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26761 | */ |
| 26762 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26763 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26764 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26765 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26766 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26767 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26768 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26769 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26770 | #if HAVE_TZNAME |
| 26771 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26772 | if (strcmp(tzname[0], "UTC") || |
| 26773 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26774 | exit(1); |
| 26775 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26776 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26777 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26778 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26779 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26780 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26781 | #if HAVE_TZNAME |
| 26782 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26783 | exit(1); |
| 26784 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26785 | |
| 26786 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26787 | tzset(); |
| 26788 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26789 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26790 | #if HAVE_TZNAME |
| 26791 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26792 | exit(1); |
| 26793 | #endif |
| 26794 | |
| 26795 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26796 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26797 | exit(1); |
| 26798 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26799 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26800 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26801 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26802 | exit(0); |
| 26803 | } |
| 26804 | |
| 26805 | _ACEOF |
| 26806 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26807 | if { (ac_try="$ac_link" |
| 26808 | case "(($ac_try" in |
| 26809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26810 | *) ac_try_echo=$ac_try;; |
| 26811 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26813 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26814 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26817 | { (case "(($ac_try" in |
| 26818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26819 | *) ac_try_echo=$ac_try;; |
| 26820 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26822 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26823 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26825 | (exit $ac_status); }; }; then |
| 26826 | ac_cv_working_tzset=yes |
| 26827 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26831 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26832 | ( exit $ac_status ) |
| 26833 | ac_cv_working_tzset=no |
| 26834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26835 | 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] | 26836 | fi |
| 26837 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26838 | |
| 26839 | fi |
| 26840 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26841 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 26842 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26843 | if test "$ac_cv_working_tzset" = yes |
| 26844 | then |
| 26845 | |
| 26846 | cat >>confdefs.h <<\_ACEOF |
| 26847 | #define HAVE_WORKING_TZSET 1 |
| 26848 | _ACEOF |
| 26849 | |
| 26850 | fi |
| 26851 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26852 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26853 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 26854 | 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] | 26855 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26857 | else |
| 26858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26859 | /* confdefs.h. */ |
| 26860 | _ACEOF |
| 26861 | cat confdefs.h >>conftest.$ac_ext |
| 26862 | cat >>conftest.$ac_ext <<_ACEOF |
| 26863 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26864 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26865 | int |
| 26866 | main () |
| 26867 | { |
| 26868 | |
| 26869 | struct stat st; |
| 26870 | st.st_mtim.tv_nsec = 1; |
| 26871 | |
| 26872 | ; |
| 26873 | return 0; |
| 26874 | } |
| 26875 | _ACEOF |
| 26876 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26877 | if { (ac_try="$ac_compile" |
| 26878 | case "(($ac_try" in |
| 26879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26880 | *) ac_try_echo=$ac_try;; |
| 26881 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26883 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26886 | rm -f conftest.er1 |
| 26887 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26889 | (exit $ac_status); } && { |
| 26890 | test -z "$ac_c_werror_flag" || |
| 26891 | test ! -s conftest.err |
| 26892 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 26893 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26894 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26897 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26898 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26899 | fi |
| 26900 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26902 | fi |
| 26903 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26904 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 26905 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26906 | if test "$ac_cv_stat_tv_nsec" = yes |
| 26907 | then |
| 26908 | |
| 26909 | cat >>confdefs.h <<\_ACEOF |
| 26910 | #define HAVE_STAT_TV_NSEC 1 |
| 26911 | _ACEOF |
| 26912 | |
| 26913 | fi |
| 26914 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26915 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26916 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 26917 | 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] | 26918 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26920 | else |
| 26921 | cat >conftest.$ac_ext <<_ACEOF |
| 26922 | /* confdefs.h. */ |
| 26923 | _ACEOF |
| 26924 | cat confdefs.h >>conftest.$ac_ext |
| 26925 | cat >>conftest.$ac_ext <<_ACEOF |
| 26926 | /* end confdefs.h. */ |
| 26927 | #include <sys/stat.h> |
| 26928 | int |
| 26929 | main () |
| 26930 | { |
| 26931 | |
| 26932 | struct stat st; |
| 26933 | st.st_mtimespec.tv_nsec = 1; |
| 26934 | |
| 26935 | ; |
| 26936 | return 0; |
| 26937 | } |
| 26938 | _ACEOF |
| 26939 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26940 | if { (ac_try="$ac_compile" |
| 26941 | case "(($ac_try" in |
| 26942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26943 | *) ac_try_echo=$ac_try;; |
| 26944 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26946 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26947 | ac_status=$? |
| 26948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26949 | rm -f conftest.er1 |
| 26950 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26952 | (exit $ac_status); } && { |
| 26953 | test -z "$ac_c_werror_flag" || |
| 26954 | test ! -s conftest.err |
| 26955 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26956 | ac_cv_stat_tv_nsec2=yes |
| 26957 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26958 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26960 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26961 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26962 | fi |
| 26963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26965 | fi |
| 26966 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26967 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 26968 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26969 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 26970 | then |
| 26971 | |
| 26972 | cat >>confdefs.h <<\_ACEOF |
| 26973 | #define HAVE_STAT_TV_NSEC2 1 |
| 26974 | _ACEOF |
| 26975 | |
| 26976 | fi |
| 26977 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26978 | # 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] | 26979 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 26980 | 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] | 26981 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26984 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26985 | /* confdefs.h. */ |
| 26986 | _ACEOF |
| 26987 | cat confdefs.h >>conftest.$ac_ext |
| 26988 | cat >>conftest.$ac_ext <<_ACEOF |
| 26989 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26990 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26991 | int |
| 26992 | main () |
| 26993 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26994 | |
| 26995 | int rtn; |
| 26996 | rtn = mvwdelch(0,0,0); |
| 26997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26998 | ; |
| 26999 | return 0; |
| 27000 | } |
| 27001 | _ACEOF |
| 27002 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27003 | if { (ac_try="$ac_compile" |
| 27004 | case "(($ac_try" in |
| 27005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27006 | *) ac_try_echo=$ac_try;; |
| 27007 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27009 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27012 | rm -f conftest.er1 |
| 27013 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27015 | (exit $ac_status); } && { |
| 27016 | test -z "$ac_c_werror_flag" || |
| 27017 | test ! -s conftest.err |
| 27018 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27019 | ac_cv_mvwdelch_is_expression=yes |
| 27020 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27024 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27025 | fi |
| 27026 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27028 | fi |
| 27029 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27030 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27031 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27032 | |
| 27033 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27034 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27035 | |
| 27036 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27037 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27038 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27039 | |
| 27040 | fi |
| 27041 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27042 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27043 | 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] | 27044 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27047 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27048 | /* confdefs.h. */ |
| 27049 | _ACEOF |
| 27050 | cat confdefs.h >>conftest.$ac_ext |
| 27051 | cat >>conftest.$ac_ext <<_ACEOF |
| 27052 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27053 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27054 | int |
| 27055 | main () |
| 27056 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27057 | |
| 27058 | WINDOW *w; |
| 27059 | w->_flags = 0; |
| 27060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27061 | ; |
| 27062 | return 0; |
| 27063 | } |
| 27064 | _ACEOF |
| 27065 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27066 | if { (ac_try="$ac_compile" |
| 27067 | case "(($ac_try" in |
| 27068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27069 | *) ac_try_echo=$ac_try;; |
| 27070 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27072 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27075 | rm -f conftest.er1 |
| 27076 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27078 | (exit $ac_status); } && { |
| 27079 | test -z "$ac_c_werror_flag" || |
| 27080 | test ! -s conftest.err |
| 27081 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27082 | ac_cv_window_has_flags=yes |
| 27083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27087 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27088 | fi |
| 27089 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27091 | fi |
| 27092 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27093 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27094 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27095 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27096 | |
| 27097 | if test "$ac_cv_window_has_flags" = yes |
| 27098 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27099 | |
| 27100 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27101 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27102 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27103 | |
| 27104 | fi |
| 27105 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27106 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27107 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27108 | cat >conftest.$ac_ext <<_ACEOF |
| 27109 | /* confdefs.h. */ |
| 27110 | _ACEOF |
| 27111 | cat confdefs.h >>conftest.$ac_ext |
| 27112 | cat >>conftest.$ac_ext <<_ACEOF |
| 27113 | /* end confdefs.h. */ |
| 27114 | #include <curses.h> |
| 27115 | int |
| 27116 | main () |
| 27117 | { |
| 27118 | void *x=is_term_resized |
| 27119 | ; |
| 27120 | return 0; |
| 27121 | } |
| 27122 | _ACEOF |
| 27123 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27124 | if { (ac_try="$ac_compile" |
| 27125 | case "(($ac_try" in |
| 27126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27127 | *) ac_try_echo=$ac_try;; |
| 27128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27130 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27131 | ac_status=$? |
| 27132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27133 | rm -f conftest.er1 |
| 27134 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27136 | (exit $ac_status); } && { |
| 27137 | test -z "$ac_c_werror_flag" || |
| 27138 | test ! -s conftest.err |
| 27139 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27140 | |
| 27141 | cat >>confdefs.h <<\_ACEOF |
| 27142 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27143 | _ACEOF |
| 27144 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27145 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27146 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27147 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27148 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27152 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27153 | |
| 27154 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27157 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27158 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27159 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27160 | cat >conftest.$ac_ext <<_ACEOF |
| 27161 | /* confdefs.h. */ |
| 27162 | _ACEOF |
| 27163 | cat confdefs.h >>conftest.$ac_ext |
| 27164 | cat >>conftest.$ac_ext <<_ACEOF |
| 27165 | /* end confdefs.h. */ |
| 27166 | #include <curses.h> |
| 27167 | int |
| 27168 | main () |
| 27169 | { |
| 27170 | void *x=resize_term |
| 27171 | ; |
| 27172 | return 0; |
| 27173 | } |
| 27174 | _ACEOF |
| 27175 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27176 | if { (ac_try="$ac_compile" |
| 27177 | case "(($ac_try" in |
| 27178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27179 | *) ac_try_echo=$ac_try;; |
| 27180 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27182 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27183 | ac_status=$? |
| 27184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27185 | rm -f conftest.er1 |
| 27186 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27188 | (exit $ac_status); } && { |
| 27189 | test -z "$ac_c_werror_flag" || |
| 27190 | test ! -s conftest.err |
| 27191 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27192 | |
| 27193 | cat >>confdefs.h <<\_ACEOF |
| 27194 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27195 | _ACEOF |
| 27196 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27197 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27198 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27199 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27200 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27202 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27204 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27205 | |
| 27206 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27207 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27209 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27210 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27211 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27212 | cat >conftest.$ac_ext <<_ACEOF |
| 27213 | /* confdefs.h. */ |
| 27214 | _ACEOF |
| 27215 | cat confdefs.h >>conftest.$ac_ext |
| 27216 | cat >>conftest.$ac_ext <<_ACEOF |
| 27217 | /* end confdefs.h. */ |
| 27218 | #include <curses.h> |
| 27219 | int |
| 27220 | main () |
| 27221 | { |
| 27222 | void *x=resizeterm |
| 27223 | ; |
| 27224 | return 0; |
| 27225 | } |
| 27226 | _ACEOF |
| 27227 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27228 | if { (ac_try="$ac_compile" |
| 27229 | case "(($ac_try" in |
| 27230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27231 | *) ac_try_echo=$ac_try;; |
| 27232 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27234 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27235 | ac_status=$? |
| 27236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27237 | rm -f conftest.er1 |
| 27238 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27240 | (exit $ac_status); } && { |
| 27241 | test -z "$ac_c_werror_flag" || |
| 27242 | test ! -s conftest.err |
| 27243 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27244 | |
| 27245 | cat >>confdefs.h <<\_ACEOF |
| 27246 | #define HAVE_CURSES_RESIZETERM 1 |
| 27247 | _ACEOF |
| 27248 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27249 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27250 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27251 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27252 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27254 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27255 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27256 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27257 | |
| 27258 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27261 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27262 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27263 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27264 | |
| 27265 | if test -r /dev/ptmx |
| 27266 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27267 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27268 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27269 | |
| 27270 | cat >>confdefs.h <<\_ACEOF |
| 27271 | #define HAVE_DEV_PTMX 1 |
| 27272 | _ACEOF |
| 27273 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27274 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27276 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27277 | fi |
| 27278 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27279 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27280 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27281 | |
| 27282 | if test -r /dev/ptc |
| 27283 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27284 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27285 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27286 | |
| 27287 | cat >>confdefs.h <<\_ACEOF |
| 27288 | #define HAVE_DEV_PTC 1 |
| 27289 | _ACEOF |
| 27290 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27291 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27292 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27293 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27294 | fi |
| 27295 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27296 | if test "$have_long_long" = yes |
| 27297 | then |
| 27298 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27299 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27300 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27302 | else |
| 27303 | if test "$cross_compiling" = yes; then |
| 27304 | ac_cv_have_long_long_format=no |
| 27305 | else |
| 27306 | cat >conftest.$ac_ext <<_ACEOF |
| 27307 | /* confdefs.h. */ |
| 27308 | _ACEOF |
| 27309 | cat confdefs.h >>conftest.$ac_ext |
| 27310 | cat >>conftest.$ac_ext <<_ACEOF |
| 27311 | /* end confdefs.h. */ |
| 27312 | |
| 27313 | #include <stdio.h> |
| 27314 | #include <stddef.h> |
| 27315 | #include <string.h> |
| 27316 | |
| 27317 | #ifdef HAVE_SYS_TYPES_H |
| 27318 | #include <sys/types.h> |
| 27319 | #endif |
| 27320 | |
| 27321 | int main() |
| 27322 | { |
| 27323 | char buffer[256]; |
| 27324 | |
| 27325 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27326 | return 1; |
| 27327 | if (strcmp(buffer, "123")) |
| 27328 | return 1; |
| 27329 | |
| 27330 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27331 | return 1; |
| 27332 | if (strcmp(buffer, "-123")) |
| 27333 | return 1; |
| 27334 | |
| 27335 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27336 | return 1; |
| 27337 | if (strcmp(buffer, "123")) |
| 27338 | return 1; |
| 27339 | |
| 27340 | return 0; |
| 27341 | } |
| 27342 | |
| 27343 | _ACEOF |
| 27344 | rm -f conftest$ac_exeext |
| 27345 | if { (ac_try="$ac_link" |
| 27346 | case "(($ac_try" in |
| 27347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27348 | *) ac_try_echo=$ac_try;; |
| 27349 | esac |
| 27350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27351 | (eval "$ac_link") 2>&5 |
| 27352 | ac_status=$? |
| 27353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27354 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27355 | { (case "(($ac_try" in |
| 27356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27357 | *) ac_try_echo=$ac_try;; |
| 27358 | esac |
| 27359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27360 | (eval "$ac_try") 2>&5 |
| 27361 | ac_status=$? |
| 27362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27363 | (exit $ac_status); }; }; then |
| 27364 | ac_cv_have_long_long_format=yes |
| 27365 | else |
| 27366 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27367 | echo "$as_me: failed program was:" >&5 |
| 27368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27369 | |
| 27370 | ( exit $ac_status ) |
| 27371 | ac_cv_have_long_long_format=no |
| 27372 | fi |
| 27373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27374 | fi |
| 27375 | |
| 27376 | |
| 27377 | |
| 27378 | fi |
| 27379 | |
| 27380 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27381 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27382 | fi |
| 27383 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27384 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27385 | then |
| 27386 | |
| 27387 | cat >>confdefs.h <<\_ACEOF |
| 27388 | #define PY_FORMAT_LONG_LONG "ll" |
| 27389 | _ACEOF |
| 27390 | |
| 27391 | fi |
| 27392 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27393 | if test $ac_sys_system = Darwin |
| 27394 | then |
| 27395 | LIBS="$LIBS -framework CoreFoundation" |
| 27396 | fi |
| 27397 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27398 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27399 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27400 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27401 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27403 | else |
| 27404 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27405 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27406 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27407 | else |
| 27408 | cat >conftest.$ac_ext <<_ACEOF |
| 27409 | /* confdefs.h. */ |
| 27410 | _ACEOF |
| 27411 | cat confdefs.h >>conftest.$ac_ext |
| 27412 | cat >>conftest.$ac_ext <<_ACEOF |
| 27413 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27414 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27415 | #include <stdio.h> |
| 27416 | #include <stddef.h> |
| 27417 | #include <string.h> |
| 27418 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27419 | #ifdef HAVE_SYS_TYPES_H |
| 27420 | #include <sys/types.h> |
| 27421 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27422 | |
| 27423 | #ifdef HAVE_SSIZE_T |
| 27424 | typedef ssize_t Py_ssize_t; |
| 27425 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27426 | typedef long Py_ssize_t; |
| 27427 | #else |
| 27428 | typedef int Py_ssize_t; |
| 27429 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27430 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27431 | int main() |
| 27432 | { |
| 27433 | char buffer[256]; |
| 27434 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27435 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27436 | return 1; |
| 27437 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27438 | if (strcmp(buffer, "123")) |
| 27439 | return 1; |
| 27440 | |
| 27441 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27442 | return 1; |
| 27443 | |
| 27444 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27445 | return 1; |
| 27446 | |
| 27447 | return 0; |
| 27448 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27449 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27450 | _ACEOF |
| 27451 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27452 | if { (ac_try="$ac_link" |
| 27453 | case "(($ac_try" in |
| 27454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27455 | *) ac_try_echo=$ac_try;; |
| 27456 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27458 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27459 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27462 | { (case "(($ac_try" in |
| 27463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27464 | *) ac_try_echo=$ac_try;; |
| 27465 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27467 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27468 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27470 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27471 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27472 | else |
| 27473 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27474 | echo "$as_me: failed program was:" >&5 |
| 27475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27476 | |
| 27477 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27478 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27479 | fi |
| 27480 | 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] | 27481 | fi |
| 27482 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27483 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27484 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27485 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27486 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27487 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27488 | |
| 27489 | cat >>confdefs.h <<\_ACEOF |
| 27490 | #define PY_FORMAT_SIZE_T "z" |
| 27491 | _ACEOF |
| 27492 | |
| 27493 | fi |
| 27494 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27495 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27496 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27497 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27501 | /* confdefs.h. */ |
| 27502 | _ACEOF |
| 27503 | cat confdefs.h >>conftest.$ac_ext |
| 27504 | cat >>conftest.$ac_ext <<_ACEOF |
| 27505 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27506 | |
| 27507 | #ifdef HAVE_SYS_TYPES_H |
| 27508 | #include <sys/types.h> |
| 27509 | #endif |
| 27510 | #ifdef HAVE_SYS_SOCKET_H |
| 27511 | #include <sys/socket.h> |
| 27512 | #endif |
| 27513 | |
| 27514 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27515 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27516 | int |
| 27517 | main () |
| 27518 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27519 | if ((ac__type_new_ *) 0) |
| 27520 | return 0; |
| 27521 | if (sizeof (ac__type_new_)) |
| 27522 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27523 | ; |
| 27524 | return 0; |
| 27525 | } |
| 27526 | _ACEOF |
| 27527 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27528 | if { (ac_try="$ac_compile" |
| 27529 | case "(($ac_try" in |
| 27530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27531 | *) ac_try_echo=$ac_try;; |
| 27532 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27534 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27537 | rm -f conftest.er1 |
| 27538 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27540 | (exit $ac_status); } && { |
| 27541 | test -z "$ac_c_werror_flag" || |
| 27542 | test ! -s conftest.err |
| 27543 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27544 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27545 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27548 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27549 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27551 | |
| 27552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27553 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27554 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27555 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27556 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27557 | : |
| 27558 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27559 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27560 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27561 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27562 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27563 | |
| 27564 | fi |
| 27565 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27566 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27567 | |
| 27568 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27569 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27570 | do |
| 27571 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27572 | done |
| 27573 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27574 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27575 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27576 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27577 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27578 | for dir in $SRCDIRS; do |
| 27579 | if test ! -d $dir; then |
| 27580 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27581 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27582 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27583 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27584 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27585 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27586 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27587 | 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] | 27588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27589 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27590 | # This file is a shell script that caches the results of configure |
| 27591 | # 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] | 27592 | # scripts and configure runs, see configure's option --config-cache. |
| 27593 | # It is not useful on other systems. If it contains results you don't |
| 27594 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27595 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27596 | # config.status only pays attention to the cache file if you give it |
| 27597 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27598 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27599 | # `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] | 27600 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27601 | # following values. |
| 27602 | |
| 27603 | _ACEOF |
| 27604 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27605 | # The following way of writing the cache mishandles newlines in values, |
| 27606 | # 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] | 27607 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27608 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27609 | # 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] | 27610 | ( |
| 27611 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27612 | eval ac_val=\$$ac_var |
| 27613 | case $ac_val in #( |
| 27614 | *${as_nl}*) |
| 27615 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27616 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27617 | 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] | 27618 | esac |
| 27619 | case $ac_var in #( |
| 27620 | _ | IFS | as_nl) ;; #( |
| 27621 | *) $as_unset $ac_var ;; |
| 27622 | esac ;; |
| 27623 | esac |
| 27624 | done |
| 27625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27626 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27627 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27628 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27629 | # `set' does not quote correctly, so add quotes (double-quote |
| 27630 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27631 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27632 | "s/'/'\\\\''/g; |
| 27633 | 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] | 27634 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27635 | *) |
| 27636 | # `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] | 27637 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27638 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27639 | esac | |
| 27640 | sort |
| 27641 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27642 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27643 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27644 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27645 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27646 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27647 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27648 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27649 | :end' >>confcache |
| 27650 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27651 | if test -w "$cache_file"; then |
| 27652 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27653 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27654 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27655 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27656 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27657 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27658 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27659 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27660 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27661 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27662 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27663 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27664 | # Let make expand exec_prefix. |
| 27665 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27666 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27667 | DEFS=-DHAVE_CONFIG_H |
| 27668 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27669 | ac_libobjs= |
| 27670 | ac_ltlibobjs= |
| 27671 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27672 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27673 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27674 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27675 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27676 | # will be set to the directory where LIBOBJS objects are built. |
| 27677 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27678 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27679 | done |
| 27680 | LIBOBJS=$ac_libobjs |
| 27681 | |
| 27682 | LTLIBOBJS=$ac_ltlibobjs |
| 27683 | |
| 27684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27685 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27686 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27687 | ac_clean_files_save=$ac_clean_files |
| 27688 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27689 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27690 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27691 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27692 | #! $SHELL |
| 27693 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27694 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27695 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27696 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27698 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27699 | ac_cs_recheck=false |
| 27700 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27701 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27702 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27703 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27704 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27705 | ## --------------------- ## |
| 27706 | ## M4sh Initialization. ## |
| 27707 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27709 | # Be more Bourne compatible |
| 27710 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27711 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27712 | emulate sh |
| 27713 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27714 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27715 | # is contrary to our usage. Disable this feature. |
| 27716 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27717 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27718 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27719 | case `(set -o) 2>/dev/null` in |
| 27720 | *posix*) set -o posix ;; |
| 27721 | esac |
| 27722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27723 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27724 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27726 | |
| 27727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27728 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27729 | # Avoid depending upon Character Ranges. |
| 27730 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27731 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27732 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27733 | as_cr_digits='0123456789' |
| 27734 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27735 | |
| 27736 | # The user is always right. |
| 27737 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27738 | echo "#! /bin/sh" >conf$$.sh |
| 27739 | echo "exit 0" >>conf$$.sh |
| 27740 | chmod +x conf$$.sh |
| 27741 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27742 | PATH_SEPARATOR=';' |
| 27743 | else |
| 27744 | PATH_SEPARATOR=: |
| 27745 | fi |
| 27746 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27747 | fi |
| 27748 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27749 | # Support unset when possible. |
| 27750 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27751 | as_unset=unset |
| 27752 | else |
| 27753 | as_unset=false |
| 27754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27756 | |
| 27757 | # IFS |
| 27758 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27759 | # there to prevent editors from complaining about space-tab. |
| 27760 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27761 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27762 | as_nl=' |
| 27763 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27764 | IFS=" "" $as_nl" |
| 27765 | |
| 27766 | # Find who we are. Look in the path if we contain no directory separator. |
| 27767 | case $0 in |
| 27768 | *[\\/]* ) as_myself=$0 ;; |
| 27769 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27770 | for as_dir in $PATH |
| 27771 | do |
| 27772 | IFS=$as_save_IFS |
| 27773 | test -z "$as_dir" && as_dir=. |
| 27774 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27775 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27776 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27778 | ;; |
| 27779 | esac |
| 27780 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27781 | # in which case we are not to be found in the path. |
| 27782 | if test "x$as_myself" = x; then |
| 27783 | as_myself=$0 |
| 27784 | fi |
| 27785 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27786 | 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] | 27787 | { (exit 1); exit 1; } |
| 27788 | fi |
| 27789 | |
| 27790 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27791 | for as_var in ENV MAIL MAILPATH |
| 27792 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27793 | done |
| 27794 | PS1='$ ' |
| 27795 | PS2='> ' |
| 27796 | PS4='+ ' |
| 27797 | |
| 27798 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27799 | for as_var in \ |
| 27800 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 27801 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 27802 | LC_TELEPHONE LC_TIME |
| 27803 | do |
| 27804 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 27805 | eval $as_var=C; export $as_var |
| 27806 | else |
| 27807 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27808 | fi |
| 27809 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27810 | |
| 27811 | # Required to use basename. |
| 27812 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27813 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 27814 | as_expr=expr |
| 27815 | else |
| 27816 | as_expr=false |
| 27817 | fi |
| 27818 | |
| 27819 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 27820 | as_basename=basename |
| 27821 | else |
| 27822 | as_basename=false |
| 27823 | fi |
| 27824 | |
| 27825 | |
| 27826 | # Name of the executable. |
| 27827 | as_me=`$as_basename -- "$0" || |
| 27828 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 27829 | X"$0" : 'X\(//\)$' \| \ |
| 27830 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27831 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27832 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 27833 | s//\1/ |
| 27834 | q |
| 27835 | } |
| 27836 | /^X\/\(\/\/\)$/{ |
| 27837 | s//\1/ |
| 27838 | q |
| 27839 | } |
| 27840 | /^X\/\(\/\).*/{ |
| 27841 | s//\1/ |
| 27842 | q |
| 27843 | } |
| 27844 | s/.*/./; q'` |
| 27845 | |
| 27846 | # CDPATH. |
| 27847 | $as_unset CDPATH |
| 27848 | |
| 27849 | |
| 27850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27851 | as_lineno_1=$LINENO |
| 27852 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27853 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27854 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27856 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 27857 | # 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] | 27858 | # line-number line after each line using $LINENO; the second 'sed' |
| 27859 | # does the real work. The second script uses 'N' to pair each |
| 27860 | # line-number line with the line containing $LINENO, and appends |
| 27861 | # trailing '-' during substitution so that $LINENO is not a special |
| 27862 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27863 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27864 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 27865 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 27866 | sed -n ' |
| 27867 | p |
| 27868 | /[$]LINENO/= |
| 27869 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27870 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27871 | s/[$]LINENO.*/&-/ |
| 27872 | t lineno |
| 27873 | b |
| 27874 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27875 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27876 | :loop |
| 27877 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27878 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27879 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27880 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27881 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27882 | { 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] | 27883 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27885 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 27886 | # (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] | 27887 | # original and so on. Autoconf is especially sensitive to this). |
| 27888 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27889 | # Exit status is that of the last command. |
| 27890 | exit |
| 27891 | } |
| 27892 | |
| 27893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27894 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 27895 | as_dirname=dirname |
| 27896 | else |
| 27897 | as_dirname=false |
| 27898 | fi |
| 27899 | |
| 27900 | ECHO_C= ECHO_N= ECHO_T= |
| 27901 | case `echo -n x` in |
| 27902 | -n*) |
| 27903 | case `echo 'x\c'` in |
| 27904 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 27905 | *) ECHO_C='\c';; |
| 27906 | esac;; |
| 27907 | *) |
| 27908 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27909 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27911 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27912 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27913 | as_expr=expr |
| 27914 | else |
| 27915 | as_expr=false |
| 27916 | fi |
| 27917 | |
| 27918 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27919 | if test -d conf$$.dir; then |
| 27920 | rm -f conf$$.dir/conf$$.file |
| 27921 | else |
| 27922 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27923 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27924 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27925 | echo >conf$$.file |
| 27926 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27927 | as_ln_s='ln -s' |
| 27928 | # ... but there are two gotchas: |
| 27929 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 27930 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 27931 | # In both cases, we have to default to `cp -p'. |
| 27932 | 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] | 27933 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27934 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27935 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27936 | else |
| 27937 | as_ln_s='cp -p' |
| 27938 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27939 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27940 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27941 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27942 | if mkdir -p . 2>/dev/null; then |
| 27943 | as_mkdir_p=: |
| 27944 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27945 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27946 | as_mkdir_p=false |
| 27947 | fi |
| 27948 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27949 | if test -x / >/dev/null 2>&1; then |
| 27950 | as_test_x='test -x' |
| 27951 | else |
| 27952 | if ls -dL / >/dev/null 2>&1; then |
| 27953 | as_ls_L_option=L |
| 27954 | else |
| 27955 | as_ls_L_option= |
| 27956 | fi |
| 27957 | as_test_x=' |
| 27958 | eval sh -c '\'' |
| 27959 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27960 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27961 | else |
| 27962 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27963 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27964 | esac; |
| 27965 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 27966 | ???[sx]*):;;*)false;;esac;fi |
| 27967 | '\'' sh |
| 27968 | ' |
| 27969 | fi |
| 27970 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27971 | |
| 27972 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27973 | 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] | 27974 | |
| 27975 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27976 | 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] | 27977 | |
| 27978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27979 | exec 6>&1 |
| 27980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27981 | # 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] | 27982 | # 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] | 27983 | # values after options handling. |
| 27984 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27985 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27986 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27987 | |
| 27988 | CONFIG_FILES = $CONFIG_FILES |
| 27989 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 27990 | CONFIG_LINKS = $CONFIG_LINKS |
| 27991 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 27992 | $ $0 $@ |
| 27993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27994 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 27995 | " |
| 27996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27997 | _ACEOF |
| 27998 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27999 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28000 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28001 | config_files="$ac_config_files" |
| 28002 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28004 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28005 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28006 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28007 | ac_cs_usage="\ |
| 28008 | \`$as_me' instantiates files from templates according to the |
| 28009 | current configuration. |
| 28010 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28011 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28012 | |
| 28013 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28014 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28015 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28016 | -d, --debug don't remove temporary files |
| 28017 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28018 | --file=FILE[:TEMPLATE] |
| 28019 | instantiate the configuration file FILE |
| 28020 | --header=FILE[:TEMPLATE] |
| 28021 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28022 | |
| 28023 | Configuration files: |
| 28024 | $config_files |
| 28025 | |
| 28026 | Configuration headers: |
| 28027 | $config_headers |
| 28028 | |
| 28029 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28031 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28032 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28033 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28034 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28035 | configured by $0, generated by GNU Autoconf 2.61, |
| 28036 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28038 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28039 | This config.status script is free software; the Free Software Foundation |
| 28040 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28041 | |
| 28042 | ac_pwd='$ac_pwd' |
| 28043 | srcdir='$srcdir' |
| 28044 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28045 | _ACEOF |
| 28046 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28047 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28048 | # If no file are specified by the user, then we need to provide default |
| 28049 | # 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] | 28050 | ac_need_defaults=: |
| 28051 | while test $# != 0 |
| 28052 | do |
| 28053 | case $1 in |
| 28054 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28055 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28056 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28057 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28058 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28059 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28060 | ac_option=$1 |
| 28061 | ac_optarg=$2 |
| 28062 | ac_shift=shift |
| 28063 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28064 | esac |
| 28065 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28066 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28067 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28068 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28069 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28070 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28071 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28072 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28073 | debug=: ;; |
| 28074 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28075 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28076 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28077 | ac_need_defaults=false;; |
| 28078 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28079 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28080 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28081 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28082 | --he | --h) |
| 28083 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28084 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28085 | Try \`$0 --help' for more information." >&2 |
| 28086 | { (exit 1); exit 1; }; };; |
| 28087 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28088 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28090 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28091 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28092 | |
| 28093 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28094 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28095 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28096 | { (exit 1); exit 1; }; } ;; |
| 28097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28098 | *) ac_config_targets="$ac_config_targets $1" |
| 28099 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28100 | |
| 28101 | esac |
| 28102 | shift |
| 28103 | done |
| 28104 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28105 | ac_configure_extra_args= |
| 28106 | |
| 28107 | if $ac_cs_silent; then |
| 28108 | exec 6>/dev/null |
| 28109 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28110 | fi |
| 28111 | |
| 28112 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28113 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28114 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28115 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28116 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28117 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28118 | 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] | 28119 | fi |
| 28120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28121 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28122 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28123 | exec 5>>config.log |
| 28124 | { |
| 28125 | echo |
| 28126 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28127 | ## Running $as_me. ## |
| 28128 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28129 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28130 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28131 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28132 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28133 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28134 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28135 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28136 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28137 | |
| 28138 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28139 | for ac_config_target in $ac_config_targets |
| 28140 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28141 | case $ac_config_target in |
| 28142 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28143 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28144 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28145 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28146 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28147 | "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] | 28148 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28149 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28150 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28151 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28152 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28153 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28154 | { (exit 1); exit 1; }; };; |
| 28155 | esac |
| 28156 | done |
| 28157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28159 | # If the user did not use the arguments to specify the items to instantiate, |
| 28160 | # then the envvar interface is used. Set only those that are not. |
| 28161 | # We use the long form for the default assignment because of an extremely |
| 28162 | # bizarre bug on SunOS 4.1.3. |
| 28163 | if $ac_need_defaults; then |
| 28164 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28165 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28166 | fi |
| 28167 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28168 | # 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] | 28169 | # 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] | 28170 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28171 | # Hook for its removal unless debugging. |
| 28172 | # Note that there is a small window in which the directory will not be cleaned: |
| 28173 | # 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] | 28174 | $debug || |
| 28175 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28176 | tmp= |
| 28177 | trap 'exit_status=$? |
| 28178 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28179 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28180 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28181 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28182 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28184 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28185 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28186 | test -n "$tmp" && test -d "$tmp" |
| 28187 | } || |
| 28188 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28189 | tmp=./conf$$-$RANDOM |
| 28190 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28191 | } || |
| 28192 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28193 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28194 | { (exit 1); exit 1; } |
| 28195 | } |
| 28196 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28197 | # |
| 28198 | # Set up the sed scripts for CONFIG_FILES section. |
| 28199 | # |
| 28200 | |
| 28201 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28202 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28203 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28204 | |
| 28205 | _ACEOF |
| 28206 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28207 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28208 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28209 | ac_delim='%!_!# ' |
| 28210 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28211 | cat >conf$$subs.sed <<_ACEOF |
| 28212 | SHELL!$SHELL$ac_delim |
| 28213 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28214 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28215 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28216 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28217 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28218 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28219 | exec_prefix!$exec_prefix$ac_delim |
| 28220 | prefix!$prefix$ac_delim |
| 28221 | program_transform_name!$program_transform_name$ac_delim |
| 28222 | bindir!$bindir$ac_delim |
| 28223 | sbindir!$sbindir$ac_delim |
| 28224 | libexecdir!$libexecdir$ac_delim |
| 28225 | datarootdir!$datarootdir$ac_delim |
| 28226 | datadir!$datadir$ac_delim |
| 28227 | sysconfdir!$sysconfdir$ac_delim |
| 28228 | sharedstatedir!$sharedstatedir$ac_delim |
| 28229 | localstatedir!$localstatedir$ac_delim |
| 28230 | includedir!$includedir$ac_delim |
| 28231 | oldincludedir!$oldincludedir$ac_delim |
| 28232 | docdir!$docdir$ac_delim |
| 28233 | infodir!$infodir$ac_delim |
| 28234 | htmldir!$htmldir$ac_delim |
| 28235 | dvidir!$dvidir$ac_delim |
| 28236 | pdfdir!$pdfdir$ac_delim |
| 28237 | psdir!$psdir$ac_delim |
| 28238 | libdir!$libdir$ac_delim |
| 28239 | localedir!$localedir$ac_delim |
| 28240 | mandir!$mandir$ac_delim |
| 28241 | DEFS!$DEFS$ac_delim |
| 28242 | ECHO_C!$ECHO_C$ac_delim |
| 28243 | ECHO_N!$ECHO_N$ac_delim |
| 28244 | ECHO_T!$ECHO_T$ac_delim |
| 28245 | LIBS!$LIBS$ac_delim |
| 28246 | build_alias!$build_alias$ac_delim |
| 28247 | host_alias!$host_alias$ac_delim |
| 28248 | target_alias!$target_alias$ac_delim |
| 28249 | VERSION!$VERSION$ac_delim |
| 28250 | SOVERSION!$SOVERSION$ac_delim |
| 28251 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28252 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28253 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28254 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28255 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28256 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28257 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28258 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28259 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28260 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28261 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28262 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28263 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28264 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 28265 | MACHDEP!$MACHDEP$ac_delim |
| 28266 | SGI_ABI!$SGI_ABI$ac_delim |
| 28267 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28268 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28269 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28270 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28271 | CC!$CC$ac_delim |
| 28272 | CFLAGS!$CFLAGS$ac_delim |
| 28273 | LDFLAGS!$LDFLAGS$ac_delim |
| 28274 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28275 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28276 | EXEEXT!$EXEEXT$ac_delim |
| 28277 | OBJEXT!$OBJEXT$ac_delim |
| 28278 | CXX!$CXX$ac_delim |
| 28279 | MAINCC!$MAINCC$ac_delim |
| 28280 | CPP!$CPP$ac_delim |
| 28281 | GREP!$GREP$ac_delim |
| 28282 | EGREP!$EGREP$ac_delim |
| 28283 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28284 | LIBRARY!$LIBRARY$ac_delim |
| 28285 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28286 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28287 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28288 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28289 | INSTSONAME!$INSTSONAME$ac_delim |
| 28290 | RUNSHARED!$RUNSHARED$ac_delim |
| 28291 | LINKCC!$LINKCC$ac_delim |
| 28292 | GNULD!$GNULD$ac_delim |
| 28293 | RANLIB!$RANLIB$ac_delim |
| 28294 | AR!$AR$ac_delim |
| 28295 | ARFLAGS!$ARFLAGS$ac_delim |
| 28296 | SVNVERSION!$SVNVERSION$ac_delim |
| 28297 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28298 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28299 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28300 | LN!$LN$ac_delim |
| 28301 | OPT!$OPT$ac_delim |
| 28302 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28303 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28304 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28305 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28306 | SO!$SO$ac_delim |
| 28307 | LDSHARED!$LDSHARED$ac_delim |
| 28308 | BLDSHARED!$BLDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28309 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28310 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28311 | 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] | 28312 | break |
| 28313 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28314 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28315 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28316 | { (exit 1); exit 1; }; } |
| 28317 | else |
| 28318 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28320 | done |
| 28321 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28322 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28323 | if test -n "$ac_eof"; then |
| 28324 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28325 | ac_eof=`expr $ac_eof + 1` |
| 28326 | fi |
| 28327 | |
| 28328 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28329 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28330 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28331 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28332 | sed ' |
| 28333 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28334 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28335 | :n |
| 28336 | t n |
| 28337 | s/'"$ac_delim"'$/,g/; t |
| 28338 | s/$/\\/; p |
| 28339 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28340 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28341 | rm -f conf$$subs.sed |
| 28342 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28343 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28344 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28345 | |
| 28346 | |
| 28347 | ac_delim='%!_!# ' |
| 28348 | for ac_last_try in false false false false false :; do |
| 28349 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28350 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28351 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28352 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28353 | SHLIBS!$SHLIBS$ac_delim |
| 28354 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28355 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28356 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28357 | LDLAST!$LDLAST$ac_delim |
| 28358 | THREADOBJ!$THREADOBJ$ac_delim |
| 28359 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28360 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28361 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28362 | TRUE!$TRUE$ac_delim |
| 28363 | LIBOBJS!$LIBOBJS$ac_delim |
| 28364 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28365 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28366 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28367 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28368 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28369 | LIBM!$LIBM$ac_delim |
| 28370 | LIBC!$LIBC$ac_delim |
| 28371 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28372 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28373 | SRCDIRS!$SRCDIRS$ac_delim |
| 28374 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28375 | _ACEOF |
| 28376 | |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28377 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28378 | break |
| 28379 | elif $ac_last_try; then |
| 28380 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28381 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28382 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28383 | else |
| 28384 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28385 | fi |
| 28386 | done |
| 28387 | |
| 28388 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28389 | if test -n "$ac_eof"; then |
| 28390 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28391 | ac_eof=`expr $ac_eof + 1` |
| 28392 | fi |
| 28393 | |
| 28394 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28395 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28396 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28397 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28398 | sed ' |
| 28399 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28400 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28401 | :n |
| 28402 | t n |
| 28403 | s/'"$ac_delim"'$/,g/; t |
| 28404 | s/$/\\/; p |
| 28405 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28406 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28407 | rm -f conf$$subs.sed |
| 28408 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28409 | :end |
| 28410 | s/|#_!!_#|//g |
| 28411 | CEOF$ac_eof |
| 28412 | _ACEOF |
| 28413 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28414 | |
| 28415 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28416 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28417 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28418 | # (actually we leave an empty line to preserve line numbers). |
| 28419 | if test "x$srcdir" = x.; then |
| 28420 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28421 | s/:*\$(srcdir):*/:/ |
| 28422 | s/:*\${srcdir}:*/:/ |
| 28423 | s/:*@srcdir@:*/:/ |
| 28424 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28425 | s/:*$// |
| 28426 | s/^[^=]*=[ ]*$// |
| 28427 | }' |
| 28428 | fi |
| 28429 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28430 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28431 | fi # test -n "$CONFIG_FILES" |
| 28432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28433 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28434 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28435 | do |
| 28436 | case $ac_tag in |
| 28437 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28438 | esac |
| 28439 | case $ac_mode$ac_tag in |
| 28440 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28441 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28442 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28443 | { (exit 1); exit 1; }; };; |
| 28444 | :[FH]-) ac_tag=-:-;; |
| 28445 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28446 | esac |
| 28447 | ac_save_IFS=$IFS |
| 28448 | IFS=: |
| 28449 | set x $ac_tag |
| 28450 | IFS=$ac_save_IFS |
| 28451 | shift |
| 28452 | ac_file=$1 |
| 28453 | shift |
| 28454 | |
| 28455 | case $ac_mode in |
| 28456 | :L) ac_source=$1;; |
| 28457 | :[FH]) |
| 28458 | ac_file_inputs= |
| 28459 | for ac_f |
| 28460 | do |
| 28461 | case $ac_f in |
| 28462 | -) ac_f="$tmp/stdin";; |
| 28463 | *) # Look for the file first in the build tree, then in the source tree |
| 28464 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28465 | # because $ac_f cannot contain `:'. |
| 28466 | test -f "$ac_f" || |
| 28467 | case $ac_f in |
| 28468 | [\\/$]*) false;; |
| 28469 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28470 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28471 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28472 | 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] | 28473 | { (exit 1); exit 1; }; };; |
| 28474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28475 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28476 | done |
| 28477 | |
| 28478 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28479 | # use $as_me), people would be surprised to read: |
| 28480 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28481 | configure_input="Generated from "`IFS=: |
| 28482 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28483 | if test x"$ac_file" != x-; then |
| 28484 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28485 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28486 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28487 | fi |
| 28488 | |
| 28489 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28490 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28491 | esac |
| 28492 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28493 | esac |
| 28494 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28495 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28496 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28497 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28498 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28499 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28500 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28502 | s//\1/ |
| 28503 | q |
| 28504 | } |
| 28505 | /^X\(\/\/\)[^/].*/{ |
| 28506 | s//\1/ |
| 28507 | q |
| 28508 | } |
| 28509 | /^X\(\/\/\)$/{ |
| 28510 | s//\1/ |
| 28511 | q |
| 28512 | } |
| 28513 | /^X\(\/\).*/{ |
| 28514 | s//\1/ |
| 28515 | q |
| 28516 | } |
| 28517 | s/.*/./; q'` |
| 28518 | { as_dir="$ac_dir" |
| 28519 | case $as_dir in #( |
| 28520 | -*) as_dir=./$as_dir;; |
| 28521 | esac |
| 28522 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28523 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28524 | while :; do |
| 28525 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28526 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28527 | *) as_qdir=$as_dir;; |
| 28528 | esac |
| 28529 | as_dirs="'$as_qdir' $as_dirs" |
| 28530 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28531 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28532 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28533 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28534 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28535 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28536 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28537 | s//\1/ |
| 28538 | q |
| 28539 | } |
| 28540 | /^X\(\/\/\)[^/].*/{ |
| 28541 | s//\1/ |
| 28542 | q |
| 28543 | } |
| 28544 | /^X\(\/\/\)$/{ |
| 28545 | s//\1/ |
| 28546 | q |
| 28547 | } |
| 28548 | /^X\(\/\).*/{ |
| 28549 | s//\1/ |
| 28550 | q |
| 28551 | } |
| 28552 | s/.*/./; q'` |
| 28553 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28554 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28555 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28556 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28557 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28558 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28559 | ac_builddir=. |
| 28560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28561 | case "$ac_dir" in |
| 28562 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28563 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28564 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28565 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28566 | 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] | 28567 | case $ac_top_builddir_sub in |
| 28568 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28569 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28570 | esac ;; |
| 28571 | esac |
| 28572 | ac_abs_top_builddir=$ac_pwd |
| 28573 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28574 | # for backward compatibility: |
| 28575 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28576 | |
| 28577 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28578 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28579 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28580 | ac_top_srcdir=$ac_top_builddir_sub |
| 28581 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28582 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28583 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28584 | ac_top_srcdir=$srcdir |
| 28585 | ac_abs_top_srcdir=$srcdir ;; |
| 28586 | *) # Relative name. |
| 28587 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28588 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28589 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28590 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28591 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28593 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28594 | case $ac_mode in |
| 28595 | :F) |
| 28596 | # |
| 28597 | # CONFIG_FILE |
| 28598 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28599 | |
| 28600 | case $INSTALL in |
| 28601 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28602 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28603 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28604 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28606 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28607 | # If the template does not know about datarootdir, expand it. |
| 28608 | # FIXME: This hack should be removed a few years after 2.60. |
| 28609 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28610 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28611 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28612 | p |
| 28613 | q |
| 28614 | } |
| 28615 | /@datadir@/p |
| 28616 | /@docdir@/p |
| 28617 | /@infodir@/p |
| 28618 | /@localedir@/p |
| 28619 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28620 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28621 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28622 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28623 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28624 | 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] | 28625 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28626 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28627 | ac_datarootdir_hack=' |
| 28628 | s&@datadir@&$datadir&g |
| 28629 | s&@docdir@&$docdir&g |
| 28630 | s&@infodir@&$infodir&g |
| 28631 | s&@localedir@&$localedir&g |
| 28632 | s&@mandir@&$mandir&g |
| 28633 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28634 | esac |
| 28635 | _ACEOF |
| 28636 | |
| 28637 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28638 | # Shell code in configure.ac might set extrasub. |
| 28639 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28640 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28641 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28642 | $extrasub |
| 28643 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28644 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28645 | :t |
| 28646 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28647 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28648 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28649 | s&@srcdir@&$ac_srcdir&;t t |
| 28650 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28651 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28652 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28653 | s&@builddir@&$ac_builddir&;t t |
| 28654 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28655 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28656 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28657 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28658 | " $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] | 28659 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28660 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28661 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28662 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28663 | { 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] | 28664 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28665 | 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] | 28666 | 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] | 28667 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28668 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28669 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28670 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28671 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28672 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28673 | ;; |
| 28674 | :H) |
| 28675 | # |
| 28676 | # CONFIG_HEADER |
| 28677 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28678 | _ACEOF |
| 28679 | |
| 28680 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28681 | # substitutes the proper values into config.h.in to produce config.h. |
| 28682 | rm -f conftest.defines conftest.tail |
| 28683 | # First, append a space to every undef/define line, to ease matching. |
| 28684 | echo 's/$/ /' >conftest.defines |
| 28685 | # Then, protect against being on the right side of a sed subst, or in |
| 28686 | # an unquoted here document, in config.status. If some macros were |
| 28687 | # called several times there might be several #defines for the same |
| 28688 | # symbol, which is useless. But do not sort them, since the last |
| 28689 | # AC_DEFINE must be honored. |
| 28690 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28691 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28692 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28693 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28694 | # just an empty string. |
| 28695 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28696 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28697 | ac_dC=' ' |
| 28698 | ac_dD=' ,' |
| 28699 | |
| 28700 | uniq confdefs.h | |
| 28701 | sed -n ' |
| 28702 | t rset |
| 28703 | :rset |
| 28704 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28705 | t ok |
| 28706 | d |
| 28707 | :ok |
| 28708 | s/[\\&,]/\\&/g |
| 28709 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28710 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28711 | ' >>conftest.defines |
| 28712 | |
| 28713 | # Remove the space that was appended to ease matching. |
| 28714 | # Then replace #undef with comments. This is necessary, for |
| 28715 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28716 | # on some systems where configure will not decide to define it. |
| 28717 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28718 | echo 's/ $// |
| 28719 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28720 | |
| 28721 | # Break up conftest.defines: |
| 28722 | ac_max_sed_lines=50 |
| 28723 | |
| 28724 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28725 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28726 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28727 | # et cetera. |
| 28728 | ac_in='$ac_file_inputs' |
| 28729 | ac_out='"$tmp/out1"' |
| 28730 | ac_nxt='"$tmp/out2"' |
| 28731 | |
| 28732 | while : |
| 28733 | do |
| 28734 | # Write a here document: |
| 28735 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28736 | # First, check the format of the line: |
| 28737 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28738 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28739 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28740 | b |
| 28741 | :def |
| 28742 | _ACEOF |
| 28743 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28744 | echo 'CEOF |
| 28745 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28746 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28747 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28748 | grep . conftest.tail >/dev/null || break |
| 28749 | rm -f conftest.defines |
| 28750 | mv conftest.tail conftest.defines |
| 28751 | done |
| 28752 | rm -f conftest.defines conftest.tail |
| 28753 | |
| 28754 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28755 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28756 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28757 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28758 | cat "$ac_result" >>"$tmp/config.h" |
| 28759 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28760 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28761 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28762 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28763 | rm -f $ac_file |
| 28764 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28765 | fi |
| 28766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28767 | echo "/* $configure_input */" |
| 28768 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28769 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28770 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28771 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28773 | |
| 28774 | esac |
| 28775 | |
| 28776 | done # for ac_tag |
| 28777 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28779 | { (exit 0); exit 0; } |
| 28780 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28781 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28782 | ac_clean_files=$ac_clean_files_save |
| 28783 | |
| 28784 | |
| 28785 | # configure is writing to config.log, and then calls config.status. |
| 28786 | # config.status does its own redirection, appending to config.log. |
| 28787 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28788 | # by configure, so config.status won't be able to write to it; its |
| 28789 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28790 | # effectively closing config.log, so it can be properly (re)opened and |
| 28791 | # appended to by config.status. When coming back to configure, we |
| 28792 | # need to make the FD available again. |
| 28793 | if test "$no_create" != yes; then |
| 28794 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28795 | ac_config_status_args= |
| 28796 | test "$silent" = yes && |
| 28797 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28798 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28799 | $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] | 28800 | exec 5>>config.log |
| 28801 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 28802 | # would make configure fail if this is the last instruction. |
| 28803 | $ac_cs_success || { (exit 1); exit 1; } |
| 28804 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28805 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28806 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28807 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28808 | if test ! -f Modules/Setup |
| 28809 | then |
| 28810 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 28811 | fi |
| 28812 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28813 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28814 | if test ! -f Modules/Setup.local |
| 28815 | then |
| 28816 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 28817 | fi |
| 28818 | |
| 28819 | echo "creating Makefile" |
| 28820 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 28821 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 28822 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28823 | |
| 28824 | case $ac_sys_system in |
| 28825 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28826 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28827 | |
| 28828 | Support for BeOS is deprecated as of Python 2.6. |
| 28829 | See PEP 11 for the gory details. |
| 28830 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28831 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28832 | |
| 28833 | Support for BeOS is deprecated as of Python 2.6. |
| 28834 | See PEP 11 for the gory details. |
| 28835 | " >&2;} |
| 28836 | ;; |
| 28837 | *) ;; |
| 28838 | esac |
| 28839 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 28840 | mv config.c Modules |